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

Can't use Racket's OpenGL FFI #52990

Closed
TrevtheForthDev opened this issue Dec 27, 2018 · 2 comments
Closed

Can't use Racket's OpenGL FFI #52990

TrevtheForthDev opened this issue Dec 27, 2018 · 2 comments

Comments

@TrevtheForthDev
Copy link
Contributor

TrevtheForthDev commented Dec 27, 2018

Issue description

When using (require sgl sgl/gl-vectors)
Racket throws the error:
ffi-lib: couldn't open "libGLU.so.1" (libGLU.so.1: cannot open shared object file: No such file or directory). Sadly, installing libGLU(thus, libGLU.so.1) doesn't fix the error.

Steps to reproduce

nix-env -iA nixos.racket
store #lang racket (require sgl sgl/gl-vectors) (gl-begin 'triangles) (gl-vertex 1 2 3) (gl-vertex-v (gl-float-vector 1 2 3 4)) (gl-end) into a file
racket filename.rkt

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.19.12, NixOS, 18.09.1806.928ff62213b (Jellyfish)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1.3
  • channels(trev): ""
  • channels(root): "nixos-18.09.1806.928ff62213b, nixos-hardware"
  • nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos
@clacke
Copy link
Contributor

clacke commented Jan 31, 2019

Does adding libGLU's .../lib to the LD_LIBRARY_PATH environment variable help?

@clacke
Copy link
Contributor

clacke commented Jan 31, 2019

The answer is yes. I will add libGL and libGLU to racket's lib dependencies.

clacke added a commit to clacke/nixpkgs that referenced this issue Jan 31, 2019
The sgl collection loads them over FFI.

Closes NixOS#52990
srhb pushed a commit that referenced this issue Mar 16, 2019
The sgl collection loads them over FFI.

Closes #52990

Backport of #55002
(cherry picked from commit e43a4fa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants