Closed GlennWSo closed 1 year ago
update:
when trying check my drivers that X uses with glxinfo i got GLIBC not found as error info: i will investigate this further and share my findings.
glxinfo | grep -i vendor glxinfo: /nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version
GLIBC_ABI_DT_RELR' not found (required by /nix/store/yaz7pyf0ah88g2v505l38n0f3wg2vzdj-glibc-2.37-8/lib/libpthread.so.0) glxinfo: /nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version
GLIBC_2.36' not found (required by /nix/store/0d4xl0xk1g0w41yqyd64jvzbip5lhfig-libXdmcp-1.1.3/lib/libXdmcp.so.6)
i can now run glxinfo with no problems:
❯ glxinfo | grep -i "vendor|rendering" direct rendering: Yes server glx vendor string: NVIDIA Corporation client glx vendor string: NVIDIA Corporation OpenGL vendor string: NVIDIA Corporation GL_NV_parameter_buffer_object2, GL_NV_path_rendering, GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range, GL_NV_stereo_view_rendering, GL_NV_texgen_reflection, GL_NV_parameter_buffer_object2, GL_NV_path_rendering, GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range, GL_NV_stereo_view_rendering, GL_NV_texgen_reflection, GL_NV_path_rendering, GL_NV_path_rendering_shared_edge, GL_NV_shadow_samplers_cube, GL_NV_stereo_view_rendering,
my old update now irrelevent:
update:
when trying check my drivers that X uses with glxinfo i got GLIBC not found as error info: i will investigate this further and share my findings.
glxinfo | grep -i vendor glxinfo: /nix/store/vnwdak3n1w2jjil119j65k8mw1z23p84-glibc-2.35-224/lib/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by ...
To show the environment that fail to run the examples i have created a pull request (draft) #364
I suspect that culprit is that nixos dont put the x11 stuff where Glutin expects them, as nixos generally dont allow implicit dependencies.
I have found a solution. Its in pull request #365 Thanks to Alexandru Scvorțov and his blogpost about the intersection of graphics/rust/nixos
Hi. Sorry for the late reply.
Great that you found a solution 👍 I probably wouldn't be able to help anyway. And I appreciate the PR, but I'm not going to merge it. The purpose of three-d
is rendering, not providing a render context, so I assume that people have OpenGL capabilities, drivers installed etc. Otherwise, i would use way too much time on these kind of issues. Also, I have no chance of maintaining the flake.nix
file. Instead, maybe glutin
is interested in this addition?
Hi
I tried to run the example triangle and the first result.unwrap() panics! I would like help to understand the error msg:
info about my env:
cargo v0.16.0
rustc v1.69.0
hardware and drivers: