Re: [Plib-users] Building Plib on Mac OSX (Darwin)
Brought to you by:
sjbaker
From: Beegee <be...@ma...> - 2001-12-29 23:05:16
|
I resolved the __objcInit error by linking against libobjc, from /usr/lib. There was some discussion about this on the ProjectBuilder list, but I don't have the thread handy. Also, I've made basically the exact same changes that you listed except that I kept 'macintosh' and 'MACOSX' as separate targets because of things like <OpenGL/GL.h> vs <GL/GL.h>. Additionally, there was a bug in 10.1 I believe that caused a crash if you called aglGetCurrentContext() before you created a context. That led me to just have glIsValidContext() always return true on OS X. Sloppy I know... Jon On Friday, December 28, 2001, at 12:16 PM, Reed Hedges wrote: > I'm working on the Tux example program now. Here is the error, which > has me stumped. I will try to enlist the help > of some people who know more about OSX than me... > > linked to -framework GLUT and include <GLUT/glut.h> instead of > <GL/glut.h>. > > > make: > c++ -g -O2 -Wall -o tux_example tux_example.o -lplibssg -lplibsg > -lplibul -lpthread -lm -framework OpenGL -framework AGL -framework > CoreServices -framework GLUT > /usr/bin/ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit > defined in indirectly referenced dynamic library > /usr/lib/libobjc.A.dylib > make: *** [tux_example] Error 1 > |