[Zoo-discuss] ZOO SVN rev611 Java installation

Fenoy Gerald gerald.fenoy at geolabs.fr
Fri Mar 13 01:53:12 PDT 2015


Hi Alex,
thanks a lot for your feedbacks.

This should now be fixed in trunk rev. 612 [1].

Best regards,

[1] http://zoo-project.org/trac/changeset/612

> Le 13 mars 2015 à 00:15, Alexander Kmoch <alexander.kmoch at aut.ac.nz> a écrit :
> 
> 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
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list