???????????Qt???????????????????
????#tarzxvfqt-x11-opensource-src-4.3.2.tar.gz-C/usr/local//??qt-x11-opensource-src-4.2.3.tar.gz???????????/usr/local??????????????/usr/local????
?????????????????????.bash_profile???????Qt??????????????????????root?????????
????#vi/root/.bash_profile//??root???.bash_profile???
??????root???.bash_profile????????????????????????????????????????
????QTDIR=/usr/local/qt-x11-opensource-src-4.3.2.tar.gz
????PATH=$QTDIR/bin:$PATH
????MANPATH=$QTDIR/doc/man:$MANPATH
????LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
????exportQTDIRPATHMANPATHLD_LIBRARY_PATH
??????????????????ESC????“Shife+:”???????vi??????????????????wq!?????????????
????????????????????????????????????Ч??#source/root/.bash_profile
???????????Qt?????????

????#cd$QTDIR??#cd/usr/local/qt-x11-opensource-src-4.3.2.tar.gz????????????/root/.bash_profile???????????????????QTDIR=/usr/local/qt-x11-opensource-src-4.3.2.tar.gz??exportQTDIR??
?????塢???configure??????????Qt?????????????./configure??./configure--help?????????б??????-thread??????????????????????汾????
????????????????????????Qt????????????????μ??????°?????????????????????С???????????make
????Qt??????????????????????Qt?????
???????????????Linux????ν??棬????????????????????????????????????????????????“??????????”????????????????????????.cpp?????????д?????????£?
????#viHelloWorld.cpp//???????HelloWorld.cpp???
????#include
????#include
????intmain(intargc??char*argv[])
????{
????QApplicationapp(argc??argv);
????QLabel*label=newQLabel("HelloWorld!!!"??0);
????app.setMainWidget(label);
????label->show();
????returnapp.exec();
????}
????д????????????????????wq??vi??????
????#qmake-project//??.cpp????????.pro???
????#qmakeHelloWorld.pro//???.pro??????????Makefile???
????#make//????????HelloWorld??????
????#./HelloWorld//????HelloWorld???
???????????????ж???????“HelloWorld!!!”?????Qt????????
????????????????????QMAKESPEChasnotbeenset??soconfigurationcannotbededuced.
????Errorprocessingprojectfile:XXXXX.pro
??????QMAKESPEC??????????ú????/root/.bash_profile???????У?
????exportQMAKESPEC=/usr/local/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++??????linux-g++??·??????