[QGIS-Developer] Master build error

Stephen Knox stephenknox73 at gmail.com
Fri Dec 27 01:18:57 PST 2019


Yes I got that yesterday and fixed it by changing 3 lines in that test to
compare std::str with std::str instead of std::str with QString.

It's only with proj 6 - I might submit a pr unless someone else does before
me.

Stephen

On Fri, 27 Dec 2019, 08:58 Alexander Bruy, <alexander.bruy at gmail.com> wrote:

> Hi,
>
> when building latest master I got following errors
>
> CMakeFiles/qgis_gdalutilstest.dir/testqgsgdalutils.cpp.o: in function
> «TestQgsGdalUtils::testCreateSingleBandMemoryDataset()»:
> qgis/tests/src/core/testqgsgdalutils.cpp:109: undefined reference
> «bool QTest::qCompare<char const*, QString>(char const* const&,
> QString const&, char const*, char const*, char const*, int)»
> CMakeFiles/qgis_gdalutilstest.dir/testqgsgdalutils.cpp.o: in function
> «TestQgsGdalUtils::testCreateMultiBandMemoryDataset()»:
> qgis/tests/src/core/testqgsgdalutils.cpp:131: undefined reference
> «bool QTest::qCompare<char const*, QString>(char const* const&,
> QString const&, char const*, char const*, char const*, int)»
> CMakeFiles/qgis_gdalutilstest.dir/testqgsgdalutils.cpp.o: in function
> «TestQgsGdalUtils::testCreateSingleBandTiffDataset()»:
> qgis/tests/src/core/testqgsgdalutils.cpp:160: undefined reference
> «bool QTest::qCompare<char const*, QString>(char const* const&,
> QString const&, char const*, char const*, char const*, int)»
> collect2: error: ld returned 1 exit status
> tests/src/core/CMakeFiles/qgis_gdalutilstest.dir/build.make:135:
> recipe for target 'output/bin/qgis_gdalutilstest' failed
> make[2]: *** [output/bin/qgis_gdalutilstest] Error 1
> CMakeFiles/Makefile2:12960: recipe for target
> 'tests/src/core/CMakeFiles/qgis_gdalutilstest.dir/all' failed
> make[1]: *** [tests/src/core/CMakeFiles/qgis_gdalutilstest.dir/all] Error 2
>
> As I understand QCOMPARE is very strict to data types and output from
> GDALGetProjectionRef( ds1.get() ) needs to be converted to QString
> before
> check.
>
> I'm on Ubuntu 18.04, GCC 7.4.0, Qt 5.9.5.
>
> Anyone confirms?
>
> --
> Alexander Bruy
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191227/7368dd69/attachment.html>


More information about the QGIS-Developer mailing list