PDA

View Full Version : cannot find -lqte



freegnu
1st July 2006, 16:29
hi everybody, i install qtopia-free-1.7.0 by step of the following:


1)packages
qt-embedded-2.3.10-free.tar.gz
qt-embedded-2.3.7.tar.gz
qtopia-free-1.7.0.tar.gz
qtopia-free-source-2.1.1.tar.gz
qt-x11-2.3.2.tar.gz
tmake-1.13.tar.gz
2)uncompress, extract and rename the file
for example:
tar zxvf qt-x11-2.3.2.tar.gz
mv qt-2.3.2 qt-x11-free-2.3.2-debug
3)set the environment
TROLLTECHDIR=$HOME/Trolltech
TMAKEDIR=$TROLLTECHDIR/tmake-1.13
QT2DIR=$TROLLTECHDIR/qt-x11-free-2.3.2-debug
QTEDIR=$TROLLTECHDIR/qt-embedded-free-2.3.7-debug
QPEDIR=$TROLLTECHDIR/qtopia-free-1.7.0-debug
QT3DIR=/usr/lib/qt3
QTDIR=$QTEDIR
DQTDIR=$QT3DIR
TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
QMAKESPEC=linux-g++
PATH=$QT2DIR/bin:$QTEDIR/bin:$QPEDIR/bin:$DQTDIR/bin:$QT3DIR/bin:$QTDIR/bin:$TMAKEDIR/bin:$PATH
LD_LIBRARY_PATH=$QT2DIR/lib:$QTEDIR/lib:$QPEDIR/lib:$DQTDIR/lib:$QT3DIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export TROLLTECHDIR TMAKEDIE QT2DIR QTEDIR QPEDIR QT3DIR QTDIR DQTDIR TMAKEPATH QMAKESPEC PATH LD_LIBRARY_PATH
4)compile qt-embedded
cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools -f
./configure -debug -qconfig qpe -qvfb -depths 4,8,16,32 -system-jpeg -gif
make sub-src
5)compile qt-x11
cd $QT2DIR
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -debug -no-opengl -no-xft
make sub-src
cd tools/designer/util
make
cd ../uic
make
cp $QTDIR/bin/uic $QTEDIR/bin
cd $QTEDIR/tools/qvfb
tmake qvfb.pro > Makefile
make



here,i meet a problem, and the error reference is following:


g++ -o qvfb qvfb.o qvfbview.o qvfbratedlg.o main.o qanimationwriter.o skin.o config.o moc_qvfb.o moc_qvfbview.o moc_qvfbratedlg.o moc_gammaview.o moc_config.o
-L/home/freegnu/Trolltech/qt-x11-free-2.3.2-debug/lib -lqte
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot
find -lqte
collect2: ld returned 1 exit status
make: *** [qvfb] error 1


i find there is libqte.so.2.3.7 in qt-embedded-free-2.3.7-debug/lib directory,
but there is not any library called qte.so in qt-x11-free-2.3.2-debug/lib

jacek
1st July 2006, 16:46
there is not any library called qte.so in qt-x11-free-2.3.2-debug/lib
If you pass -lsomething to the linker, it will look for libsomething.so*, so the problem is not with a file name, but with paths.

What is the value of LD_LIBRARY_PATH environment variable?

lpotter
11th July 2006, 11:07
qvfb needs to be compiled against qt-x11, and its looking for qt-embedded library.

Before you configure qt-x11 export TMAKEPATH=$TMAKEDIR/lib/linux-g++

:D