Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for Debian 12 (Qt 5.15.8) #76

Open
petricf opened this issue Dec 13, 2023 · 2 comments
Open

Build for Debian 12 (Qt 5.15.8) #76

petricf opened this issue Dec 13, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request platform: Linux Linux platform issues
Milestone

Comments

@petricf
Copy link

petricf commented Dec 13, 2023

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):

  • OS: Debian 12.4
  • Qt version 5.15.8
  • gcc 12.2.0
  • Version from git

Additional context
Intel x64 platform

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

@ntadej
Copy link
Collaborator

ntadej commented Dec 13, 2023

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
Copy link
Author

petricf commented Dec 13, 2023

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.

@ntadej ntadej added this to the 3.0 milestone Apr 18, 2024
@ntadej ntadej added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 18, 2024
@ntadej ntadej modified the milestones: 3.0, Future Aug 16, 2024
@ntadej ntadej added the platform: Linux Linux platform issues label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request platform: Linux Linux platform issues
Projects
None yet
Development

No branches or pull requests

2 participants