Hi, I am new to working in PyOpenGL.
I want to take a C++ class and extend it to python, but I don't know
how to link with openGL.
I get the error:
_________________________________________________________________
ImportError: Failure linking new module: vally.so: Symbol not found:
_glVertex3f
Referenced from: vally.so
Expected in: dynamic lookup
_________________________________________________________________
I am using an intel mac and used the commands:
_________________________________________________________________
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/boost/ -I/sw/
include/python2.4 -c boost_val.cpp -o build/boost_val.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/boost/ -I/sw/
include/python2.4 -c val.cpp -o build/val.o
c++ -L/sw/lib -bundle -undefined dynamic_lookup build/boost_val.o
build/val.o -L/sw/lib -lboost_python -o build/vally.so -framework
OpenGL -framework GLUT
_________________________________________________________________
do you have any advice?
Thank you,
~Sean |