Hi DSSI dev list,
I am running into problems while linking the 'less trivial synth'
example on leopard:
colin$ make
...
g++ -g -O2 -o LTS_qt LTS_qt-less_trivial_synth_qt_gui.o
LTS_qt-less_trivial_synth_qt_gui.moc.o -Wl,-bind_at_load
-L/sw/lib/qt3/lib /sw/lib/qt3/lib/libqt-mt.dylib
-L/sw/lib/freetype219/lib -L/sw/lib -L/usr/X11R6/lib -lresolv -lz -lGL
/usr/X11/lib/libXmu.6.2.0.dylib /usr/X11/lib/libXrender.1.3.0.dylib
/usr/X11/lib/libXrandr.2.0.0.dylib /usr/X11/lib/libXcursor.1.0.2.dylib
/usr/X11/lib/libXinerama.1.0.0.dylib /usr/X11/lib/libXft.2.1.2.dylib
/sw/lib/freetype219/lib/libfreetype.dylib
/usr/X11/lib/libfontconfig.dylib /usr/X11/lib/libXext.6.4.0.dylib
/usr/X11/lib/libX11.6.2.0.dylib -lm /usr/X11/lib/libSM.6.0.0.dylib
/usr/X11/lib/libICE.6.3.0.dylib -ldl -L/usr/local/lib
/usr/local/lib/liblo.dylib -lpthread
ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
Apparently this is a library naming problem introduced in leopard, a
solution to which is discussed here:
http://lists.apple.com/archives/x11-users/2007/Oct/msg00146.html
It seems that what one must do to solve the problem is add:
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
to the g++ argument list wherever one finds -L/usr/X11RX/lib (which
arises from dependency on Qt, I gather), but I'm not sure how to do
this within the framework of the configure/makefile. Please pardon
this generic ignorance :] Could someone point me in the right
direction?
Cheers,
Colin
|