[mapguide-users] FDO 3.1 for linux Fedora Core 4

alba a.penitente at gepaspa.com
Thu Sep 28 04:23:00 EDT 2006




Frank Warmerdam-2 wrote:
> 
> alba wrote:
>> My problem is the test data of fdo 3.1
>> when I digit cd /home/OpenSource_FDO/providers/SDFPlus/UnitTest
>>                 ./UnitTest
>> 
>> on  the terminal iis null, therefore the test goes in loop, why?
>> 
>> 
>> someone has had the same problem? 
> 
> Alba,
> 
> I tried to reproduce this, but have discovered that I can't build the
> SDF provider due to some sort of problem with my gcc being too old.  I
> get the following:
> 
> 3.2.0\" "-DPACKAGE_STRING=\"FDOSDF 3.2.0\"" 
> -DPACKAGE_BUGREPORT=\"http://www.fdo.osgeo.org\" -DPACKAGE=\"fdosdf\" 
> -DVERSION=\"3.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -I. 
> -I. -I../../Inc -I/home/warmerda/pkg/fdocore/Fdo/Unmanaged/Inc 
> -I/home/warmerda/pkg/fdocore/Fdo/Unmanaged/Src/Nls -I/usr/include 
> -I../Message/Inc -I../Utils
> -I/home/warmerda/pkg/fdocore/Utilities/Common/Inc 
> -I/home/warmerda/pkg/fdocore/Utilities/SQLiteInterface -DSQLITE 
> -D_FILE_OFFSET_BITS=64 -O -MT SdfApplySchema.lo -MD -MP -MF 
> .deps/SdfApplySchema.Tpo -c SdfApplySchema.cpp  -fPIC -DPIC -o 
> .libs/SdfApplySchema.o
> In file included from /usr/include/c++/3.3.3/bits/locale_facets.tcc:43,
>                   from /usr/include/c++/3.3.3/locale:47,
>                   from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
>                   from /usr/include/c++/3.3.3/ostream:535,
>                   from /usr/include/c++/3.3.3/iterator:70,
>                   from /usr/include/c++/3.3.3/ext/stl_hashtable.h:69,
>                   from /usr/include/c++/3.3.3/ext/hash_map:65,
>                   from BinaryReader.h:22,
>                   from DataDb.h:21,
>                   from TableReformatter.h:19,
>                   from SdfSchemaMergeContext.h:20,
>                   from SdfConnection.h:25,
>                   from SdfCommand.h:19,
>                   from SdfApplySchema.h:16,
>                   from SdfApplySchema.cpp:19:
> /usr/include/c++/3.3.3/limits:205:22: macro "min" requires 2 arguments,
> but 
> only 1 given
> In file included from /usr/include/c++/3.3.3/bits/locale_facets.tcc:43,
>                   from /usr/include/c++/3.3.3/locale:47,
>                   from /usr/include/c++/3.3.3/bits/ostream.tcc:37,
>                   from /usr/include/c++/3.3.3/ostream:535,
>                   from /usr/include/c++/3.3.3/iterator:70,
>                   from /usr/include/c++/3.3.3/ext/stl_hashtable.h:69,
>                   from /usr/include/c++/3.3.3/ext/hash_map:65,
>                   from BinaryReader.h:22,
>                   from DataDb.h:21,
>                   from TableReformatter.h:19,
>                   from SdfSchemaMergeContext.h:20,
>                   from SdfConnection.h:25,
>                   from SdfCommand.h:19,
>                   from SdfApplySchema.h:16,
>                   from SdfApplySchema.cpp:19:
> /usr/include/c++/3.3.3/limits:205: error: syntax error before `throw'
> /usr/include/c++/3.3.3/limits:206:22: macro "max" requires 2 arguments,
> but 
> only 1 given
> /usr/include/c++/3.3.3/limits:206: error: ISO C++ forbids defining types
> within
>     return type
> 
> I am wondering if you have tried building the SHP provider and running
> it's unit tests.  Did those work for you?  I have done that and I get
> the following which I presume indicates everything worked.
> 
> ..........................................................................................................0.850 
> seconds
> locale= en_US.UTF-8
> ..locale: en_US.iso88591
> ..locale: en_US.utf8
> ..locale: fr_FR.iso88591
> ..locale: ja_JP.eucjp
> 0. = (189831.187500, 11641577.000000)(1587270520.000000,
> 1640228167.000000)
> 0. NAD_1983_HARN_UTM_Zone_17N= (-146758.464000,
> 2773606.502000)(596256.145000, 
> 3452202.304000)
> 0. NAD_1983_HARN_UTM_Zone_17N= (-146758.464000,
> 2773606.502000)(596256.145000, 
> 3452202.304000)
> 0. WGS84 Lat/Long's, Degrees, -180 ==> +180= (-97.200447, 
> 41.771564)(-87.636185, 43.810032)
> 0. WGS84 Lat/Long's, Degrees, -180 ==> +180= (-97.200447, 
> 41.771564)(-87.636185, 43.810032)
> Expected error 'Duplicate field name 'STATESP020' in 
> '../../TestData/States/statesp020.dbf'.'
> 
> 
> Shape file ../../TestData/Zones/ZONES has the following statistics:
>     0 true FDO multipolygons
>     508 SHP polygons with 1 ring
>     16 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     51 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/World/world_adm0 has the following statistics:
>     0 true FDO multipolygons
>     132 SHP polygons with 1 ring
>     77 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     769 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/BuildingOutlines has the following
> statistics:
>     0 true FDO multipolygons
>     30336 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/CityLimits has the following
> statistics:
>     0 true FDO multipolygons
>     3 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/HydrographicPolygons has the following 
> statistics:
>     0 true FDO multipolygons
>     91 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/Islands has the following statistics:
>     0 true FDO multipolygons
>     5 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/LandUse has the following statistics:
>     0 true FDO multipolygons
>     4979 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     1 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/Parcels has the following statistics:
>     0 true FDO multipolygons
>     17563 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     2 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/Soils has the following statistics:
>     0 true FDO multipolygons
>     794 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Sheboygan/VotingDistricts has the following
> statistics:
>     0 true FDO multipolygons
>     11 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Ontario/lakes has the following statistics:
>     0 true FDO multipolygons
>     ....................................................79 SHP polygons
> with 1 
> ring
>     17 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     3 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Ontario/ontario has the following statistics:
>     0 true FDO multipolygons
>     1 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Oahu/coundist01_n83 has the following
> statistics:
>     0 true FDO multipolygons
>     32 SHP polygons with 1 ring
>     0 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Hawaii/coast_n83 has the following statistics:
>     0 true FDO multipolygons
>     12 SHP polygons with 1 ring
>     1 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> 
> Shape file ../../TestData/Florida/plss24 has the following statistics:
>     0 true FDO multipolygons
>     55731 SHP polygons with 1 ring
>     41 SHP polygons with 2+ rings
>     0 SHP polygons with non-closed rings
>     0 outer rings with wrong vertex order
>     0 inner rings with wrong vertex order
>     0 polygons with incorrect ring order
> OK (158)
> 
> 
> -- 
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGeo, http://osgeo.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 



thank you for answer

I am using gcc 4.0.2   (Red Hat 4.0.0-8)
I have tried I am fdo 3.1 that fdo 3.2 
I have executed the following steps :

[root at CarboneLinux ~]# export CC=gcc402
[root at CarboneLinux ~]# export CXX=g++402
[root at CarboneLinux ~]# export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06
[root at CarboneLinux ~]# cd /home/OpenSource
[root at CarboneLinux ~]#./setenvironment.sh
[root at CarboneLinux ~]sh build_thirdparty.sh
[root at CarboneLinux ~]./build_linux.sh --d build
...................................................................................
...........................................................................................
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/OpenSource/Providers/GDAL/Src'
make[2]: Leaving directory`/home/OpenSource/Providers/GDAL/Src'
make[1]: Leaving directory `/home/OpenSource/Providers/GDAL/Src'
Making install in Inc[root at CarboneLinux ~]#
make[1]: Entering directory `/home/OpenSource/Providers/GDAL/Inc'
make[1]: Leaving directory `/home/OpenSource/Providers/GDAL/Inc'
make[1]: Entering directory `/home/OpenSource/Providers/GDAL'
make[2]: Entering directory `/home/OpenSource/Providers/GDAL'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/OpenSource/Providers/GDAL'
make[1]: Leaving directory `/home/OpenSource/Providers/GDAL'

[root at CarboneLinux OpenSource]# cd /home/OpenSource/Fdo/UnitTest
[root at CarboneLinux UnitTest]# ./UnitTest
null
[root at CarboneLinux OpenSource]# cd
/home/OpenSource/Providers/SDF/Src/UnitTest
[root at CarboneLinux UnitTest]# ./UnitTest
null
[root at CarboneLinux OpenSource]# cd
/home/OpenSource/Providers/Shp/Src/UnitTest
[root at CarboneLinux UnitTest]# ./UnitTest
null
-- 
View this message in context: http://www.nabble.com/FDO-3.1-for-linux-Fedora-Core-4-tf2339252.html#a6542250
Sent from the OSGeo MapGuide mailing list archive at Nabble.com.





More information about the Mapguide_users mailing list