[Qgis-user] Error compiling QGIS 2.18.8: "QStringLiteral was not declared in this scope"

Hernán De Angelis dhdeangelis at gmail.com
Wed May 24 13:56:49 PDT 2017


Hi,

I am trying to compile 2.18.8 from source. This is my usual way of
installing QGIS and I never experience any dramatic problems. However, this
time I keep getting the following cryptic error, which I cannot seem to get
around:


Building CXX object src/app/CMakeFiles/qgis_app.dir/qgisapp.cpp.o
/usr/local/src/qgis-2.18.8/src/app/qgisapp.cpp: In member function
‘QgsVectorLayer* QgisApp::addVectorLayer(const QString&, const QString&,
const QString&)’:
/usr/local/src/qgis-2.18.8/src/app/qgisapp.cpp:9318:52: error:
‘QStringLiteral’ was not declared in this scope
         layer->setName( QStringLiteral( "%1 %2 %3" ).arg( layer->name(),
elements.at( 1 ), elements.at( 3 ) ) );
                                                    ^
src/app/CMakeFiles/qgis_app.dir/build.make:847: recipe for target
'src/app/CMakeFiles/qgis_app.dir/qgisapp.cpp.o' failed
make[2]: *** [src/app/CMakeFiles/qgis_app.dir/qgisapp.cpp.o] Error 1
CMakeFiles/Makefile2:1823: recipe for target
'src/app/CMakeFiles/qgis_app.dir/all' failed
make[1]: *** [src/app/CMakeFiles/qgis_app.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2



Any hint of what's going wrong?

System: openSUSE Leap 42.2, python 2.7.12, Qt 4.8.6, gdal 2.1.3, geos 3.6.0


Thanks in advance

/H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170524/e5131c1a/attachment.html>


More information about the Qgis-user mailing list