-
Notifications
You must be signed in to change notification settings - Fork 414
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
libOpenGL.so.0 not deployed when running with -bundle-non-qt-libs #486
Comments
See AppImageCommunity/pkg2appimage#477 |
There is nothing that |
@probonopd "Installing the package libopengl0 before running the tests solves the issue" was referred on my (already deployed) application tests, not on When running |
What in the AppDir is needing |
In our apps (meshlab and pymeshlab) almost all targets (binaries, libraries and plugins) need opengl.
and the output in 18.04 is
while in ubuntu 16.04 was
I tried the solution suggested by @hcorion, but it seems not to work.
|
Hmmm, setting that worked for my project, I'd be curious to see the output of lddtree on the binary, I wonder if Qt opengl is trying to include it as well |
Nope, it seems that it is linked directly.. e.g. this is lddtree run on libmeshlab-common, which is used both by meshlab and pymeshlab:
|
Small update: after making sure that the cmake config of meshlab had the CMP0072 set to old everywhere, in order to use legacy opengl, there was still something that was linking In the meantime, I am manually copying It would be great to know if |
We removed the manual addition in RPCS3 because it was causing issues with distros that already had a libOpenGL.so, it is unfortunately a distro-dependent library and will cause breakages. That's very strange that it just won't link against libGL. As a better solution, I would recommend doing what the PCSX2 AppImage is doing https://github.com/PCSX2/pcsx2/pull/4103/files#diff-dab8bc68effd20fe4cf10daad595a9f919536bec53e406549cc331aa38f27392R13-R15 |
Oh, ok.. Thanks @hcorion. I'll then revert that commit :D Your hack seems fine just for AppImages, though.. In my case, the appdir is also "transformed" in a python library (with python bindings), and I am not sure that it could be done.. Apparently also Qt6 is having similar issues with libopengl.so. I think that I'll end up with a warning to run |
That's probably for the best for now until the AppImage folks come up with a better solution 👍 |
I am struggling with this very same issue. I really do not like the solution of asking people to install In my case, I think the problem is that the Qt I am installing (from prebuilt binaries elsewhere) already links to |
Did you try setting |
Yes, sorry for the late reply but actually in the end I realized the issue was not coming from the prebuilt Qt binaries but from a CMake submodule I was linking against OpenGL, and I managed to fix it that way. Thanks a lot for the quick response also @hcorion ! |
Hi!
When switching from ubuntu 16.04 to 18.04 (with the last linuxdeployqt build), I noticed that libOpenGL.so.0 is not deployed and needs to be installed manually when running a deployed package. This was not necessary when deploying from 16.04. Is this intended?
This is an example workflow that builds and deploys the software, and then runs some tests in a clean machine: https://github.com/alemuntoni/PyMeshLab/runs/2490522243?check_suite_focus=true#step:4:66
As you can see, the deploy works as expected, but tests fail with the error:
Installing the package
libopengl0
before running the tests solves the issue (commit and workflow), but this was not necessary when deploying from 16.04.This is the deploy script that runs
linuxdeployqt
with the-bundle-non-qt-libs
parameter.The text was updated successfully, but these errors were encountered: