[gdal-dev] Re: FileGDB OGR driver test
Even Rouault
even.rouault at mines-paris.org
Thu Apr 14 13:11:33 EDT 2011
Le jeudi 14 avril 2011 16:50:16, Eli Adam a écrit :
> I tried compiling the FileGDB OGR driver on ubuntu 8.04 and got a few
> errors. On the first step I got:
>
> eadam at lgis0229ubuntu:/usr/local/src/gdal$ g++ -Wall -g
> ogr/ogrsf_frmts/filegdb/*.c* -shared -o ogr_filegdb.so -Iport -Igcore
> -Iogr -Iogr/ogrsf_frmts -Iogr/ogrsf_frmts/filegdb -L. -lgdal
> -I/home/eadam/filegdb/dist/include -L/home/eadam/filegdb/dist/lib
> -I/home/eadam/filegdb/dist/src/FileGDBEngine/include/FileGDBLinux
> -lFileGDBAPI
> In file included from ogr/ogrsf_frmts/filegdb/ogr_fgdb.h:51,
> from ogr/ogrsf_frmts/filegdb/FGdbDatasource.cpp:29:
> /home/eadam/filegdb/dist/include/Geodatabase.h:237: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:238: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:242: warning: ignoring
> #pragma warning
> In file included from ogr/ogrsf_frmts/filegdb/ogr_fgdb.h:51,
> from ogr/ogrsf_frmts/filegdb/FGdbDriver.cpp:29:
> /home/eadam/filegdb/dist/include/Geodatabase.h:237: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:238: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:242: warning: ignoring
> #pragma warning
> In file included from ogr/ogrsf_frmts/filegdb/ogr_fgdb.h:51,
> from ogr/ogrsf_frmts/filegdb/FGdbLayer.cpp:29:
> /home/eadam/filegdb/dist/include/Geodatabase.h:237: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:238: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:242: warning: ignoring
> #pragma warning
> In file included from ogr/ogrsf_frmts/filegdb/ogr_fgdb.h:51,
> from ogr/ogrsf_frmts/filegdb/FGdbUtils.h:33,
> from ogr/ogrsf_frmts/filegdb/FGdbUtils.cpp:29:
> /home/eadam/filegdb/dist/include/Geodatabase.h:237: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:238: warning: ignoring
> #pragma warning
> /home/eadam/filegdb/dist/include/Geodatabase.h:242: warning: ignoring
> #pragma warning
Just warnings due to a #pragma in filegdb headers. Although it is a bit
annoying, nothing to worry about
>
> Then I added to ~.bashrc:
> GDAL_DRIVER_PATH=/usr/local/src/gdal
> export GDAL_DRIVER_PATH
>
> then:
> eadam at lgis0229ubuntu:/usr/local/src/gdal$ ogrinfo --formats
> ERROR 1: libFileGDBAPI.so: cannot open shared object file: No such file
> or directory
> ERROR 1: libFileGDBAPI.so: cannot open shared object file: No such file
> or directory
> Supported Formats:
> -> "ESRI Shapefile" (read/write)
> -> "MapInfo File" (read/write)
> -> "UK .NTF" (readonly)
> -> "SDTS" (readonly)
> -> "TIGER" (read/write)
> ...
Just add /home/eadam/filegdb/dist/lib to your LD_LIBRARY_PATH
> ...
>
> Any suggestions? I've been tracking trunk of gdal for about a year,
> although always in a simple fashion (no plugins etc). I would not
> necessarily catch something basic.
Yes I agree. At some point, it would be desirable for the driver to be
integrated properly to the build system
>
> Best Regards, Eli
>
More information about the gdal-dev
mailing list