<html><head><base href="x-msg://37/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Quang,<div>as it seems you don't get nor xml2-config nor gdal-config, let's first</div><div>try to install those tools using the following apt-get command :</div><div><br></div><div>  sudo apt-get install libxml2-dev libgdal1-dev</div><div><br></div><div>Then rerun the same commands as before should do the trick.</div><div><br></div><div>Note that, I missed it at the first time, it should be --cflags rather </div><div>than --clfags for xml2-config call in the CFLAGS definition. All</div><div>the rest sounds good.</div><div><br></div><div>Hope this help,</div><div>Best,</div><div><br><div><div>Le 11 févr. 2011 à 16:08, 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; ">Dear<span class="Apple-converted-space"> </span><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; font-size: medium; "><font face="Tahoma" size="2">Gérald<br><br></font></span>Many thanks for your support.<span class="Apple-converted-space"> </span><br>I have followed your commands, the 1st and 2nd are fine,<br>root@truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# export CFLAGS="`gdal-config --cflags` `xml2-config --clfags` -I../../zoo-kernel/"<br><br>root@truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# export LDFLAGS="`gdal-config --libs` `xml2-config --libs` ../../zoo-kernel/service_internal.o"<br><br>root@truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# gcc $CFLAGS -shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS<br><br>I got inform  bellow<br><br>gcc: Usage:: No such file or directory<br>gcc: xml2-config: No such file or directory<br>gcc: [OPTION]: No such file or directory<br>gcc: Known: No such file or directory<br>gcc: values: No such file or directory<br>gcc: for: No such file or directory<br>gcc: OPTION: No such file or directory<br>gcc: are:: No such file or directory<br>gcc: change: No such file or directory<br>gcc: libxml: No such file or directory<br>gcc: prefix: No such file or directory<br>gcc: [default: No such file or directory<br>gcc: /usr]: No such file or directory<br>gcc: change: No such file or directory<br>gcc: libxml: No such file or directory<br>gcc: exec: No such file or directory<br>gcc: prefix: No such file or directory<br>gcc: [default: No such file or directory<br>gcc: /usr]: No such file or directory<br>gcc: print: No such file or directory<br>gcc: library: No such file or directory<br>gcc: linking: No such file or directory<br>gcc: information: No such file or directory<br>gcc: add: No such file or directory<br>gcc: to: No such file or directory<br>gcc: print: No such file or directory<br>gcc: static: No such file or directory<br>gcc: library: No such file or directory<br>gcc: linking: No such file or directory<br>gcc: information: No such file or directory<br>gcc: print: No such file or directory<br>gcc: pre-processor: No such file or directory<br>gcc: and: No such file or directory<br>gcc: compiler: No such file or directory<br>gcc: flags: No such file or directory<br>gcc: module: No such file or directory<br>gcc: support: No such file or directory<br>gcc: enabled: No such file or directory<br>gcc: display: No such file or directory<br>gcc: this: No such file or directory<br>gcc: help: No such file or directory<br>gcc: and: No such file or directory<br>gcc: exit: No such file or directory<br>gcc: output: No such file or directory<br>gcc: version: No such file or directory<br>gcc: information: No such file or directory<br><br>I checked, there are not exist  : xml2-config and gdal-config in /usr/local/bin for example, I dont know where is the place to configure the libxml and gdal in this case, I used OSGeo/live.<br><br>Thanks<br><br>T.X.Quang<br><h1><br></h1><pre><br></pre><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; "><br><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; "><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold; ">From:</span></b><span class="Apple-converted-space"> </span>Gérald Fenoy <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>><br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space"> </span>truongxuan quang <<a href="mailto:truongxuanquang@yahoo.com">truongxuanquang@yahoo.com</a>><br><b><span style="font-weight: bold; ">Cc:</span></b><span class="Apple-converted-space"> </span><a href="mailto:zoo-discuss@gisws.media.osaka-cu.ac.jp">zoo-discuss@gisws.media.osaka-cu.ac.jp</a><br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space"> </span>Fri, February 11, 2011 1:10:51 PM<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [ZOO-Discuss] Boundary ZOO Service<br></font><br>Dear Quang,<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Please, try the following command  :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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 style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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 style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">gcc $CFLAGS -shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It should work this way.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I noticed that you tried to set values to CFLAGS and LDFLAGS on one command </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">line. You have to first define the env variables then use them.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You asked about service_internal.o, it is present in your LDFLAGS so should be </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">found. This file is located in the zoo-kernel directory.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hope this help,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Best,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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; font-size: medium; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 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></div></div></div></div></div></span></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; ">ZOO-PSC Chair</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; "><span class="Apple-style-span" style="font-size: medium;"><br></span></div></span></div></div></span></span></div></div></body></html>