Opened 12 years ago
Closed 12 years ago
#4588 closed defect (invalid)
FGDB API 1.2 not building
Reported by: | aestrada | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ConfigBuild | Version: | unspecified |
Severity: | major | Keywords: | FGDB |
Cc: |
Description
All,
I've referenced Ticket #4570 to try and get the trunk version of GDAL to build with FGDB API version 1.2. What am I doing wrong here?
echo '#!/bin/sh' > gdal-config echo 'CONFIG_LIBS="/root/Documents/gdal/libgdal.la"' >> gdal-config echo 'CONFIG_DEP_LIBS=" -L/usr/lib -lproj -lpoppler -L/usr/local/lib -lgeos_c -L/usr/local/lib/lib -lsqlite3 -L/usr/local/lib -lkmldom -lkmlbase -lkmlengine -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread -L/usr/include/openjpeg -L/usr/include/openjpeg/lib -lopenjpeg -L/usr/include/jasper -L/usr/include/jasper/lib -ljasper -L/usr/lib64 -lpq -llzma -lpthread -lm -lrt -ldl -lcurl -L/root/Documents/FGDB/lib -lFileGDBAPI "' >> gdal-config echo 'CONFIG_PREFIX="/root/Documents/gdal"' >> gdal-config echo 'CONFIG_CFLAGS="-I/root/Documents/gdal/port -I/root/Documents/gdal/gcore -I/root/Documents/gdal/alg -I/root/Documents/gdal/ogr -I/root/Documents/gdal/ogr/ogrsf_frmts -I/root/Documents/gdal/frmts/vrt"' >> gdal-config echo 'CONFIG_DATA="/root/Documents/gdal/data"' >> gdal-config echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ozi ctg e00grid zmap ngsgeoid pdf wcs wms grib bsb jpeg2000 gif jpeg png pcraster zlib rik rasterlite mbtiles postgisraster"' >> gdal-config cat gdal-config.in >> gdal-config chmod a+x gdal-config /bin/sh /root/Documents/gdal/libtool --mode=compile --tag=CC gcc -g -O2 -Wall -Wdeclaration-after-statement -I/root/Documents/gdal/port -I/root/Documents/gdal/gcore -I/root/Documents/gdal/alg -I/root/Documents/gdal/ogr -I/root/Documents/gdal/ogr/ogrsf_frmts -I/root/Documents/gdal/frmts -DOGR_ENABLED -I/root/Documents/gdal/port -I/usr/include/openjpeg -I/usr/include/jasper -I/usr/include/jasper/include -c -o gdalinfo.lo gdalinfo.c libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement -I/root/Documents/gdal/port -I/root/Documents/gdal/gcore -I/root/Documents/gdal/alg -I/root/Documents/gdal/ogr -I/root/Documents/gdal/ogr/ogrsf_frmts -I/root/Documents/gdal/frmts -DOGR_ENABLED -I/root/Documents/gdal/port -I/usr/include/openjpeg -I/usr/include/jasper -I/usr/include/jasper/include -c gdalinfo.c -fPIC -DPIC -o .libs/gdalinfo.o libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement -I/root/Documents/gdal/port -I/root/Documents/gdal/gcore -I/root/Documents/gdal/alg -I/root/Documents/gdal/ogr -I/root/Documents/gdal/ogr/ogrsf_frmts -I/root/Documents/gdal/frmts -DOGR_ENABLED -I/root/Documents/gdal/port -I/usr/include/openjpeg -I/usr/include/jasper -I/usr/include/jasper/include -c gdalinfo.c -o gdalinfo.o >/dev/null 2>&1 /bin/sh /root/Documents/gdal/libtool --mode=link --tag=LD g++ gdalinfo.lo /root/Documents/gdal/libgdal.la -o gdalinfo libtool: link: ignoring unknown tag LD libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo /root/Documents/gdal/.libs/libgdal.so -L/usr/lib -L/usr/local/lib -L/usr/local/lib/lib -L/usr/include/openjpeg -L/usr/include/openjpeg/lib -L/usr/include/jasper -L/usr/include/jasper/lib -L/usr/lib64 -L/root/Documents/FGDB/lib /usr/local/lib/libproj.so -lpoppler /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lsqlite3 /usr/local/lib/libkmldom.so /usr/local/lib/libkmlengine.so /usr/local/lib/libkmlbase.so /usr/local/lib/libkmlconvenience.so /usr/local/lib/libminizip.so -lz /usr/local/lib/liburiparser.so -lexpat -lxerces-c -lopenjpeg -ljasper -lpq -llzma -lpthread -lm -lrt -ldl -lcurl -lFileGDBAPI /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Table::GetDefinition(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetOID(int&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Table::Search(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, FileGDBAPI::Envelope const&, bool, FileGDBAPI::EnumRows&)' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::IsNull(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, bool&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetGeometry(FileGDBAPI::ShapeBuffer&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetShort(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, short&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetDate(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, tm&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Table::GetRowCount(int&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetString(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Table::GetDocumentation(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Geodatabase::GetQueryName(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetInteger(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, int&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Table::GetExtent(FileGDBAPI::Envelope&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetDouble(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, double&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Geodatabase::GetChildDatasets(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::vector<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >&) const' /root/Documents/gdal/.libs/libgdal.so: undefined reference to `FileGDBAPI::Row::GetFloat(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, float&) const' collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory `/root/Documents/gdal/apps' make: *** [apps-target] Error 2
Change History (5)
comment:1 by , 12 years ago
comment:3 by , 12 years ago
Is the filegdbapi lib installed in /usr/lib ? This does not sound like a GDAL specific issue, but a rather classic link issue
comment:4 by , 12 years ago
Argh! I have no idea why it would just stop linking to the files that are referenced in the config settings. It works now though...
Thanks, Adam
Note:
See TracTickets
for help on using tickets.
did you upgrade from API 1.1 to 1.2 ? If so, you might need to make clean before rebuilding.