I recently decided to reinstall QGIS and build against the latest version of GDAL - something I have been putting off for ages because I suspected it would be a nightmare. Lo and behold it has been, so after a full-day of trying to get this to compile following these: instructions I'm reaching out for some help.
I successfully built GDAL 2.0 this morning (at least I think it was successful gdalinfo --version
is now showing GDAL 2.0.0, released 2015/06/14
and have been working my way through the instructions above.
I'm currently stuck at 47% with make failing here:
[ 47%] Built target qgis.d.rast7
Linking C executable ../../../../output/lib/qgis/grass/modules/qgis.g.info7
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRGetLinearUnits@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRExportToWkt@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRGetAttrValue@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `SetCSVFilenameHook@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRExportToProj4@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRMorphFromESRI@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRExportToPrettyWkt@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRMorphToESRI@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRImportFromProj4@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRDestroySpatialReference@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `VSIFree@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRIsProjected@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRNewSpatialReference@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRIsGeographic@GDAL_1.8'
/usr/lib/grass70/lib/libgrass_gproj.so: undefined reference to `OSRGetUTMZone@GDAL_1.8'
collect2: error: ld returned 1 exit status
make[2]: *** [output/lib/qgis/grass/modules/qgis.g.info7] Error 1
make[1]: *** [src/providers/grass/7/CMakeFiles/qgis.g.info7.dir/all] Error 2
make: *** [all] Error 2
I'm not quite sure what this means - though some searching suggests I may still have an old install of GDAL lurking, though not sure I can find it - as I removed a couple earlier when make failed much earlier on.
I thought it could be something to do with Grass 7 which I installed following these enter link description here instructions. But I've also tried to compile with GRASS_PREFIX7
set to OFF
in ccmake
. But make fails at the same place.
p.s. using: Ubuntu 14.04 GRASS7 GDAL 2.0
ldd
(en.wikipedia.org/wiki/Ldd_%28Unix%29),nm
andreadelf
stackoverflow.com/questions/34732/… to try to follow and understand where the bug can come from.