-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
qt5: Output of macdeployqt not working after update to 5.15.10_1 #140930
Comments
|
Well, I'm not convinced that the issue is coming from Qt itself. The Qt sources download link in But I don't understand what commit 9b99c9a actually did. I don't know what checksums these are and what the removed |
I believe this is a side effect of RPATH modifications (enabled for all formulae since 83ef417). I tried your reproduction and see ❯ otool -L ./test.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui | rg 'QtGui|@loader_path'
./test.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui:
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.15.0, current version 5.15.10)
@loader_path/../../../QtCore.framework/Versions/5/QtCore (compatibility version 5.15.0, current version 5.15.10)
@loader_path/../../../../../../../opt/libpng/lib/libpng16.16.dylib (compatibility version 57.0.0, current version 57.0.0) Haven't checked if there is a workaround. Bit curious if this also impacts CMake's CC @carlocab who may be more familiar with state of RPATH rewrites in brew. EDIT:
You need to look at previous commit(s) (e.g. c64da2d) as the linked commit is just distribution of new binaries. The change was to fix bundled Chromium's FFmpeg build with |
Ahh, that sounds plausible!
I'm not familiar with
Correct, I don't use QtWebEngine. But I use QML 🙂 Just to confirm, there's no way to get the old (working) Qt5 binaries installed with brew (in an automated, headless way), right? The CI of LibrePCB is currently broken due to this issue and I have no idea yet how to get it running again. As the issue seems to be non-trivial, I suspect it could take quite some time until there's a solution for it. |
Not easily. Don't know if there is a workaround via API mode but some users occasionally use Git/Tap mode ( Homebrew could try a rebottle of Responding to my own comment
I think this broke
|
I think I see an error also related this with cmake/cpack (run using GitHub Actions):
Unfortunately, I could not find a workaround (hluk/CopyQ#2450). |
I can confirm the problem. Since 28th the requested depedencies of some of the qt libs in the app bundle are just plain missing in the app bundle (libpng etc). |
I've also been dealing with build issues due to recent changes in When it deploys stuff to
|
Rebottled It may take some extra time for these to be available via API. Once available, you can try updating and reinstalling locally, e.g. Let us know if any other issues for Note this may not fix usage with other Qt5 modules, Qt6 usage, or CMake usage that links to formulae that are still using modified RPATHs. Each formula will need to be rebottled individually. |
Awesome, thank you very much! 👍 So far, everything looks good for me. The LibrePCB CI is now successful again and the resulting *.dmg seems to run as expected.
Hm I'm not sure if I understand correctly, somehow it sounds like the solution is not really generic and may still lead to troubles. But for example the library |
Going to close this as resolved for main issue ( Qt6 is still impacted so can try to rebottle |
Thanks for the fix. 🙏 Unfortunately, I still have a problem when using cpack (https://github.com/hluk/CopyQ/actions/runs/6039477239/job/16449187277) - now it complains about a different library (libsharpyuv - not sure where it comes from):
|
Ah I now quickly compared the contents of an older LibrePCB bundle with the current one and I can confirm that two libraries are no longer contained in the bundle:
But I don't know if they should be contained in the bundle. At least in my case I didn't experience any runtime issue with the bundle. |
I managed to bundle my app using |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I want to build an application with Qt, create a bundle with
macdeployqt
and run the bundled application. See exact steps below.Note that this worked fine until Qt 5.15.10, but it stopped working with Qt5.15.10_1 which was released 2 days ago. For verification, I run the steps below on a system which still had Qt 5.15.10 installed, and it worked fine. Then I updated Qt, tried it again and the error occurs.
This issue breaks CI of LibrePCB. CI worked fine 2 days ago (logs). Since yesterday, it fails with the mentioned error (logs). I saw that commit 9b99c9a was added just in between these two CI runs so it might be related to this problem.
I guess
macdeployqt
does not work properly (it now runs much faster than normal) but I don't know if the problem is located withinmacdeployqt
or somewhere else.What happened (include all command output)?
After building a Qt application bundle (see steps below), the application doesn't work but just prints this error to the console:
What did you expect to happen?
The application bundle should start and a graphical message box must appear.
Step-by-step reproduction instructions (by running
brew
commands)# CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(test LANGUAGES CXX) find_package(Qt5 COMPONENTS Gui Widgets REQUIRED) add_executable(test MACOSX_BUNDLE main.cpp) target_link_libraries(test PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets)
The text was updated successfully, but these errors were encountered: