python - How do I properly link against OpenGL framework using clang in OS X and Xcode 5.1? -
i trying figure out building bug in older python project, , stumped. project requires library linked against opengl
, , setup.py passing -framework opengl
flag linking stage of clang. system running 10.9.2 , xcode 5.1. include line in c file is:
#include <opengl/glu.h>
the call clang
, resulting error is:
/usr/bin/clang -bundle -undefined dynamic_lookup -l/opt/local/lib -wl,-headerpad_max_install_names -l/opt/local/lib/db46 build/temp.macosx-10.9-x86_64-2.7/src/visual/_polyobject.o -o build/lib.macosx-10.9-x86_64-2.7/trep/visual/_polyobject.so -framework opengl clang: error: unknown argument: '-framework opengl' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future error: command '/usr/bin/clang' failed exit status 1
now comes weird part. exact same call clang, done shell script runs fine , links library correctly, no errors or warnings. running clang --help
of no help, not describe -framework
option being valid argument. have clue going on here? why clang behave differently depending on whether it's called python script or shell script?
Comments
Post a Comment