[ZOO-Discuss] Boundary ZOO Service

Gérald Fenoy gerald.fenoy at geolabs.fr
Tue Feb 8 14:02:47 PST 2011


Hello Quang,
please, can you give us more details about the values set 
for both CFLAGS and LDFLAGS environment variables ?

Indeed, it seems that almost alll included headers was not 
found when you use your CFLAGS settings, this correspond 
to all the messages you get containing "No such file or 
directory".

Somes are easy to solve, the service.h is located in
../../zoo-kernel from your ws_sp directory. So you can add 
to your CFLAGS this value : -I../../zoo-kernel. For others
it depend on your install, you can use xml2-config tool to 
resolve the header location of libxml2 which your service 
provider seems to depend on.

Note another thing that I do not understand in your 
compilation command is that you get two time service.c 
where you should get it only once (same for LDFLAGS).

Hope this answer can help you a bit and you can give us 
feedbacks and more details about your settings,
Best regards,

I hope this answer can help 

Le 8 févr. 2011 à 18:41, truongxuan quang a écrit :

> Hello all,
> 
> I am temporarily ruining ZOO-project in OSGeoLive on Virtual Box installed in WinXP. I am trying install Web Service following this link http://zoo-project.org/trac/wiki/ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices#TestingtheServiceusingExecuteRequest
> 
> I got errors when I have run this command 
> 
>  root at truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# g++ $CFLAGS -shared -fpic -o cgi-env/ServicesProvider.zo ./service.c $LDFLAGS ./service.c $LDFLAGS
> 
>  I got errors 
> 
> g++ $CFLAGS -shared -fpic -o cgi-env/ServicesProvider.zo ./service.c $LDFLAGS ./service.c $LDFLAGS
> ./service.c:1:64: error: CGAL/Exact_predicates_inexact_constructions_kernel.h: No such file or directory
> ./service.c:2:54: error: CGAL/Triangulation_euclidean_traits_xy_3.h: No such file or directory
> ./service.c:3:43: error: CGAL/Delaunay_triangulation_2.h: No such file or directory
> ./service.c:4:55: error: CGAL/Constrained_Delaunay_triangulation_2.h: No such file or directory
> ./service.c:5:44: error: CGAL/Triangulation_conformer_2.h: No such file or directory
> ./service.c:6:44: error: CGAL/Triangulation_face_base_2.h: No such file or directory
> ./service.c:10:25: error: cpl_minixml.h: No such file or directory
> ./service.c:11:21: error: ogr_api.h: No such file or directory
> ./service.c:12:25: error: ogrsf_frmts.h: No such file or directory
> ./service.c:13:21: error: service.h: No such file or directory
> ./service.c:34:25: error: libxml/tree.h: No such file or directory
> ./service.c:35:27: error: libxml/parser.h: No such file or directory
> ./service.c:36:26: error: libxml/xpath.h: No such file or directory
> ./service.c:37:35: error: libxml/xpathInternals.h: No such file or directory
> ./service.c:15: error: ‘CGAL’ has not been declared
> ./service.c:15: error: expected initializer before ‘K’
> ./service.c:17: error: ‘CGAL’ has not been declared
> ./service.c:17: error: expected initializer before ‘<’ token
> ./service.c:18: error: ‘Triangulation’ has not been declared
> ./service.c:18: error: expected initializer before ‘Edge_iterator’
> ./service.c:19: error: ‘Triangulation’ has not been declared
> ./service.c:19: error: expected initializer before ‘Point’
> ./service.c:21: error: ‘CGAL’ has not been declared
> ./service.c:21: error: expected initializer before ‘<’ token
> ./service.c:22: error: ‘CDT’ has not been declared
> ./service.c:22: error: expected initializer before ‘Point’
> ./service.c:23: error: ‘CDT’ has not been declared
> ./service.c:23: error: expected initializer before ‘Vertex_handle’
> ./service.c:25: error: ‘CGAL’ has not been declared
> ./service.c:25: error: expected initializer before ‘K’
> ./service.c:26: error: ‘CGAL’ has not been declared
> ./service.c:26: error: expected initializer before ‘<’ token
> ./service.c:27: error: ‘CGAL’ has not been declared
> ./service.c:27: error: expected initializer before ‘<’ token
> ./service.c:29: error: ‘Triangulation’ has not been declared
> ./service.c:29: error: expected initializer before ‘Vertex_circulator’
> ./service.c:31: error: ‘K’ has not been declared
> ./service.c:31: error: expected initializer before ‘Point1’
> ./service.c:45: error: expected constructor, destructor, or type conversion before ‘*’ token
> ./service.c:46: error: variable or field ‘printExceptionReportResponse’ declared void
> ./service.c:46: error: ‘maps’ was not declared in this scope
> ./service.c:46: error: expected primary-expression before ‘,’ token
> ./service.c:46: error: ‘map’ was not declared in this scope
> ./service.c:46: error: expected primary-expression before ‘)’ token
> ./service.c: In function ‘char* base64(const unsigned char*, int)’:
> ./service.c:60: error: ‘memcpy’ was not declared in this scope
> ./service.c: At global scope:
> ./service.c:68: error: ‘OGRGeometryH’ does not name a type
> .......
> ......
> 
>  How could I fix  errors, I think my directory are wrong in this case.   
> My Service Provider directory as below 
> /home/user/zoows/sources/zoo-services/
>      / zoo-kernel
>            main.cfg  service.h  service_internal.c  service_internal.h  zoo_loader.cgi
>    /zoo-service
>            cgal   ws_sp
>                     /ws_sp 
>                            Boundary.zcfg  cgi   cgi-env   service.c 
> 
> 
> Thanks!!
> 
> Regards,
> T.X.Quang
> 
> 
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at gisws.media.osaka-cu.ac.jp
> http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss

Djay
ZOO-PSC Chair
gerald.fenoy at geolabs.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20110208/dfd31048/attachment.html>


More information about the Zoo-discuss mailing list