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

Cannot compile with Qt6.5.0-beta2 #22

Closed
kebekus opened this issue Feb 14, 2023 · 8 comments
Closed

Cannot compile with Qt6.5.0-beta2 #22

kebekus opened this issue Feb 14, 2023 · 8 comments

Comments

@kebekus
Copy link

kebekus commented Feb 14, 2023

Describe the bug

The title says it: any attempt of mine to compile with Qt6.5.0-beta2 ends with an error message. Any help is greatly appreciated!

To Reproduce
Steps to reproduce the behavior:

  1. Git clone v2.0.2 or main
  2. Run qt-configure-module

Expected behavior
The module gets configured and can be built.

Screenshots

[kebekus@uni-office qt-geoservices-maplibre-gl]$ ~/Software/buildsystems/Qt/6.5.0/gcc_64/bin/qt-configure-module .
'/mnt/storage/buildsystems/Qt/6.5.0/gcc_64/bin/../libexec/qt-cmake-private' '.'
-- The CXX compiler identification is GNU 12.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
CMake Error at /mnt/storage/buildsystems/Qt/6.5.0/gcc_64/lib/cmake/Qt6/QtPluginHelpers.cmake:216 (get_target_property):
  get_target_property() called with non-existent target
  "Qt6::QGeoServiceProviderFactoryMapLibreGLPlugin".
Call Stack (most recent call first):
  CMakeLists.txt:38 (qt_internal_add_plugin)


-- Configuring incomplete, errors occurred!
See also "/home/kebekus/XX/qt-geoservices-maplibre-gl/CMakeFiles/CMakeOutput.log".
CMake Error at /mnt/storage/buildsystems/Qt/6.5.0/gcc_64/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:987 (message):
  CMake exited with code 1.

Platform information (please complete the following information):

  • OS: Fedora37
  • Qt version 6.5.0-beta2, downloaded with Qt installer
@ntadej
Copy link
Collaborator

ntadej commented Feb 14, 2023

Qt 6.5 is not supported yet. Big changes were made to the plugin system which will require more work. If you can, I'd recommend you to stay with Qt 6.4 for now.

@kebekus
Copy link
Author

kebekus commented Feb 14, 2023

Understood. Thank you for your prompt reply!

@kebekus
Copy link
Author

kebekus commented Feb 14, 2023

May I suggest adding a descriptive error message when trying to compile with Qt6.5? That said, I appreciated your fantastic efforts here!

@emericg
Copy link

emericg commented Oct 4, 2023

I'm still hitting the same get_target_property() called with non-existent target issue when building with the latest commit for Qt 6.5. It is mentioned on the initial pull request #26 that there is a 'fix' available, or something to hard-code to get it working, but I am not fluent enough in CMake to understand it...

Would it be possible to get a bit more info on that issue?
I'm really looking forward to the maplibre-native-qt working with Qt6.5+!

@ntadej
Copy link
Collaborator

ntadej commented Oct 4, 2023

I will open another PR by the end of the week that will have Qt 6.5 fully working (without the parameters at this point). Note that it will not build on mobiles in the first iteration.

@emericg
Copy link

emericg commented Oct 4, 2023

That's awesome, desktop support would be great to start testing. Thanks for the quick reply!

@ntadej
Copy link
Collaborator

ntadej commented Oct 14, 2023

This issue should be fixed. Please test with the latest main. Qt 6.6 support is also coming in #47.

@ntadej ntadej closed this as completed Oct 14, 2023
@kebekus
Copy link
Author

kebekus commented Oct 16, 2023

I confirm that this issue is solved now. Thanks for your fantastic work!

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

3 participants