<html><head><base href="x-msg://51/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Quang,<div>Please, try the following command :</div><div><br></div><div>export CFLAGS="<span class="Apple-style-span" style="font-family: Tahoma; font-size: small; ">`gdal-config --cflags` `xml2-config --clfags` -I../../zoo-kernel/</span>"</div><div>export LDFLAGS="<span class="Apple-style-span" style="font-family: Tahoma; font-size: small; ">`gdal-config --libs` `xml2-config --libs` ../../zoo-kernel/service_internal.o</span>"</div><div>gcc $CFLAGS -shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS</div><div><br></div><div>It should work this way.</div><div><br></div><div>I noticed that you tried to set values to CFLAGS and LDFLAGS on one command </div><div>line. You have to first define the env variables then use them.</div><div><br></div><div>You asked about service_internal.o, it is present in your LDFLAGS so should be </div><div>found. This file is located in the zoo-kernel directory.</div><div><br></div><div>Hope this help,</div><div>Best,</div><div><br></div><div><div><div>Le 11 févr. 2011 à 12:02, truongxuan quang a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hello<span class="Apple-converted-space"> </span><font face="Tahoma" size="2">Gérald<br><br>Thank you for your email, and I also sorry for replying late.<br>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.<br><br>root@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<br><br>I got<span class="Apple-converted-space"> </span><br></font></div>g++: =-I/usr/include/gdal: No such file or directory<br>g++: Usage:: No such file or directory<br>g++: xml2-config: No such file or directory<br>g++: [OPTION]: No such file or directory<br>g++: Known: No such file or directory<br>g++: values: No such file or directory<br>g++: for: No such file or directory<br>g++: OPTION: No such file or directory<br>g++: are:: No such file or directory<br>g++: change: No such file or directory<br>g++: libxml: No such file or directory<br>g++: prefix: No such file or directory<br>g++: [default: No such file or directory<br>g++: /usr]: No such file or directory<br>g++: change: No such file or directory<br>g++: libxml: No such file or directory<br>g++: exec: No such file or directory<br>g++: prefix: No such file or directory<br>g++: [default: No such file or directory<br>g++: /usr]: No such file or directory<br>g++: print: No such file or directory<br>g++: library: No such file or directory<br>g++: linking: No such file or directory<br>g++: information: No such file or directory<br>g++: add: No such file or directory<br>g++: to: No such file or directory<br>g++: print: No such file or directory<br>g++: static: No such file or directory<br>g++: library: No such file or directory<br>g++: linking: No such file or directory<br>g++: information: No such file or directory<br>g++: print: No such file or directory<br>g++: pre-processor: No such file or directory<br>g++: and: No such file or directory<br>g++: compiler: No such file or directory<br>g++: flags: No such file or directory<br>g++: module: No such file or directory<br>g++: support: No such file or directory<br>g++: enabled: No such file or directory<br>g++: display: No such file or directory<br>g++: this: No such file or directory<br>g++: help: No such file or directory<br>g++: and: No such file or directory<br>g++: exit: No such file or directory<br>g++: output: No such file or directory<br>g++: version: No such file or directory<br>g++: information: No such file or directory<br>g++: =-L/usr/lib: No such file or directory<br>g++: ../../zoo-kernel/service_internal.o: No such file or directory<br>Usage: g++ [options] file...<br><br> One more question is how to get service_internal.o file ?<br><br>Thank you<br><br>Quang<br></div><br></div></span><br class="Apple-interchange-newline"></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Gérald Fenoy</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:gerald.fenoy@geolabs.fr"><span class="Apple-style-span" style="color: rgb(0, 0, 238); -webkit-text-decorations-in-effect: underline; ">gerald.fenoy@geolabs.fr</span></a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">GEOLABS</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Siège social :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Futur Building I</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1280, avenue des Platanes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">34970 Lattes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Tél. fixe : +33 (0) 4 67 43 09 95</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Tél. portable : +33 (0) 6 70 08 25 39</div></span></div></div></span></span>
</div>
<br></div></body></html>