-
Notifications
You must be signed in to change notification settings - Fork 20
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
Does this solve the issues with OpenGL? #5
Comments
I gave this a try today. When I try to run the generated image on NixOS I get an error:
|
Hi, the Regarding OpenGL, this doesn't do anything special to make those apps work on non-NixOS. So you'll still need to use e.g. nixGL. I don't currently have plans to address the issue with this project, since I feel it's a bit out of scope. |
Hi @ralismark: sorry for the late reply but I think it is sadly it should be within the scope of the project, as it is not possible to use |
If your application links against libgl.so dynamically with Some context first: Nix's glibc is patched in a way that it will not load its config from Fortunately, there's a simple workaround: a wrapper script that sets An example for such a wrapper could look like this: appImageLibDirs = [
# Nix system paths
"${pkgs.glibc}/lib"
"${pkgs.stdenv.cc.libc.libgcc.libgcc}/lib"
# Distro library paths
"/usr/lib/${system}-gnu" # Debian, Ubuntu
"/usr/lib" # Arch, Alpine
"/usr/lib64" # Fedora
];
appImageWrapper = pkgs.writeShellScriptBin "myapp-appimage" ''
export LD_LIBRARY_PATH=${lib.concatStringsSep ":" appImageLibDirs}
${lib.getExe myapp} "$@"
''; As you can see, this currently simply hard-codes the library paths for some common distros. Optimally we'd either:
Maybe there is a way to tell ld.so to load a second config from a path without patching, but I'm not aware of it. |
for the record, the main issue discussing this problem is alas it seems kinda stalled, and i don't really have the time to contribute to working on that |
This looks very promising. Have been looking for ages for a solution to generate working for generating appimage applications for OpenGL applications.
nix-bundle
has issues with it all attempts to find a workaround (documented in that thread and related PRs) have failed for me.This project, due to it's ability to not bring glibc, looks promising. However since it doesn't include a desktop file, maybe it is not intended to fix the OpenGL issue? Is this supported or part of the road-map?
The text was updated successfully, but these errors were encountered: