qgis / homebrew-qgisdev

Homebrew recipes for QGIS and MacOS
39 stars 31 forks source link

includes lead to using GDAL 1.11 #39

Closed 3nids closed 6 years ago

3nids commented 7 years ago

../src/core/qgsgml.cpp:883:9: error: use of undeclared identifier 'OGR_G_ExportToIsoWkb'; did you mean 'OGR_G_ExportToWkb'? OGR_G_ExportToIsoWkb( hGeom, wkbNDR, pabyBuffer ); ^~~~~~~~ OGR_G_ExportToWkb /usr/local/include/ogr_api.h:102:16: note: 'OGR_G_ExportToWkb' declared here OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*)

I think there is an issue with includes with latest master of QGIS. When runnong qgis-cmake-setup.sh and build. /usr/local/include/ogr_api.h points to GDAL 1.11 while GDAL 2 is correctly setup in cmake.