[QGIS-Developer] Build problems of master (GDAL related)

Andreas Neumann a.neumann at carto.net
Wed Dec 13 01:26:37 PST 2017


Hi,

I tried to build latest QGIS master but run into - probably - GDAL issues:

-----------------------

47/4075] Generating qgsversion.h, qgsversion.inc
Files "/home/an/dev/QGIS/build/qgsversion.h.temp" to 
"/home/an/dev/QGIS/build/qgsversion.h" are different.
[104/4075] Building CXX object 
src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o
FAILED: src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o
/usr/lib/ccache/c++  -DENABLE_TESTS -DQGISDEBUG=1 -DQT_CONCURRENT_LIB 
-DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB 
-DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_POSITIONING_LIB 
-DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB 
-DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB 
-DTEST_DATA_DIR=\"/home/an/dev/QGIS/tests/testdata\" -DWITH_BINDINGS 
-DWITH_QTWEBKIT -D_HAVE_PTHREAD_ -D_TTY_POSIX_ -Dqgis_core_EXPORTS -I. 
-I../src/core -Isrc/core -I../src/core/3d -I../src/core/annotations 
-I../src/core/auth -I../src/core/composer -I../src/core/dxf 
-I../src/core/effects -I../src/core/expression 
-I../src/core/fieldformatter -I../src/core/geometry -I../src/core/geocms 
-I../src/core/geocms/geonode -I../src/core/layertree 
-I../src/core/layout -I../src/core/locator -I../src/core/metadata 
-I../src/core/pal -I../src/core/processing 
-I../src/core/processing/models -I../src/core/providers 
-I../src/core/providers/memory -I../src/core/raster 
-I../src/core/renderer -I../src/core/scalebar -I../src/core/symbology 
-I../src/core/gps/qextserialport -isystem /usr/include/x86_64-linux-gnu 
-isystem /usr/include/spatialindex -isystem /usr/local/include -isystem 
/usr/include/QtCrypto -isystem /usr/include/qt5keychain -isystem 
/usr/include/x86_64-linux-gnu/qt5 -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtXml -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtCore -isystem 
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtWebKit -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtSql -isystem 
/usr/include/x86_64-linux-gnu/qt5/QtPositioning -Wall -Wextra 
-Wno-long-long -Wformat-security -Wno-strict-aliasing -g -fPIC 
-fvisibility=hidden   -fPIC -std=gnu++11 -MD -MT 
src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o -MF 
src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o.d -o 
src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o -c 
../src/core/qgsvectorfilewriter.cpp
../src/core/qgsvectorfilewriter.cpp: In static member function ‘static 
bool QgsVectorFileWriter::supportsFeatureStyles(const QString&)’:
../src/core/qgsvectorfilewriter.cpp:126:43: error: 
‘GDAL_DCAP_FEATURE_STYLES’ was not declared in this scope
    return CSLFetchBoolean( driverMetadata, GDAL_DCAP_FEATURE_STYLES, 
false );
^~~~~~~~~~~~~~~~~~~~~~~~
../src/core/qgsvectorfilewriter.cpp:126:43: note: suggested alternative: 
‘GDAL_DCAP_DEFAULT_FIELDS’
    return CSLFetchBoolean( driverMetadata, GDAL_DCAP_FEATURE_STYLES, 
false );
^~~~~~~~~~~~~~~~~~~~~~~~
GDAL_DCAP_DEFAULT_FIELDS
[113/4075] Building CXX object 
src/core/CMakeFiles/qgis_core.dir/composer/qgscomposition.cpp.o
ninja: build stopped: subcommand failed.

--------------------

I use GDAL SVN (latest version): GDAL 2.3.0dev, released 2017/99/99

Any idea what could be done to fix my compile issues?

Thanks a lot,

Andreas



More information about the QGIS-Developer mailing list