-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fatal: Could not initialize GLX #301
Comments
Thanks for analyzing this @AlbrechtL. Searching the web for |
Here you go strace.log Tons of
|
Indeed Are you getting the error Is there any Qt plugin with "glx" in its name that gets deployed into a subdirectory of your AppDir (which we could use as a trigger to also deploy |
Yes.
I don't know what you mean. My feeling from the other warnings is that some Qt plugins are missing. Inside my local Qt6 installation I found the following plugins:
|
I am looking for something that gets deployed into your AppDir which we could use as an indication that we also need to deploy For this it would be helpful if you could run
after having run Also, what happens if you export |
Here, go-appimage/src/appimagetool/appdirtool.go Lines 1331 to 1343 in 70b3d60
But apparently this does not trigger |
Regarding grep
Full AppImage generation log including the Regarding
Regarding
|
Most likely unrelated, but |
The reason why |
I didn't hard code this library. I just link it dynamically like all other shared libraries. Maybe inside the SoapySDR shared library there are some hard coded absolute paths.
Nothing found. |
What happens if you manually copy |
The app startes a little bit further but crashes again. It seems that more libraries are missing. Key error messages
Full log:
|
What can of worms did we open here ;-/ Where are the missing libraries located on your build/host system? |
Both build and host systems is Ubuntu. The libraries are located here e.g. |
Any new here? How can I help to find the issue? |
Uh, these files seem to be specific to the GPU, which probably means that we'd have to bundle all of |
Copy some additional libs to AppImage. See probonopd/go-appimage#301 for details
Pretty much the same picture (see below). Commit to copy the libraries: AlbrechtL/welle.io@6f57d28
and with
|
Are you running |
Yes, see:
|
@AlbrechtL does the AppImage there work for you? |
I just did a short smoke test, basic functions are there, but still a few libs are missing. But I think this can be fixed easily in @Samueru-sama shell script (AppImage/AppImageSpec#36 (comment)). But the AppImage is huge 151 MB the working older once was ~60 MB.
As far as I can see, the key factor to get it working is the usage of https://github.com/VHSgunzo/sharun. |
...and possibly the use of |
There isn't much that can be done, the size is similar to my OBS Studio appimage, which is also a Qt application with all the libs including the gpu libs included, also I had to copy the entire You can try to build on alpine, since I normally use Artix linux instead for my appimages. EDIT: Also statically link some dependencies if possible, for example stuff like ffmpeg reduces the size of the appimage a lot if it is statically linked instead of copying all the ffmpeg libs. EDIT2: Btw on my script I noticed something that could be improved, this part:
change it to |
I'm building the welle.io AppImage via GitHub Actions (see: https://github.com/AlbrechtL/welle.io/blob/master/.github/workflows/linux.yml). Yesterday I heard the first time from What would be the recommended steps to get a working AppImage? |
sharun is very flexible, you just give the path to the binaries you want to bundle using the However note that in order to get the GL libs you have to simulate some display since those are dlopened and won't be picked up by ldd or similar means, run the lib4bin script with the If you can't do that then it would be doing a local run on ubuntu to see what libs end up being bundle and then on the deploy script the missing libs get added manually (likely be to tedious) and |
I'm trying to port my project https://github.com/AlbrechtL/welle.io/ to go-appimage with Qt6. It seems that some libraries or modules inside the AppImage are missing.
welle.io AppImage output (the warnings and fatal messages shouldn't be there)
Inside the AppImage build logs 10_Create AppImage.txt I found the following messages that may be related.
This is the successor issue of #300.
I'm using the following GitHub Actions workflow: https://github.com/AlbrechtL/welle.io/blob/0999d28f88f88587c21364dd2bf4942318ae91c2/.github/workflows/linux.yml
The text was updated successfully, but these errors were encountered: