[ZOO-Discuss] Boundary ZOO Service
Gérald Fenoy
gerald.fenoy at geolabs.fr
Fri Feb 11 04:10:51 PST 2011
Dear Quang,
Please, try the following command :
export CFLAGS="`gdal-config --cflags` `xml2-config --clfags` -I../../zoo-kernel/"
export LDFLAGS="`gdal-config --libs` `xml2-config --libs` ../../zoo-kernel/service_internal.o"
gcc $CFLAGS -shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS
It should work this way.
I noticed that you tried to set values to CFLAGS and LDFLAGS on one command
line. You have to first define the env variables then use them.
You asked about service_internal.o, it is present in your LDFLAGS so should be
found. This file is located in the zoo-kernel directory.
Hope this help,
Best,
Le 11 févr. 2011 à 12:02, truongxuan quang a écrit :
> Hello Gérald
>
> Thank you for your email, and I also sorry for replying late.
> Bellow is my values set for both CFLAGS and LDFLAGS, because I am not familiar with Linux that why I have stuck in this section.
>
> root at truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# g++ $CFLAGS=`gdal-config --cflags` `xml2-config --clfags` -I../../zoo-kernel/ -shared -fpic -o cgi-env/ServicesProvider.zo ./service.c $LDFLAGS=`gdal-config --libs` `xml2-config --libs` ../../zoo-kernel/service_internal.o
>
> I got
> g++: =-I/usr/include/gdal: No such file or directory
> g++: Usage:: No such file or directory
> g++: xml2-config: No such file or directory
> g++: [OPTION]: No such file or directory
> g++: Known: No such file or directory
> g++: values: No such file or directory
> g++: for: No such file or directory
> g++: OPTION: No such file or directory
> g++: are:: No such file or directory
> g++: change: No such file or directory
> g++: libxml: No such file or directory
> g++: prefix: No such file or directory
> g++: [default: No such file or directory
> g++: /usr]: No such file or directory
> g++: change: No such file or directory
> g++: libxml: No such file or directory
> g++: exec: No such file or directory
> g++: prefix: No such file or directory
> g++: [default: No such file or directory
> g++: /usr]: No such file or directory
> g++: print: No such file or directory
> g++: library: No such file or directory
> g++: linking: No such file or directory
> g++: information: No such file or directory
> g++: add: No such file or directory
> g++: to: No such file or directory
> g++: print: No such file or directory
> g++: static: No such file or directory
> g++: library: No such file or directory
> g++: linking: No such file or directory
> g++: information: No such file or directory
> g++: print: No such file or directory
> g++: pre-processor: No such file or directory
> g++: and: No such file or directory
> g++: compiler: No such file or directory
> g++: flags: No such file or directory
> g++: module: No such file or directory
> g++: support: No such file or directory
> g++: enabled: No such file or directory
> g++: display: No such file or directory
> g++: this: No such file or directory
> g++: help: No such file or directory
> g++: and: No such file or directory
> g++: exit: No such file or directory
> g++: output: No such file or directory
> g++: version: No such file or directory
> g++: information: No such file or directory
> g++: =-L/usr/lib: No such file or directory
> g++: ../../zoo-kernel/service_internal.o: No such file or directory
> Usage: g++ [options] file...
>
> One more question is how to get service_internal.o file ?
>
> Thank you
>
> Quang
>
>
Gérald Fenoy
gerald.fenoy at geolabs.fr
GEOLABS
Siège social :
Futur Building I
1280, avenue des Platanes
34970 Lattes
Tél. fixe : +33 (0) 4 67 43 09 95
Tél. portable : +33 (0) 6 70 08 25 39
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20110211/cd6e5e44/attachment.html>
More information about the Zoo-discuss
mailing list