[vtkusers] Link Problems for Examples on OSX

Marcel Prastawa prastawa at cs.unc.edu
Mon Dec 24 17:34:59 EST 2001


It seems that you're missing symbols from the OpenGL and AppKit
frameworks.

Try adding "-framework OpenGL -framework AppKit" to your build options or
alternatively use "-L<OpenGL directory> -lGL -framework AppKit".
You can find them both in /System/Library/Frameworks/...

Marcel

On Sun, 23 Dec 2001, Aaron Boxer wrote:

> Hello,
> I am trying to build a rendering examples by going
> to the VTK/Examples/Rendering directory, and running
> cmake and then make.
>
> I get the following errors:
>
> /usr/bin/ld: Undefined symbols:
> _glDepthMask
> _glGetIntegerv
> _glMatrixMode
> _glMultMatrixd
> _glPopMatrix
> _glPushMatrix
> _glLightf
> _glLightfv
> _glLighti
> _glDrawBuffer
> _glEnable
> _glLoadIdentity
> _glLoadMatrixd
> _glMultMatrixf
> _glScissor
> _glViewport
> _glAlphaFunc
> _glBindTexture
> _glDeleteTextures
> _glDisable
> _glGenTextures
> _glIsTexture
> _glTexImage2D
> _glTexParameterf
> _glColor4fv
> _glCullFace
> _glLineStipple
> _glLineWidth
> _glMaterialfv
> _glPointSize
> _glShadeModel
> _glClear
> _glClearColor
> _glClearDepth
> _glFlush
> _glInitNames
> _glLightModelfv
> _glLightModeli
> _glLoadName
> _glPushName
> _glRenderMode
> _glSelectBuffer
> _glBegin
> _glColor3f
> _glEnd
> _glTexCoord2fv
> _glVertex3fv
> .objc_class_name_NSApplication
> .objc_class_name_NSAutoreleasePool
> _glBlendFunc
> _glDepthFunc
> _glDrawPixels
> _glPixelStorei
> _glRasterPos2f
> _glRasterPos3f
> _glReadBuffer
> _glReadPixels
> _glTexEnvf
> _objc_msgSend
> _objc_msgSend_stret
> _glCallList
> _glClipPlane
> _glColor4ubv
> _glColorMaterial
> _glDeleteLists
> _glDepthRange
> _glEndList
> _glGenLists
> _glNewList
> _glNormal3fv
> _glPolygonOffset
> .objc_class_name_NSEvent
> _NSApp
> .objc_class_name_NSOpenGLPixelFormat
> .objc_class_name_NSOpenGLView
> _NSLog
> __NSConstantStringClassReference
> _objc_msgSendSuper
> .objc_class_name_NSTimer
> .objc_class_name_NSWindow
> *** Error code 1
>
> It seems that the opengl libraries are not linking
> properly. I am using the openglsdk 1.2 from apple.
>
> Thanks.
> Aaron Boxer
> boxerab at yahoo.com
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list