For my purposes (just using the api with a homebrewed ogr/gdal for data conversions) @dakcarto's gdal-filegdb formula works fine without dealing with compiler issues. Installing the api as a plugin seems to be the key.https://github.com/dakcarto/homebrew-osgeo4mac/issues/8 # Place FileGDB_API_1_3-64.zip archive in GDAL_THIRD_PARTY directory export GDAL_THIRD_PARTY= #/path/to/gdb-api-zipfile brew install gdal --enable-unsupported --with-postgresql brew tap dakcarto/osgeo4mac brew install gdal-filegdb export GDAL_DRIVER_PATH= #{HOMEBREW_PREFIX}/lib/gdalplugins
# Place FileGDB_API_1_3-64.zip archive in GDAL_THIRD_PARTY directory export GDAL_THIRD_PARTY= #/path/to/gdb-api-zipfile brew install gdal --enable-unsupported --with-postgresql brew tap dakcarto/osgeo4mac brew install gdal-filegdb export GDAL_DRIVER_PATH= #{HOMEBREW_PREFIX}/lib/gdalplugins
$ install_name_tool -change /usr/lib/libstdc++.6.dylib /usr/local/Cellar/gcc49/4.9-20131103/lib/gcc/x86_64-apple-darwin13.0.0/4.9.0/libstdc++.dylib /usr/local/lib/libFileGDBAPI.dylib $ install_name_tool -change /usr/lib/libstdc++.6.dylib /usr/local/Cellar/gcc49/4.9-20131103/lib/gcc/x86_64-apple-darwin13.0.0/4.9.0/libstdc++.dylib /usr/local/lib/libfgdbunixrtl.dylib $ otool -L libFileGDBAPI.dylib libFileGDBAPI.dylib: @rpath/libFileGDBAPI.dylib (compatibility version 0.0.0, current version 0.0.0) @rpath/libfgdbunixrtl.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/Cellar/gcc49/4.9-20131103/lib/gcc/x86_64-apple-darwin13.0.0/4.9.0/libstdc++.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) $ otool -L libfgdbunixrtl.dylib libfgdbunixrtl.dylib: @rpath/libfgdbunixrtl.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) /usr/local/Cellar/gcc49/4.9-20131103/lib/gcc/x86_64-apple-darwin13.0.0/4.9.0/libstdc++.dylib (compatibility version 7.0.0, current version 52.0.0)
$ ogrinfo Misc.gdb ogrinfo(81745,0x7fff797e2310) malloc: *** error for object 0x10d219de0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6
ogrinfo(45386,0x7fff74779310) malloc: *** error for object 0x10b49dde0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
$ brew tap homebrew/versions $ brew install --enable-cxx gcc49
dyld: lazy symbol binding failed: Symbol not found: __ZN10FileGDBAPI17DeleteGeodatabaseERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEE Referenced from: <file> Expected in: flat namespace dyld: Symbol not found: __ZN10FileGDBAPI17DeleteGeodatabaseERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEE Referenced from: <file> Expected in: flat namespace
�?? nm -g libFileGDBAPI.dylib | grep DeleteGeodatabase 00000000000010b2 T __ZN10FileGDBAPI11Geodatabase17DeleteGeodatabaseEv 0000000000006260 T __ZN10FileGDBAPI17DeleteGeodatabaseERKSbIwSt11char_traitsIwESaIwEE
__ZN10FileGDBAPI17DeleteGeodatabaseERKSbIwSt11char_traitsIwESaIwEE
__ZN10FileGDBAPI17DeleteGeodatabaseERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEE
We will take a look. Can you provide more information. What errors are you seeing when you attempt to build gdal.
It appears that the available binary API is not compatible with the new OS X 10.9 Mavericks. Can anyone else confirm or deny this? I am unable to build gdal support for FileGDB, and I suspect it is due to changes in the available libs in 10.9 versus older OS versions.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.