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 library for ios on macos with Qt 6.8.1 #186

Open
jptcarreira opened this issue Dec 7, 2024 · 0 comments
Open

Build library for ios on macos with Qt 6.8.1 #186

jptcarreira opened this issue Dec 7, 2024 · 0 comments

Comments

@jptcarreira
Copy link

Cmake failed to find component "Gui" from Qt6
This occurs trying to run cmake pointing CMAKE_PREFIX_PATH=~/Qt/6.8.1/ios

This easaly reproduced runing the cmake command
cmake ../../maplibre-native-qt -G "Ninja Multi-Config"
-DCMAKE_CONFIGURATION_TYPES="Release;Debug"
-DCMAKE_C_COMPILER_LAUNCHER="ccache"
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache"
-DCMAKE_DEFAULT_CONFIGS="all"
-DCMAKE_INSTALL_PREFIX="../install"
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
-DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_PREFIX_PATH=~/Qt/6.8.1/ios --debug-find-pkg=Qt6Gui

Platform information (please complete the following information):

  • OS: macos x86_64 build maplibreqt for iOS
  • Qt version Qt 6.8.1

The output log is:
CMake Debug Log at /Users/jcarreira/Qt/6.8.1/ios/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package):
/Users/jcarreira/Qt/6.8.1/ios/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake

Call Stack (most recent call first):
CMakeLists.txt:59 (find_package)

CMake Error at CMakeLists.txt:59 (find_package):
Found package configuration file:

/Users/jcarreira/Qt/6.8.1/ios/lib/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:

Failed to find required Qt component "Gui".

Expected Config file at
"/Users/jcarreira/Qt/6.8.1/ios/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake" exists

Configuring with --debug-find-pkg=Qt6Gui might reveal details why the
package was not found.

@jptcarreira jptcarreira changed the title Build ios with Qty 6.8.1 Build library for ios on macos with Qt 6.8.1 Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant