[ZOO-Discuss] Boundary ZOO Service
truongxuan quang
truongxuanquang at yahoo.com
Mon Feb 14 03:50:41 PST 2011
Dear Gérald
Thank you for your help. I have checked again
../../zoo-kernel/service_internal.o, it missed service_internal.o file, I had
copy from zoows.tar.bz2 I already avoid previous error "No such file or
directory". But there is still error 265 in my command, Could you please have a
look for responsive inform bellow
root at truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# g++ $CFLAGS
-shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS
./service.c: In function ‘void* createGeometryFromGML(maps*, char*)’:
./service.c:75: warning: deprecated conversion from string constant to ‘char*’
./service.c: In function ‘int Delaunay(maps*&, maps*&, maps*&)’:
./service.c:122: warning: deprecated conversion from string constant to ‘char*’
./service.c:122: warning: deprecated conversion from string constant to ‘char*’
./service.c:142: warning: deprecated conversion from string constant to ‘char*’
./service.c:142: warning: deprecated conversion from string constant to ‘char*’
./service.c:181: warning: deprecated conversion from string constant to ‘char*’
./service.c:181: warning: deprecated conversion from string constant to ‘char*’
./service.c:183: warning: deprecated conversion from string constant to ‘char*’
./service.c:187: warning: deprecated conversion from string constant to ‘char*’
./service.c:230: warning: deprecated conversion from string constant to ‘char*’
./service.c:230: warning: deprecated conversion from string constant to ‘char*’
./service.c:265: error: conversion from
‘CGAL::Triangulation_ds_vertex_circulator_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Triangulation_euclidean_traits_xy_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Triangulation_ds_vertex_base_2<void> >,
CGAL::Triangulation_ds_face_base_2<void> > >’ to non-scalar type
‘Vertex_circulator’ requested
./service.c:379: warning: deprecated conversion from string constant to ‘char*’
./service.c:384: warning: format ‘%d’ expects type ‘int’, but argument 4 has
type ‘__off_t’
./service.c: In function ‘int Voronoi(maps*&, maps*&, maps*&)’:
./service.c:417: warning: deprecated conversion from string constant to ‘char*’
./service.c:417: warning: deprecated conversion from string constant to ‘char*’
./service.c:437: warning: deprecated conversion from string constant to ‘char*’
./service.c:437: warning: deprecated conversion from string constant to ‘char*’
./service.c:474: warning: deprecated conversion from string constant to ‘char*’
./service.c:474: warning: deprecated conversion from string constant to ‘char*’
./service.c:476: warning: deprecated conversion from string constant to ‘char*’
./service.c:480: warning: deprecated conversion from string constant to ‘char*’
./service.c:523: warning: deprecated conversion from string constant to ‘char*’
./service.c:523: warning: deprecated conversion from string constant to ‘char*’
./service.c:595: warning: deprecated conversion from string constant to ‘char*’
in this directory /usr/include/CGAL there is not including
Triangulation_ds_vertex_circulator_2.h file as 265 error said.
please help me to fix the error.
Thank you very much and have a nice day
T.X.Quang
________________________________
From: Gérald Fenoy <gerald.fenoy at geolabs.fr>
To: truongxuan quang <truongxuanquang at yahoo.com>
Cc: zoo-discuss <zoo-discuss at gisws.media.osaka-cu.ac.jp>
Sent: Fri, February 11, 2011 7:34:55 PM
Subject: Re: [ZOO-Discuss] Boundary ZOO Service
Quang,
I noticed something a bit strange in the error messages you shown to me.
g++ is not able to find ../../zoo-kernel/service_internal.o from your ws_sp
directory.
Can you ensure that when you do "ls ../../zoo-kernel/service_internal.o" it
gives you
the file name rather than a message explaining that there is no file with that
name.
If you don't get the file, then you will probably have to compile zoo-kernel in
the
../../zoo-kernel directory.
Once you get the compiled ZOO-Kernel you should solve one issue. Then there
is still the error about the line 265 of the service.c file. Let see if we can
go to this
last step.
Hope it helps,
Best
Le 11 févr. 2011 à 18:33, truongxuan quang a écrit :
Dear Gérald
>
>Thanks! exactly I was missing CGAL so after install, it look better, I sent you
>the result what I have got.
>
>root at truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# g++ $CFLAGS
>-shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS
>g++: ../../zoo-kernel/service_internal.o: No such file or directory
>./service.c: In function ‘void* createGeometryFromGML(maps*, char*)’:
>./service.c:75: warning: deprecated conversion from string constant to ‘char*’
>./service.c: In function ‘int Delaunay(maps*&, maps*&, maps*&)’:
>./service.c:122: warning: deprecated conversion from string constant to ‘char*’
>./service.c:122: warning: deprecated conversion from string constant to ‘char*’
>./service.c:142: warning: deprecated conversion from string constant to ‘char*’
>./service.c:142: warning: deprecated conversion from string constant to ‘char*’
>./service.c:181: warning: deprecated conversion from string constant to ‘char*’
>./service.c:181: warning: deprecated conversion from string constant to ‘char*’
>./service.c:183: warning: deprecated conversion from string constant to ‘char*’
>./service.c:187: warning: deprecated conversion from string constant to ‘char*’
>./service.c:230: warning: deprecated conversion from string constant to ‘char*’
>./service.c:230: warning: deprecated conversion from string constant to ‘char*’
>./service.c:265: error: conversion from
>‘CGAL::Triangulation_ds_vertex_circulator_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Triangulation_euclidean_traits_xy_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> > >, CGAL::Triangulation_ds_vertex_base_2<void> >,
>CGAL::Triangulation_ds_face_base_2<void> > >’ to non-scalar type
>‘Vertex_circulator’ requested
>./service.c:379: warning: deprecated conversion from string constant to ‘char*’
>./service.c:384: warning: format ‘%d’ expects type ‘int’, but argument 4 has
>type ‘__off_t’
>./service.c: In function ‘int Voronoi(maps*&, maps*&, maps*&)’:
>./service.c:417: warning: deprecated conversion from string constant to ‘char*’
>./service.c:417: warning: deprecated conversion from string constant to ‘char*’
>./service.c:437: warning: deprecated conversion from string constant to ‘char*’
>./service.c:437: warning: deprecated conversion from string constant to ‘char*’
>./service.c:474: warning: deprecated conversion from string constant to ‘char*’
>./service.c:474: warning: deprecated conversion from string constant to ‘char*’
>./service.c:476: warning: deprecated conversion from string constant to ‘char*’
>./service.c:480: warning: deprecated conversion from string constant to ‘char*’
>./service.c:523: warning: deprecated conversion from string constant to ‘char*’
>./service.c:523: warning: deprecated conversion from string constant to ‘char*’
>./service.c:595: warning: deprecated conversion from string constant to ‘char*’
>
>Thank you and waiting for last help
>Best,
>T.X.Quang
>
>
>
>
________________________________
From: Gérald Fenoy <gerald.fenoy at geolabs.fr>
>To: truongxuan quang <truongxuanquang at yahoo.com>
>Cc: zoo-discuss <zoo-discuss at gisws.media.osaka-cu.ac.jp>
>Sent: Fri, February 11, 2011 5:36:32 PM
>Subject: Re: [ZOO-Discuss] Boundary ZOO Service
>
>Dear Quang,
>scuse me, at the beginning you used g++ so I didn't noticed that after you
>changed for
>g++. It seems you need to use g++ in your case.
>
>
>Your service provider is depending on CGAL. Are you sure you get it installed on
>your
>OSGeoLiveDVD platform ?
>
>
>If not, you probably would use the following command to install CGAL library
>and
>header files (the -dev package in the Debian world):
> sudo apt-install search libcgal-dev
>
>
>Maybe your service provider doesn't need GDAL library, in such case, please,
>remove
>the include lines mentioning the CGAL directory.
>
>
>Hope it help,
>Best,
>
>
>Le 11 févr. 2011 à 17:18, truongxuan quang a écrit :
>
>
>>Thank you for help, I am sorry!!! but I need you help again because it still
>>getting errors after run the 3rd command
>>
>>root at truong-desktop:/home/user/zoows/sources/zoo-services/ws_sp# gcc $CFLAGS
>>-shared -fpic -o cgi-env/ServiceProvidder.zo ./service.c $LDFLAGS
>>
>>gcc: ../../zoo-kernel/service_internal.o: No such file or directory
>>./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:8:19: error: fstream: No such file or directory
>>In file included from /usr/include/gdal/ogr_geometry.h:35,
>> from /usr/include/gdal/ogr_feature.h:33,
>> from /usr/include/gdal/ogrsf_frmts.h:33,
>> from ./service.c:12:
>>/usr/include/gdal/ogr_spatialref.h:59: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_spatialref.h:59: error: expected ‘,’ or ‘;’ before
>>‘OGR_SRSNode’
>>/usr/include/gdal/ogr_spatialref.h:127: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_spatialref.h:127: error: expected ‘,’ or ‘;’ before
>>‘OGRSpatialReference’
>>/usr/include/gdal/ogr_spatialref.h:515: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_spatialref.h:515: error: expected ‘,’ or ‘;’ before
>>‘OGRCoordinateTransformation’
>>/usr/include/gdal/ogr_spatialref.h:571: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_spatialref.h:571: error: expected ‘,’ or ‘;’ before ‘*’
>>token
>>In file included from /usr/include/gdal/ogr_feature.h:33,
>> from /usr/include/gdal/ogrsf_frmts.h:33,
>> from ./service.c:12:
>>/usr/include/gdal/ogr_geometry.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>‘__attribute__’ before ‘OGRRawPoint’
>>/usr/include/gdal/ogr_geometry.h:80: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:80: error: expected ‘,’ or ‘;’ before
>>‘OGRGeometry’
>>/usr/include/gdal/ogr_geometry.h:169: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:169: error: expected ‘,’ or ‘;’ before
>>‘OGRPoint’
>>/usr/include/gdal/ogr_geometry.h:224: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:224: error: expected ‘,’ or ‘;’ before
>>‘OGRCurve’
>>/usr/include/gdal/ogr_geometry.h:246: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:246: error: expected ‘,’ or ‘;’ before
>>‘OGRLineString’
>>/usr/include/gdal/ogr_geometry.h:338: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:338: error: expected ‘,’ or ‘;’ before
>>‘OGRLinearRing’
>>/usr/include/gdal/ogr_geometry.h:381: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:381: error: expected ‘,’ or ‘;’ before
>>‘OGRSurface’
>>/usr/include/gdal/ogr_geometry.h:402: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:402: error: expected ‘,’ or ‘;’ before
>>‘OGRPolygon’
>>/usr/include/gdal/ogr_geometry.h:468: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:468: error: expected ‘,’ or ‘;’ before
>>‘OGRGeometryCollection’
>>/usr/include/gdal/ogr_geometry.h:528: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:528: error: expected ‘,’ or ‘;’ before
>>‘OGRMultiPolygon’
>>/usr/include/gdal/ogr_geometry.h:553: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:553: error: expected ‘,’ or ‘;’ before
>>‘OGRMultiPoint’
>>/usr/include/gdal/ogr_geometry.h:579: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:579: error: expected ‘,’ or ‘;’ before
>>‘OGRMultiLineString’
>>/usr/include/gdal/ogr_geometry.h:604: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_geometry.h:604: error: expected ‘,’ or ‘;’ before
>>‘OGRGeometryFactory’
>>In file included from /usr/include/gdal/ogr_feature.h:34,
>> from /usr/include/gdal/ogrsf_frmts.h:33,
>> from ./service.c:12:
>>/usr/include/gdal/ogr_featurestyle.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>‘__attribute__’ before ‘OGRFeature’
>>/usr/include/gdal/ogr_featurestyle.h:81: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_featurestyle.h:81: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleTable’
>>/usr/include/gdal/ogr_featurestyle.h:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>>or ‘__attribute__’ before ‘OGRStyleTool’
>>/usr/include/gdal/ogr_featurestyle.h:115: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:115: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleMgr’
>>/usr/include/gdal/ogr_featurestyle.h:159: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:159: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleTool’
>>/usr/include/gdal/ogr_featurestyle.h:242: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:242: error: expected ‘,’ or ‘;’ before
>>‘OGRStylePen’
>>/usr/include/gdal/ogr_featurestyle.h:290: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:290: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleBrush’
>>/usr/include/gdal/ogr_featurestyle.h:337: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:337: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleSymbol’
>>/usr/include/gdal/ogr_featurestyle.h:395: warning: data definition has no type
>>or storage class
>>/usr/include/gdal/ogr_featurestyle.h:395: error: expected ‘,’ or ‘;’ before
>>‘OGRStyleLabel’
>>In file included from /usr/include/gdal/ogrsf_frmts.h:33,
>> from ./service.c:12:
>>/usr/include/gdal/ogr_feature.h:51: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_feature.h:51: error: expected ‘,’ or ‘;’ before
>>‘OGRFieldDefn’
>>/usr/include/gdal/ogr_feature.h:113: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_feature.h:113: error: expected ‘,’ or ‘;’ before
>>‘OGRFeatureDefn’
>>/usr/include/gdal/ogr_feature.h:159: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_feature.h:159: error: expected ‘,’ or ‘;’ before
>>‘OGRFeature’
>>/usr/include/gdal/ogr_feature.h:296: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>‘__attribute__’ before ‘OGRLayer’
>>/usr/include/gdal/ogr_feature.h:298: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogr_feature.h:298: error: expected ‘,’ or ‘;’ before
>>‘OGRFeatureQuery’
>>In file included from ./service.c:12:
>>/usr/include/gdal/ogrsf_frmts.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>‘__attribute__’ before ‘OGRLayerAttrIndex’
>>/usr/include/gdal/ogrsf_frmts.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>‘__attribute__’ before ‘OGRSFDriver’
>>/usr/include/gdal/ogrsf_frmts.h:54: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogrsf_frmts.h:54: error: expected ‘,’ or ‘;’ before
>‘OGRLayer’
>>/usr/include/gdal/ogrsf_frmts.h:152: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogrsf_frmts.h:152: error: expected ‘,’ or ‘;’ before
>>‘OGRDataSource’
>>/usr/include/gdal/ogrsf_frmts.h:231: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogrsf_frmts.h:231: error: expected ‘,’ or ‘;’ before
>>‘OGRSFDriver’
>>/usr/include/gdal/ogrsf_frmts.h:264: warning: data definition has no type or
>>storage class
>>/usr/include/gdal/ogrsf_frmts.h:264: error: expected ‘,’ or ‘;’ before
>>‘OGRSFDriverRegistrar’
>>./service.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
>>‘:’ token
>>./service.c:33: error: expected identifier or ‘(’ before string constant
>>
>>Thanks
>>T.X.Quang
>>
>>________________________________
Never miss an email again!
>>Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
>
>Gérald Fenoy
>ZOO-PSC Chair
>gerald.fenoy at geolabs.fr
>
>
>
>
Gérald Fenoy
ZOO-PSC Chair
gerald.fenoy at geolabs.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20110214/45cdb9f7/attachment.html>
More information about the Zoo-discuss
mailing list