[Qgis-user] Problem insatalling from source

Raivo Rebane raivo at r-systems.ee
Wed Nov 29 02:59:37 PST 2023


Hi,

I want to install QGIS package from source, but got foolowing errors :

CMake Error at cmake/FindSpatiaLite.cmake:20 (add_library):
   add_library cannot create ALIAS target "spatialite::spatialite" because
   target "PkgConfig::PC_SPATIALITE" is imported but not globally visible.
Call Stack (most recent call first):
   CMakeLists.txt:405 (find_package)


-- Qt WebKit support enabled
-- Using embedded laz-perf
-- Found ZSTD: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found PDAL: pdal_base;pdal_util (2.2.0)
-- Found Draco: /usr/local/lib/libdraco.a (1.5.6)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 
(find_package):
   Could not find a package configuration file provided by "Qt5SerialPort"
   with any of the following names:

     Qt5SerialPortConfig.cmake
     qt5serialport-config.cmake

   Add the installation prefix of "Qt5SerialPort" to CMAKE_PREFIX_PATH 
or set
   "Qt5SerialPort_DIR" to a directory containing one of the above files.  If
   "Qt5SerialPort" provides a separate development package or SDK, be 
sure it
   has been installed.

I tried different way of cmake :

raivo at Hydra:~/QGIS/build-master$ cmake 
-DSPATIALITE_LIBRARY=/usr/lib/x86_64-linux-gnu/libspatialite.so 
-DSPATIALITE_INCLUDE_DIR=/usr/include/ ..
and

raivo at Hydra:~/QGIS/build-master$ cmake 
-DSPATIALITE_LIBRARY=/usr/lib/x86_64-linux-gnu/libspatialite.so 
-DSPATIALITE_INCLUDE_DIR=/usr/include/ 
-DPC_SPATIALITE=/usr/lib/x86_64-linux-gnu/pkgconfig/spatialite.pc ..

but in any cases got previous errors.

What is wrong ?

Regards,

Raivo




More information about the QGIS-User mailing list