分类: LINUX
2010-07-04 14:32:01
You might need to modify the include and library search paths by editingQMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ****
其原因就在于需要安装libX11的开发包,在ubuntu/debian里包名都是libX11-dev
根据以往的经验,在./configure前主动装好下面3个包,基本上就万事大吉了
sudo apt-get install libX11-dev libXext-dev libXtst-dev
首先安装
libxrender-dev
build-essential
自己编译过程中遇到的错误提示为
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11
那是因为
Ubuntu没装有libxtst-dev
解决办法:
# sudo apt-get install libxtst-dev
-
./configure
-prefix /home/kinger/x11qt -release -shared -fast -no-qt3support -qt-sql-sqlite -nomake examples -nomake demos
生成pro文件(此过程要一个小时左右):
make
再执行 sudo make install
这就安装完成了。安装到了/usr/local/Trolltech/Qt-4.3.4/ 这个目录里
这时执行qmake应该有反应了。
执行QT程序过程如下:
到.cpp文件的目录下:
qmake -project (生成.pro)
qmake (生成MAKEFILE)
make (生成可执行文件)