ºìÁªLinuxÃÅ»§
Linux°ïÖú

QT4±àÒë²»³É¹¦µÄÔ­Òò£¬QT4µÄ±àÒë·½·¨£¬ÆäʵºÜ¼òµ¥

·¢²¼Ê±¼ä:2008-09-30 00:03:26À´Ô´:ºìÁª×÷Õß:iopto
ÍøÉÏN¶àQT±àÒë²»¹ýµÄÎÊÌ⣬×î½ü¾­¹ýÎÞÊý´Î±àÒëºó×ܽá³ö´ó²¿·ÖQT±àÒë²»¹ýµÄÔ­ÒòÊÇÔÚconfigureµÄʱºò¾ÍÒѾ­¸ã´íÁË

Ò»¡¢QTµÄconfigure£¬Èç¹û²»´ø-prefix²ÎÊýʱĬÈÏ°²×°Â·¾¶Îª/usr/local/Trolltech/Qt-X.X.X£¬ËùÒÔÈç¹ûÄãµÄQTĿ¼ÏÂÔÚ´ËĿ¼Ï£¬Ôò²»ÄÜÖ±½ÓʹÓò»´ø²ÎÊýµÄconfigure

¶þ¡¢Èç¹û´øÁËʹÓÃconfigure -prefix£¬µ«²»Ö¸¶¨Ä¿Â¼£¬¼ÙÉèQTĿ¼Ϊ/home/crob/QT/qt-4.4.2£¬Ôò´ËʱĬÈϵÄQT°²×°Ä¿Â¼Îª¡°/home/crob/QT/qt-4.4.2/yes£¬×¢ÒâºóÃæ¶àÁ˸öYES£¬ÕâÏÔȻҲÊÇ´íµÄ¡£

Èý¡¢ËùÒÔÎÒÃDZØÐëʹÓõÚÈýÖÖ×îÍêÃÀÎÞȱµÄ·½Ê½
./configure -prefix /home/crob/QT/qt-4.4.2/

ÏÂÃæÊÇÍêÕûµÄlinuxϱàÒëQTµÄ¹ý³Ì£¬±àÒë»·¾³ÎªUbuntu 8.04

Ò»¡¢ÏÂÔغó½âѹ
tar zxvf qt-x11-opensource-src-4.4.2.tar.gz -C /home/crob/QT
½âѹºóQTĿ¼Ϊ/home/crob/QT/qt-4.4.2

¶þ¡¢±à¼­.bashrc
vi ~/.bashrc

×·¼ÓÒÔÏÂÐÐ
QTDIR=/home/crob/QT/qt-4.4.2
PATH=$QTDIR/bin:$PATH
QMAKESPEC=/home/crob/QT/qt-4.4.2/mkspecs/linux-g++
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH QMAKESPEC MANPATH LD_LIBRARY_PATH

È»ºóÖ´ÐÐÒÔÏÂÃüÁîʹ»·¾³±äÁ¿ÉúЧ
source ~/.bashrc

Èý¡¢Configuration
Ö´ÐÐÒÔÏÂÃüÁîÐÐ
cd $QTDIR
./configure -prefix /home/crob/QT/qt-4.4.2/
³öÀ´Ìáʾºó£¬ÊäÈëyesºó»Ø³µ
...µÈ´ý...Ô¼Èô¸É·ÖÖÓ

ËÄ¡¢±àÒë
ÃüÁîÐÐÊäÈëmakeºó£¬»Ø³µ£¬¸ù¾ÝÅäÖò»Í¬£¬±àÒë1ÖÁNСʱ²»µÈ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 4 ÌõÆÀÂÛ

  1. wd007 ÓÚ 2009-02-16 19:53:47·¢±í:

    thanks

  2. dx2k ÓÚ 2009-01-14 19:53:59·¢±í:

    ½²µÄÏêϸ ÊÔÊÔ

  3. slovey ÓÚ 2008-11-24 10:18:36·¢±í:

    àÅ¡£»Øȥװһϡ£

  4. nnbbyzx ÓÚ 2008-10-01 15:32:45·¢±í:

    ºÃÌù