maplibre / maplibre-native-qt

MapLibre Native Qt Bindings and Qt Location Plugin
https://maplibre.org/maplibre-native-qt/docs/
38 stars 14 forks source link

Build for Debian 12 (Qt 5.15.8) #76

Open petricf opened 9 months ago

petricf commented 9 months ago

Describe the bug Want to build this package for Debian 12 - currently Qt 5.15.8 Installed qtcreator, presumably all required qt-dev packages and qtbase5-private-dev from Debian repository

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/maplibre/maplibre-native-qt.git
  2. cd maplibre-native-qt && git submodule update --init --recursive
  3. mkdir ~/maplibre-build && cd ~/maplibre-build
  4. cmake ../maplibre-native-qt -GNinja

Output:

-- Version 3.0.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using Qt5
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring GL-Native with OpenGL renderer backend
-- Configuring MapLibre Native with Qt platform
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found the following ICU libraries:
--   uc (required): /usr/lib/x86_64-linux-gnu/libicuuc.so
-- Found ICU: /usr/include (found version "72.1") 
-- Building location module
-- Building widgets module
-- Configuring done
CMake Error at src/location/CMakeLists.txt:51 (target_link_libraries):
  Target "Location" links to:

    Qt5::LocationPrivate

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
...
-- Generating done`
CMake Generate step failed.  Build files cannot be regenerated correctly.`

The error above was also reported for src/location/plugins/CMakeLists.txt:32 src/location/plugins/CMakeLists.txt:95

Expected behavior Build files created

Platform information (please complete the following information):

Additional context Intel x64 platform

Maybe i was missing a deb package to install. But which one ?

ntadej commented 9 months ago

I was researching the other day and it seems that qtlocation5-private-dev is not built for Debian for some reason. At least it's also not available on Ubuntu. Not sure how to solve the issue in a simple way.

petricf commented 9 months ago

If there are only headers in this package - could manually be copied from qt-source to the destination ?

In this case the question is what files are required.