OpenGL dyld error OS X

Hello,

I have developed an application using SDL for OS X with XCode. Starting
the application by double clicking on the application works. But when
starting the program from the command line (“open something.app”) I get
the following errors:

dyld:
/Users/bobsturm/PacificPulses/PPgui_anim/OSX/PPgui/build/PPgui.app/Contents/MacOS/PPgui
Undefined symbols:

SDL undefined reference to _glGetIntegerv expected to be defined in OpenGL

SDL undefined reference to _glClear expected to be defined in OpenGL

OpenGL undefined reference to _CGLSetCurrentContext expected to be defined
in /usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _gll_pkey expected to be defined in
/usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _CGLGetCurrentContext expected to be defined
in /usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _CGLSetCurrentContext expected to be defined
in /usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _glGetBooleanv expected to be defined in
/usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _glGetIntegerv expected to be defined in
/usr/X11R6/lib/libGL.dylib—
I’ve noticed this also happens when I try to run any of the SDL tests.

Has anyone run into these problems?

Bob L. Sturm
Graduate Program in Media Arts & Technology
3431 South Hall
University of California, Santa Barbara
Santa Barbara, CA 93106-6070

…hmmm, are you starting from the command line in X11? You should
just use Terminal.app if you want to run cli in aqua/osx…

jamesOn Aug 21, 2004, at 6:30 PM, Bob Sturm wrote:

OpenGL undefined reference to _CGLSetCurrentContext expected to be
defined
in /usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _gll_pkey expected to be defined in
/usr/X11R6/lib/libGL.dylib

OpenGL undefined reference to _CGLGetCurrentContext expected to be
defined
in /usr/X11R6/lib/libGL.dylib