-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.4.1
-
None
Building some Qt based applications results in Linking fails with:
creating liblyxinsets.la
(cd .libs && rm -f liblyxinsets.la && ln -s ../liblyxinsets.la liblyxinsets.la)
/bin/sh ../libtool --tag=CXX --mode=link g++ -Os -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -arch i386 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o Dimension.o PrinterParams.o Thesaurus.o liblyxcore.la liblyxmathed.la liblyxinsets.la frontends/liblyxfrontends.la frontends/qt4/liblyxqt4.la liblyxgraphics.la support/liblyxsupport.la ../boost/liblyxboost.la .../intl/libintl.a -liconv -Wl,-framework -Wl,CoreFoundation -liconv -lz -framework ApplicationServices -framework Carbon -framework AppKit -lQtGui -lQtCore -lz -lm
libtool: link: cannot find the library `' or unhandled argument `Carbon'
make[4]: *** [lyx] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
However, if (before building the application) rm *.la from /path/to/qt-4.4-install/lib/, the application will build.
Some related reports on the web that proposed the same
workaround (deleting *.la): They indicate that Qt would ship self-made
.la-files (not generated from libtool) that do something with the
"-framework Carbon" parameter that does not work with autotools/libtool.
<http://www.mail-archive.com/libtool@gnu.org/msg07807.html>
<http://lists.macosforge.org/pipermail/macports-users/2007-May/003163.html>