java mapscript seems OK
orkun
temiz at DEPREM.GOV.TR
Wed Jun 22 01:57:39 PDT 2005
Umberto Nicoletti wrote:
>>hello
>>
>>JAVA_HOME ????
>>
>>
>
>You really should RTFM
>
>
>
>>if you mean this:
>>orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$ printenv | grep
>>java
>>PWD=/home/orkun/work/mapserver-4.6.0/mapscript/java
>>orkun at landslide:~/work/mapserver-4.6.0/mapscript/java$
>>
>>But I did not have any environment variable like JAVA_HOME
>>I tried to produce it:
>>/mapscript/java$ JAVA_HOME="/usr/local/jdk1.5.0_03/"
>>
>>
>try
>
>export JAVA_HOME="/usr/local/jdk1.5.0_03"
>
>Have you tried with java 1.4.2? That works for sure.
>
>Ciao,
>Umberto
>
>
>
>>then make
>>
>>it gives same errors.
>>
>>I am new in java and its installation. I am not sure
>>if my java installation is correct.
>>I followed debian installation way.
>>Later I have java_libs known by
>>my system.
>>
>>landslide:/home/orkun# cat /etc/ld.so.conf
>>/usr/X11R6/lib
>>/usr/lib/grass/lib
>>/usr/local/jdk1.5.0_03/lib
>>
>>
>>mapserver can not still be installed.
>>
>>
>>
>>
>>I realized later that I had skipped to sent you history's last values.
>>
>> 506 ./ins2 #executable file containing config values
>> 507 make clean
>> 508 make
>> 509 make install
>> 510 cd mapscript
>> 511 cd java
>> 512 make interface
>> 513 make *** errors
>> 514 history 10
>>
>>
>>regards
>>
>>
>>
>my last message
>
>thank you
>
>
>
>
>
it looks ok.
~~~~~~~~~~~~~~~~~~~~
orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ make
gcc -fpic -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_THREAD
-I/usr/local/gd-2.0.33 -I/usr/local/include
-I/usr/local/jdk1.5.0_03//include
-I/usr/local/jdk1.5.0_03//include/linux -fno-strict-aliasing
mapscript_wrap.c
gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap
-L/usr/local/gd-2.0.33/.libs -lgd -ljpeg -lfreetype -lpng -lz -ljpeg
-lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal
-lpthread -lm -lstdc++
javac edu/umn/gis/mapscript/*.java
jar cf mapscript.jar edu
orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ make test
javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
DumpShp ../../tests/point.shp
Shapefile opened (type = point with 1 shapes).
Shape[0] has 1 part(s)
bounds (0.0,51.477222)(0.0,51.477222)
Part[0] has 1 point(s)
Point[0] = 0.0, 51.477222
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
ShapeInfo ../../tests/point.shp ../../tests/point.dbf
Shapefile name = ../../tests/point.shp
Type = point
Number of features 1
bounds (0.0,51.477222)(0.0,51.477222)
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
DrawMap ../../tests/test.map ./map.png
The map will be drawn to:./map.png
~~~~~~~~~~~~~
it created libmapscript.so and mapscript.jar
~~~~~~~~~~~~~~
orkun at landslide:/usr/local/mapserver-4.6.0/mapscript/java$ ldd
libmapscript.so
libgd.so.2 => /usr/lib/libgd.so.2 (0x4011c000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4016c000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4018b000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x401f8000)
libproj.so.0 => /usr/lib/libproj.so.0 (0x4021d000)
libgdal.so.1 => /usr/lib/libgdal.so.1 (0x40252000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4061b000)
libm.so.6 => /lib/libm.so.6 (0x4066c000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4068f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40749000)
libc.so.6 => /lib/libc.so.6 (0x40752000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40885000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40894000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4095b000)
libz.so.1 => /usr/lib/libz.so.1 (0x4098b000)
libgeos.so.2 => /usr/lib/libgeos.so.2 (0x4099d000)
libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40a90000)
libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0x40b08000)
libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x40e52000)
libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x40e9f000)
libdf.so.4 => /usr/lib/libdf.so.4 (0x40ec2000)
libungif.so.4 => /usr/lib/libungif.so.4 (0x40f61000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40f69000)
libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x40fb8000)
libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x40fdb000)
libdl.so.2 => /lib/libdl.so.2 (0x41149000)
libpq.so.3 => /usr/lib/libpq.so.3 (0x4114d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x41168000)
libltdl.so.3 => /usr/lib/libltdl.so.3 (0x41188000)
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x4118f000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7
(0x411c1000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x412c0000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x41328000)
libresolv.so.2 => /lib/libresolv.so.2 (0x41355000)
libnsl.so.1 => /lib/libnsl.so.1 (0x41367000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x4137c000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x4139e000)
~~~~~~~~~~
thank you for your all real helps **
______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.
Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.
More information about the MapServer-users
mailing list