NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.41k stars 13.62k forks source link

glew does not build on OS X — ld: framework not found OpenGL #14769

Closed kolen closed 8 years ago

kolen commented 8 years ago

Issue description

glew does not build on OS X OpenGL framework is not available in build environment

Steps to reproduce

nix-shell -p glew

these derivations will be built:
  /nix/store/c0qwfdc1cr7pj9d60sc2i27756xs9b9r-glew-1.13.0.drv
building path(s) ‘/nix/store/dkzhym9gni15qhx1jxkyj4qcldpnwmm2-glew-1.13.0’
unpacking sources
unpacking source archive /nix/store/lm1ymsg2gkhhp7hc55zjcqlrd37kfnk4-glew-1.13.0.tgz
source root is glew-1.13.0
setting SOURCE_DATE_EPOCH to timestamp 1439207242 of file glew-1.13.0/src/visualinfo.c
patching sources
configuring
no configure script, doing nothing
building
make flags: SHELL=/nix/store/0nnmy8a9pznminf95jyxiwlqgz3wk1xf-bash-4.3-p42/bin/bash   all 
cc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC  -o tmp/darwin/default/shared/glew.o -c src/glew.c
cc -dynamiclib -install_name /usr/lib/libGLEW.1.13.0.dylib -current_version 1.13.0 -compatibility_version 1.13 -o lib/libGLEW.1.13.0.dylib tmp/darwin/default/shared/glew.o  -framework OpenGL 
ld: framework not found OpenGL
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:118: recipe for target 'lib/libGLEW.1.13.0.dylib' failed
make: *** [lib/libGLEW.1.13.0.dylib] Error 1
builder for ‘/nix/store/c0qwfdc1cr7pj9d60sc2i27756xs9b9r-glew-1.13.0.drv’ failed with exit code 2
error: build of ‘/nix/store/c0qwfdc1cr7pj9d60sc2i27756xs9b9r-glew-1.13.0.drv’ failed
/Users/kolen/.nix-profile/bin/nix-shell: failed to build all dependencies

Technical details

matthewbauer commented 8 years ago

It's working here: http://hydra.nixos.org/build/39401408

Can this issue be closed now?

vcunat commented 8 years ago

Someone's fixed it during the last few months, apparently.