QT for Linux°²×°ÅäÖÃ
QT LinuxÏ°²×°ÊÖ²á
By Jackie
on June 13, 2008 4:04 PM
|
3 Comments
| Previous
|
Next
| EDIT
QTµÄ°²×°°ì·¨Óкܶ࣬°Ù¶ÈÒ»ÏÂÓÐÒ»´ó¶Ñ£¬µ«ÊǴ󲿷ֵÄÊֲᶼÊǸ´ÖÆÕ³ÌùµÄ£¬²¢²»ÄÜʹÓá£
¾ßÌåµÄ°²×°°ì·¨£º
1¡¢È¥ÕâÀïÏÂÔØQt 4.4.0 for X11 OpenSource
°æ¡£
2¡¢ÏÂÔعýÀ´µÄÊÇ qt-x11-opensource-src-4.4.0.tar.gz Îļþ£¬ÎÒÃÇÓÃtarÃüÁî½âѹһÏ¡£
tar zxvf qt-x11-opensource-src-4.4.0.tar.gz
3¡¢°ÑÕâ¸öĿ¼ÒƵ½/usr/localĿ¼Ï£¬»òÕß²»ÒÆ£¬·ÅÔÚ/homeĿ¼ҲÎÞËùν£¬ÏÂÃæµÄ°²×°¹ý³ÌÊÇ°ÑÕâ¸öĿ¼ÒƵ½/usr/localĿ¼Ï£¬¸ÄÃûΪqt£¬Èç¹ûÄúûÓÐÒƶ¯£¬ÔÚÉèÖõÄʱºò×¢ÒâĿ¼¡£
4¡¢Ð޸ģ¨¿ÉÒÔʹÓÃvi±à¼Æ÷
»òÕßgedit£©×Ô¼ºÄ¿Â¼ÏµÄ.bash_profile »òÕß .profile»òÕßÊÇ/etc/profileÕâ¸öÎļþ£¬¼ÓÈëÏÂÃæµÄ´úÂ룺
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
5¡¢×¢ÏúÒ»ÏÂÓû§»òÕß source .bash_profile һϣ¬Ê¹ÅäÖÃÎļþÉúЧ¡£
6¡¢½øÈëQT
µÄĿ¼£¬¿ªÊ¼±àÒë
./configure
ÊäÈëyesͬÒâGPL/QPLÐÒé¡£
ÔÚÍøÂçÉÏ»¹¿´µ½Õâ¸öÃüÁî ./configure -thread£¬ÎªÁËÖ§³Ö¶àỊ̈߳¬´ó¼Ò»¹ÊÇÇÃÒ»ÏÂÕâЩÃüÁîºÃÁË¡££¨²»ÖªµÀ./configure -thread ºÍ ./configure ÃüÁîÓÐûÓÐÖظ´£©
7¡¢¿ªÊ¼make Õâ²½ÒªÒ»Á½¸öСʱ
make
8¡¢¿ªÊ¼install £¨ÍøÉϵÄһЩÊÖ²áûÓÐÕâ²½£¬»á³öÏÖ error while loading shared libraries: libQTDesignerComponents.so4 ´íÎó£¬ÎÒmake installÒ»ÏÂÖ®ºó£¬¾ÍOKÁË¡£
£©ÕⲽҲҪͦ¾ÃµÄ£¬´ó¸Å¼¸Ê®·ÖÖÓ°É¡£
make install
9¡¢½øÈëQTµÄĿ¼£¬½øÈëbinĿ¼£¬È»ºóÔËÐÐ ./designer£¬´ó¼Ò¿ÉÒÔ¿
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
ÏÖÔÚ´ÓÐÂÕûÀíһϣ¬¾õµÃͦÓÐÓÃµÄ £¬Ìí¼ÓÁ˼¸Ïî·þÎñ
linuxÆô¶¯Ïî½éÉÜ
apmd ££ apmdÓÃÀ´¼àÊÓϵͳÓõç״̬£¬²¢½«Ïà¹ØÐÅϢͨ¹ýsyslogdдÈëÈÕÖ ......
ʵÀý½âÎöLinuxÏÂĿ¼µÄȨÏÞ
˵Ã÷:Èç¹û¶Ôumask,ȨÏÞÖµ,ÎļþµÄȨÏÞr,w,x¶¼²»Á˽âµÄÅóÓÑ,ÇëÏÈÈ¥²¹Ò»ÏÂÕâ·½ÃæµÄ֪ʶ,ÕâÀï²»×ö½éÉÜ,Ö±½Ó½øÈëÕýÌâ.
Ï£Íûͨ¹ýʵÀý½²½â,ÄÜÈøü¶àµÄ³õѧÕ߶ÔĿ¼µÄȨÏÞ¸üÇåÎú,¸üÃ÷°×!
±¾ÊµÀýÓõ½Á½¸öÕʺÅ:root ºÍ Ò»°ãÓû§
(rootÓû§µÄÌáʾ·û "#&qu ......
LinuxÏÂÍøÂç±à³Ì¸ÅÊö
Ò»£®ÍøÂç֪ʶ¸ÅÊö
ÍøÂç³ÌÐòºÍÆÕͨ³ÌÐò×î´óµÄÇø±ðÊÇÍøÂç³ÌÐòÓÉÁ½²¿·Ö×é³É£º¿Í»§¶ËºÍ·þÎñÆ÷¶Ë¡£
¿Í»§¶Ë£ºÔÚÍøÂç³ÌÐòÖУ¬Èç¹ûÒ»¸ö³ÌÐòÖ÷¶¯ºÍÍâÃæµÄ³ÌÐòͨÐÅ£¬ÄÇôÎÒÃǾͰѸóÌÐò³ÆΪ¿Í»§¶Ë³ÌÐò¡£
·þÎñÆ÷¶Ë£ººÍ¿Í»§¶Ë¶ÔÓ¦µÄ³ÌÐò¼´Îª·þÎñÆ÷¶Ë£»±»¶¯µØµÈ´ýÍâÃæ³ÌÐòÀ´ºÍ×Ô¼ºÍ¨ÐŵijÌÐò¼´Îª·þÎñÆ÷¶Ë³ÌÐò¡ ......
Gcc¼ò½é
LinuxϵͳϵÄgcc£¨GNU C Compiler£©ÊÇGNUÍƳöµÄ¹¦ÄÜÇ¿´ó¡¢ÐÔÄÜÓÅÔ½µÄ¶àƽ̨±àÒëÆ÷£¬ÊÇGNUµÄ´ú±í×÷Æ·Ö®Ò»¡£gccÊÇ¿ÉÒÔÔÚ¶àÖÖÓ²Ìåƽ̨ÉϱàÒë³ö¿ÉÖ´ÐгÌÐòµÄ³¬¼¶±àÒëÆ÷£¬ÆäÖ´ÐÐЧÂÊÓëÒ»°ãµÄ±àÒëÆ÷Ïà±Èƽ¾ùЧÂÊÒª¸ß20%~30%¡£
gcc ±àÒëÆ÷Äܽ«C¡¢C++ÓïÑÔÔ´³ÌÐò¡¢»ã³Ìʽ»¯ÐòºÍÄ¿±ê³ÌÐò±àÒë¡¢Á¬½Ó³É¿ÉÖ´ÐÐÎļþ£¬Èç¹ûûÓи ......