Skip to content
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

nixGL doesn't work on static binaries generated by nix-bundle #25

Open
georgewsinger opened this issue Mar 8, 2020 · 1 comment
Open
Labels
quality of life Not functional change which will improve the quality of life.

Comments

@georgewsinger
Copy link

nix-bundle converts nix expressions into static binaries. I've ran some tests, and these static binaries don't seem to mess with environment variables like LD_LIBRARY_PATH. Nevertheless, I am unable to use nixGL to run these static binaries. For example with godot (game engine) I get:

$ nixVulkanNvidia ./godot_static_binary
Godot Engine v3.2.beta.custom_build.b41b66ddf - https://godotengine.org
ERROR: initialize: Condition ' !fbc ' is true. returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:158.
ERROR: is_viable: Error initializing GLAD
   At: drivers/gles3/rasterizer_gles3.cpp:141.
Your video card driver does not support any of the supported OpenGL versions.
Please update your drivers or if you have a very old or integrated GPU upgrade it.

and with glxgears I get:

$ nixGLNvidia ./glxgears_static_binary
Error: couldn't get an RGB, Double-buffered visual

which for reference was generated by

nix-bundle.nix-bootstrap {
  target = glxinfo;
  run = "/bin/glxgears";
  nixUserChrootFlags = "";
  # I've also tried:
  # nixUserChrootFlags = "-p LD_LIBRARY_PATH";
}
@guibou
Copy link
Collaborator

guibou commented Mar 8, 2020

I opened an issue regarding nix-bundle and OpenGL a while ago: nix-community/nix-bundle#23

I don't think that nixGL should be used this way. I mean, the point of nix-bundle is to build something which is independant of the system and which works on a system on which nix is not installed (else, there is no point doing the bundle).

So packaging nixGL outside of the bundle does not feel useful. However packaging it inside the bundle is wrong too, because the bundle will then become dependent of the selected OpenGL driver.

@guibou guibou added the quality of life Not functional change which will improve the quality of life. label May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality of life Not functional change which will improve the quality of life.
Projects
None yet
Development

No branches or pull requests

2 participants