安装qt后,编译helloword 程序,提示找不到 -lQtGui_debug
我用的是ubuntu 6.06,
~/.bash_profile 设置为:
QTDIR=/usr/local/Trolltech/Qt-4.1.4
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
root:ubuntu~/helloword# make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
g++ -o helloword main.o -L/usr/lib -lQtGui_debug -lQtCore_debug -lpthread
/usr/bin/ld:找不到 -lQtGui_debug
collect2: ld 返回 1
make: *** [helloword] 错误 1
链结库QtGui_debug在/usr/local/Trolltech/lib 中,怎么加入,谢谢
[ 此贴被XChinux在2006-07-31 19:03重新编辑 ]