[Zoo-discuss] ZOO SVN rev611 Java installation

Alexander Kmoch alexander.kmoch at aut.ac.nz
Thu Mar 12 16:15:04 PDT 2015


Hi,

sorry for the former subject failure, reply to list from the daily digest.

Follow up on ZOO Java-Services.

Creating the libZOO.so for ZOO Java Service throws gcc / linking error:

gcc: error: unrecognized command line option -Wl
make: *** [libZOO.so] Error 1

 From Stackoverflow [1]:
>
> the -Wl,xxx option for gcc passes a comma-separated list of tokens as a space-separated list of arguments to the linker. So
>
> gcc -Wl,aaa,bbb,ccc
> eventually becomes a linker call
>
> ld aaa bbb ccc

So the manual gcc with the interpolated space separated Makefile vars 
for the libs to be linked (manually as comma-separated arguments for the 
first -Wl parameter):

gcc zoo-api.o -shared -o libZOO.so 
-Wl,../../zoo-kernel/service_internal.o,../../zoo-kernel/service_internal_java.o,../../zoo-kernel/service_internal_js.o,../../zoo-kernel/ulinet.o 
-L/usr/lib -lgdal -lxml2 -L/usr/lib/python2.7/config-x86_64-linux-gnu 
-L/usr/lib -lpthread -ldl  -lutil -lm  -lpython2.7 -Xlinker 
-export-dynamic -Wl,-O1  -Wl,-Bsymbolic-functions 
-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server -ljvm -lpthread 
-L/usr/lib -lmozjs185 -lm -lcrypto   -lcurl -lfcgi

This created the libZOO.so for me.

Cheers,
Alex

[1] http://stackoverflow.com/questions/6562403/i-dont-understand-wl-rpath-wl

Am 13/03/2015 um 08:00 a.m. schrieb zoo-discuss-request at lists.osgeo.org:
> Once this task is done, I invite you to take a look at the documentation on how to setup the Java ZOO-API [3].
>
> Best regards,
>
> [3]http://zoo-project.org/docs/services/howtos.html#java


More information about the Zoo-discuss mailing list