[QGIS-Developer] Trouble compiling QGIS

Even Rouault even.rouault at spatialys.com
Fri Sep 3 06:42:18 PDT 2021


Andreas

Several things to check:

- Is your GDAL build a clean one ? That is is it from a fresh build 
directory, or are you rebuilding in a directory where a previous build 
was done. If the later, make sure to "make clean" before rebuilding

- Is your GDAL build using your custom GEOS one ? Otherwise QGIS might 
link directly to the custom one and indirectly to the system one through 
GDAL. Check the output of "ldd output/bin/qgis | grep geos"

- try "valgrind output/bin/crssync". Emitted stack traces can give 
interesting hints

Even

Le 03/09/2021 à 15:30, Andreas Neumann a écrit :
>
> 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.
>
>
> _______________________________________________
> 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

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210903/62ed7326/attachment.html>


More information about the QGIS-Developer mailing list