Andre Poenitz wrote:
I do not understand why, but I was told before, and I forgot:One needs to delete *.la from /path/to/qt-4.4-install/lib/ after compiling Qt !!!Well, I haven't heard that before.
This was what Bennet told me to get started - and it looks like it is necessary. I found a few things on the web indicating 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/[EMAIL PROTECTED]/msg07807.html http://lists.macosforge.org/pipermail/macports-users/2007-May/003163.htmlMaybe it is also related to the libtool version. Is libtool included in the LyX source, or is that something I should update on my system (If needed, I can install quite recent versions of whatever, using MacPorts).
In fact, I had this week a variety of Qt build on Mac (mostly 4.4 - 4.6) under my fingers, but certainly have not needed to touch any .la file/
With a similar build-system as we use in LyX (statically built Qt, and using autotools/configure/make-mechanism, not cmake or scons)?
Have you tried with LyX also?
Does Trolltech/Nokia officially know about it?
No idea. I do not understand our build system well enough so that I could judge and/or give a useful report - from as much as I understand it could just as well be a problem in LyX's autotools configuration, or my setup.
All I do is building Qt with:./configure -prefix ~/qt-443 -release -static -fast -no-exceptions -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk -nomake examples -nomake tools -nomake demos -no-libtiff
and then building LyX-1.6.0rc3 using the attached script (no autogen on my side).
LyX builds fine if beforehand I remove *.la from /path/to/qt-4.4-install/lib/
If I do not do that, 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 2The libtool call however looks the same when I do NOT remove the *.la files, that means something is going wrong earlier than when the above error occurs.
Maybe you can bring some light into this shady business. Thanks, Konrad
LyX-Mac-binary-release_1.6.0rc3.sh
Description: Bourne shell script