[QGIS-Developer] Problem compiling QGIS on Debian stretch

Tom Palan thomas at palan.at
Wed Feb 26 06:01:01 PST 2020


Hi,

I am having problems compiling QGIS 3.10.3 on Debian stretch. The compile does work flawlessly on Debian buster.
Is compiling on Debian stretch not supported anymore?

The error message after mkdir build && cd build && cmake .. && make is:

[  7%] Building CXX object src/core/CMakeFiles/qgis_core.dir/providers/ogr/qgsgeopackagerasterwritertask.cpp.o
[  7%] Building CXX object src/core/CMakeFiles/qgis_core.dir/providers/ogr/qgsgeopackageprojectstorage.cpp.o
/home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/providers/ogr/qgsgeopackageprojectstorage.cpp: In function ‘bool _projectsTableExists(const QString&)’:
/home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/providers/ogr/qgsgeopackageprojectstorage.cpp:76:113: error: no match for ‘operator==’ (operand types are ‘QString’ and ‘char’)
         ok = QString::fromUtf8( reinterpret_cast< const char * >( sqlite3_column_text( statement.get(), 0 ) ) ) == '1';
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdatetime.h:43:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDateTime:1,
                 from /home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/qgsprojectstorage.h:22,
                 from /home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/providers/ogr/qgsgeopackageprojectstorage.h:20,
                 from /home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/providers/ogr/qgsgeopackageprojectstorage.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1173:13: note: candidate: bool QString::operator==(const char*) const <near match>
 inline bool QString::operator==(const char *s) const
             ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1173:13: note:   conversion of argument 1 would be ill-formed:
/home/tom/projects/InfraGIS/QGIS-server/debian-package/qigis-server/src/core/providers/ogr/qgsgeopackageprojectstorage.cpp:76:116: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
         ok = QString::fromUtf8( reinterpret_cast< const char * >( sqlite3_column_text( statement.get(), 0 ) ) ) == '1';
                                                                                                                    ^~~


Does anybody have an idea?
I am using the std GCC version 6.3

thanks for your input,
-- 
Tom Palan


More information about the QGIS-Developer mailing list