[QGIS-Developer] Trouble compiling QGIS

Andreas Neumann a.neumann at carto.net
Fri Sep 3 06:30:01 PDT 2021


Hi,

I have troubles compiling QGIS on my Linux Ubuntu 20.04 machine.

I use a self-compiled GEOS and GDAL.

The build always hangs at "crssync" - here is the ninja build output I 
get. Do you have any idea what might be wrong or what I could do in 
order to fix this problem?

Thank you for your hints,

Andreas

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

[0/1] Re-running CMake...
-- QGIS version: 3.21.0 Master (32100)
-- Found OpenCL C++ headers: /usr/include
-- ccache found
-- Found Proj: /usr/local/lib/libproj.so version 8 (8.1.0)
-- Found GEOS: /usr/local/lib/libgeos_c.so (3.9.1)
-- Found GDAL: /usr/local/lib/libgdal.so (3.3.1)
-- Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so
-- Found Spatialindex: /usr/lib/x86_64-linux-gnu/libspatialindex.so
-- Found Qwt: /usr/lib/libqwt-qt5.so (6.1.4)
-- Found libzip: /usr/lib/x86_64-linux-gnu/libzip.so
-- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread
-- Found zlib: /usr/lib/x86_64-linux-gnu/libz.so
-- Found exiv2: /usr/lib/x86_64-linux-gnu/libexiv2.so
-- Found PostgreSQL: /usr/local/pgsql/lib/libpq.so
-- Found SpatiaLite: /usr/local/lib/libspatialite.so
-- Qt WebKit support enabled
-- Found ZSTD: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found laz-perf: /usr/local/include
-- Found PDAL: 
/usr/local/lib/libpdalcpp.so;/usr/local/lib/libpdal_util.so (2.0.1)
-- Found Qt version: 5.12.8
-- Found QScintilla2: /usr/lib/libqscintilla2_qt5.so (2.11.2)
-- Found QtKeychain: /usr/lib/x86_64-linux-gnu/libqt5keychain.so
-- Found QCA: /usr/lib/x86_64-linux-gnu/libqca-qt5.so (2.2.1)
-- Found QCA OpenSSL plugin
-- Pedantic compiler settings enabled
-- Found GSL: -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm
-- Found Python executable: /usr/bin/python3.8 (version 3.8.10)
-- Python library: /usr/lib/x86_64-linux-gnu/libpython3.8.so
-- Python site-packages: /usr/lib/python3/dist-packages
-- Found PyQt5 version: 5.14.1
-- Found SIP version: 4.19.21
-- Found QScintilla2 PyQt module: 2.11.2
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) 
(found version "")
-- Could NOT find NetCDF (missing: NETCDF_LIBRARY NETCDF_INCLUDE_DIR)
-- Using PROJ >= 6 srs database.
-- Ctest Binary Directory set to: 
/home/bjsvwneu/dev/QGIS/build/output/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bjsvwneu/dev/QGIS/build
[1/6072] Generating qgsversion.h, qgsversion.inc
Files "/home/bjsvwneu/dev/QGIS/build/qgsversion.h.temp" to 
"/home/bjsvwneu/dev/QGIS/build/qgsversion.h" are different.
[3/6072] Generating qgsexpression_texts.cpp
Files 
"/home/bjsvwneu/dev/QGIS/build/src/core/qgsexpression_texts.cpp.temp" to 
"/home/bjsvwneu/dev/QGIS/build/src/core/qgsexpression_texts.cpp" are 
different.
[2905/6072] Generating gui/sip_guipart0.cpp, gui/sip_guipart1.cpp, 
gui/sip_guipart2.cpp, gui/sip_guipart3.cpp, gui/sip_guipart4.cpp, 
g...i/sip_guipart10.cpp, gui/sip_guipart11.cpp, gui/sip_guipart12.cpp, 
gui/sip_guipart13.cpp, gui/sip_guipart14.cpp, gui/sip_guipart15.cpp

[4061/6072] Building CXX object 
src/providers/mdal/CMakeFiles/provider_mdal.dir/__/__/__/external/mdal/mdal_utils.cpp.o
../external/mdal/mdal_utils.cpp: In function 'int MDAL::toInt(size_t)':
../external/mdal/mdal_utils.cpp:143:14: warning: comparison of integer 
expressions of different signedness: 'const size_t' {aka 'const long 
unsigned int'} and 'int' [-Wsign-compare]
  143 |   if ( value > std::numeric_limits<int>::max() )
      |        ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4172/6072] Running crssync
FAILED: src/crssync/CMakeFiles/synccrsdb
cd /home/bjsvwneu/dev/QGIS/build/src/crssync && 
/home/bjsvwneu/dev/QGIS/build/output/bin/crssync
free(): invalid pointer
Aborted (core dumped)
[4173/6072] Building CXX object 
src/plugins/topology/CMakeFiles/topolplugin.dir/topolplugin_autogen/mocs_compilation.cpp.o
ninja: build stopped: subcommand failed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210903/a39430ac/attachment.html>


More information about the QGIS-Developer mailing list