-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
<qt>/<6.4.2>: qt_generate_deploy_qml_app_script generates an unusable deploy script when Qt provided by Conan #17977
Comments
Can you please try with #17925 |
this is a duplicate of #17743 I think |
I will try after work today hopefully |
I'm not 100% sure how to specify a branch name for a dependency. How do I get a version of Qt from a PR branch? My current conanfile.py gets Qt like this:
|
You need to checkout the PR on your local clone of this repositoy and then export the recipe like this:
|
Thanks for the help getting me going with your branch. For me, the original problem is fixed. The deploy script gets generated and my install makes it pretty far. The Qt DLL dependencies are installed, but then I hit this new error:
|
I have exactly the same error on MacOS as explained here: #17925 (comment) I dig into Qt core without understanding when this file should be generated. |
Is a CMake version older than 3.19 used here? |
I am using 3.23+ in all my testing
…On Thu, Jun 29, 2023, 6:40 AM Jörg Bornemann ***@***.***> wrote:
Is a CMake version older than 3.19 used here?
—
Reply to this email directly, view it on GitHub
<#17977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPA2523OC7K7LGSOKISHWLXNVST7ANCNFSM6AAAAAAZMULREM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The underlying issue seems to have been found: #17925 (comment) |
Unfortunately not yet. I stopped working on this and wrote a simple recipe that use Qt official binaries. |
I haven't even looked at it lately, either. My day job has me quite busy
right now and using Conan with my Qt hobby project has taken a back seat.
It is still an open issue I believe.
…On Tue, Jul 11, 2023 at 9:12 AM Martin Delille ***@***.***> wrote:
Unfortunately not yet. I stopped working on this and wrote a simple recipe
that use Qt official binaries.
—
Reply to this email directly, view it on GitHub
<#17977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPA257SQWRGAIS5JMSQQ33XPVNLDANCNFSM6AAAAAAZMULREM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Can you make that recipe available? Asking for a friend... ;) |
Yes here it is: https://github.com/MartinDelille/qt-conan Feel free to contribute if you have an idea how to improve it! |
Thanks, looks simple indeed. :) Will look into it... |
Description
When Qt is brought in as a dependency via Conan the qt_generate_deploy_qml_app_script CMake function does not behave properly. This was initially raised as a bug with Qt but it became clear that the Conan recipe is the source of the issue. I can confirm that when I install Qt manually with the maintenance tool and point my project to that instance of Qt the problem goes away.
There is quite a bit of detail both here [1] and here [2].
[1] https://bugreports.qt.io/browse/QTBUG-113769
[2] https://forum.qt.io/topic/144883/qt_generate_deploy_qml_app_script-generates-script-with-empty-include
The pertinent information from the initial analysis by Qt is this quote:
It appears that the generated CMake files that create the Qt targets include Qt's macro files:
That's nothing Qt has influence over. Please report this to the maintainer of the conan Qt package. They either need to include the extras file or set the QT6_IS_SHARED_LIBS_BUILD variable in the Qt CMake package files that are generated.
Note that QT6_IS_SHARED_LIBS_BUILD also influences the behavior of qt_add_library and qt_add_plugin.
Package and Environment Details
qt/6.4.2
windows
MSVC (visual studio 2019)
conan 1.58.0
Python 3.9.0
Conan profile
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
build_type=Release
[options]
[build_requires]
[env]
Steps to reproduce
Requirement: have MSVC installed (I use 2019 but other recent versions should work, too). MSVC should be the default profile. If not specify the MSVC profile.
You should get an error at the end that looks like this:
because the deploy script is basically empty due to this bug.
Logs
Here's a link to the cmake trace from QTBUG-113769:
https://bugreports.qt.io/secure/attachment/141742/cmake.trace
The text was updated successfully, but these errors were encountered: