[Kde-nonlinux] QT snapshot fails to build on FreeBSD 4.5 -stable

Frerich Raabe kde-nonlinux@kde.org
Sat, 30 Mar 2002 21:59:33 +0100


On Saturday 30 March 2002 21:51, Mike McLean wrote:
> I'm attempting to build KDE 3 RC3 on my FreeBSD 4.5 -stable system.
> I've downloaded everything, and got qt configured fine, but the build
> process fails here:
>
> gmake[4]: Leaving directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/tools/designer/uili
>b' cd designer && gmake -f Makefile
> gmake[4]: Entering directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/tools/designer/desi
>gner' /usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/bin/uic
> dbconnections.ui -o dbconnections.h
> /usr/libexec/ld-elf.so.1: Undefined symbol "_6QColor$colormodel"
> referenced from COPY relocation in
> /usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/bin/uic
> gmake[4]: *** [dbconnections.h] Error 1
> gmake[4]: Leaving directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/tools/designer/desi
>gner' gmake[3]: *** [sub-designer] Error 2
> gmake[3]: Leaving directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/tools/designer'
> gmake[2]: *** [sub-designer] Error 2
> gmake[2]: Leaving directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319/tools'
> gmake[1]: *** [sub-tools] Error 2
> gmake[1]: Leaving directory
> `/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319'
> gmake: *** [init] Error 2

I think you're trying to link against a binary incompatible version of the Qt 
library. Try 'ldd  Make sure that

1.) QTDIR=/usr/home2/libolt2/kde/build/qt-copy-snapshot-20020319 - that's 
probably the case already, otherwise you wouldn't have gotten that far.

Then run 'ldd $QTDIR/bin/uic | grep $QTDIR/lib' - if it doesn't output 
anything, it doesn't link to the correct library, that's why you might need 
to do

2.) LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH - so that it picks up the 
correct version of the Qt library (make sure that your qt snapshot is first 
in the list)

Now 'ldd $QTDIR/bin/uic' should list $QTDIR/lib, and running it might actually 
work.

- Frerich