Compile failure

7 Messages Forum Options Options
Embed this topic
Permalink
Christopher Menzel
Compile failure
Reply Threaded MoreMore options
Print post
Permalink
I'm trying to compile from the latest sources.  I've done this  
successfully several times in the past and I am (I think) following  
the instructions in INSTALL.MacOSX correctly.  I have compiled and  
installed the latest QT/Mac (4.3.2).  I've set the appropriate env  
vars etc and believe I have all the config parameters right.

Nonetheless I'm getting the following error (well into the compile):

g++ -g -Os -framework Carbon -framework OpenGL -framework AGL -
framework QuickTime -framework Cocoa -o lyx main.o ISpell.o  
SpellBase.o Box.o Dimension.o PrinterParams.o Thesaurus.o -Wl,-
framework -Wl,CoreFoundation -framework ApplicationServices -F/usr/
local/Trolltech/Qt-4.3.2/lib -framework Carbon -framework AppKit -
framework QtCore -Wl,-bind_at_load  ./.libs/liblyxcore.a ./.libs/
liblyxmathed.a ./.libs/liblyxinsets.a frontends/.libs/
liblyxfrontends.a frontends/qt4/.libs/liblyxqt4.a -L/usr/local/
Trolltech/Qt-4.3.2/lib ./.libs/liblyxgraphics.a support/.libs/
liblyxsupport.a ../boost/.libs/liblyxboost.a ../intl/libintl.a /usr/
lib/libiconv.dylib -lQtCore -lQtGui -lz -lm
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any help/suggestions appreciated.

Chris Menzel

Pavel Sanda
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
> Nonetheless I'm getting the following error (well into the compile):

> ld: library not found for -lQtCore

this is not compile error, but linking problem. i guess you need to set path
to qt4 in configure (if this is used on mac).

pavel

Uwe Stöhr
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Christopher Menzel
Christopher Menzel schrieb:

> I'm trying to compile from the latest sources.

This is something for the developers mailing-list.

regards Uwe
Christopher Menzel
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Pavel Sanda
>> Nonetheless I'm getting the following error (well into the compile):
>
>> ld: library not found for -lQtCore
>
> this is not compile error, but linking problem. i guess you need to  
> set path to qt4 in configure (if this is used on mac).

Yes, a good suggesetion, but the curious thing is that I am setting it.

-chris

Pavel Sanda
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
> Yes, a good suggesetion, but the curious thing is that I am setting it.

whats the exact configure command you use ?
where is placed your libQtCore.so ?
pavel
Christopher Menzel
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
On Nov 4, 2007, at 11:16 AM, Pavel Sanda wrote:
>> Yes, a good suggesetion, but the curious thing is that I am setting  
>> it.
>
> whats the exact configure command you use ?

For compiling Qt:

./configure -static -no-exceptions -nomake examples -nomake tools -
nomake demos -prefix /usr/local/Trolltech/Qt-4.3.2/

For compiling LyX:

./configure --prefix=/Applications/LyX.app  --with-version-suffix=-1.5  
--without-x --with-qt4-dir=/usr/local/Trolltech/Qt-4.3.2 --with-
included-gettext --enable-optimization=-Os

I've also tried configuring with "--with-extra-lib=/usr/local/
Trolltech/Qt-4.3.2/lib", just in case.

> where is placed your libQtCore.so ?

Hm.  The compile and install of Qt seemed flawless, but I can't find  
that file:

root [/usr/local/Trolltech/Qt-4.3.2]
153: find . -name *QtCore*
./include/Qt/QtCore
./include/QtCore
./include/QtCore/QtCore
./lib/libQtCore.a
./lib/libQtCore.prl
./lib/libQtCore_debug.a
./lib/libQtCore_debug.prl
./lib/pkgconfig/QtCore.pc
./lib/pkgconfig/QtCore_debug.pc
./lib/QtCore.framework
./lib/QtCore.framework/QtCore
./lib/QtCore.framework/QtCore.prl
./lib/QtCore.framework/QtCore_debug
./lib/QtCore.framework/QtCore_debug.prl
./lib/QtCore.framework/Versions/4/Headers/QtCore
./lib/QtCore.framework/Versions/4/QtCore
./lib/QtCore.framework/Versions/4/QtCore_debug

(But I also don't see it in the lib dir of the version of Qt 4.2.3  
that I compiled and used the last time I compiled LyX from sources.)

-chris




Pavel Sanda
Re: Compile failure
Reply Threaded MoreMore options
Print post
Permalink
> For compiling Qt:
>
> ./configure -static -no-exceptions -nomake examples -nomake tools -nomake
> demos -prefix /usr/local/Trolltech/Qt-4.3.2/
>
>> where is placed your libQtCore.so ?
>
> Hm.  The compile and install of Qt seemed flawless, but I can't find that
> file:

i know nothing of libraries on osx, but just shot in the dark - what happens
without "-static" ?

pavel