-
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
[package] qt/5.15.2: Plugins not deployed on MacOS #5487
Comments
Maybe @ericLemanissier and @Minimonium (after reading #5129) might help on this issue ? |
I dig into macdeployqt source code and don't understand how it can resolve the |
It uses the |
Yes I checked and I have the following [Paths]
Prefix = ..
ArchData = bin/archdatadir
HostData = bin/archdatadir
Data = bin/datadir
Sysconf = bin/sysconfdir
LibraryExecutables = bin/archdatadir/bin
Plugins = bin/archdatadir/plugins
Imports = bin/archdatadir/imports
Qml2Imports = bin/archdatadir/qml
Translations = bin/datadir/translations
Documentation = bin/datadir/doc
Examples = bin/datadir/examples |
Shouldn't |
Ah, I see the issue now. The |
Yes. Should we move the plugins folder to the package root ? |
Here: deploymentInfo.qtPath = QLibraryInfo::location(QLibraryInfo::PrefixPath); And here is the bug: deploymentInfo.pluginPath = deploymentInfo.qtPath + "/plugins"; It should be deploymentInfo.pluginPath = QLibraryInfo::location(QLibraryInfo::PluginsPath); Or something like that. It's rather unfortunate that Qt doesn't do tests. I'm not sure what was the motivation regarding the subdirectory, probably related to the CCI's convention about top-level directories. Could be either that or patching Qt to do support its own config file. |
Yes I agree. I will submit the patch for the conan recipe and try to submit it to the upstream repo too. Thanks for your help! |
The patch works locally! 🎉 |
Please link the PR 🙏 |
* Patch macdeployqt fix #5487 * Update recipes/qt/5.x.x/patches/fix-macdeployqt.diff Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * QLibraryInfo::path => location Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
* Patch macdeployqt fix conan-io#5487 * Update recipes/qt/5.x.x/patches/fix-macdeployqt.diff Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com> * QLibraryInfo::path => location Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
I’m trying to use the conan version of Qt with the following
conanfile.txt
:When create a bundle application it crash on startup. I realized it was due to the missing plugins as you can see on this terminal output:
The problem seems to come from the plugins folder location in the package subfolder (bin/archdatadir ).
The conan recipe offer the possibility to generate a qt.conf file containing information that should help my build chain to work properly:
For example, if I copy this file in the
test.app/Contents/Resources
folder, it works.I also manage to make it work by manually moving the plugins folder from the
bin/archdatadir
package subfolder to the package folder (/Users/martin/.conan/data/qt/5.15.2///package/0af6aa42f3ece12447af62252e18e9680ffa1200).What is the clean way to handle this issue ?
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
mkdir build && cd build
conan install ..
source activate_run.sh
qmake ../test.pro
make
macdeployqt test.app -verbose=2
Logs (Include/Attach if Applicable)
Click to expand log
The text was updated successfully, but these errors were encountered: