1£®Qt£embeded¼ò½é
Ëæ×ÅǶÈëʽLinuxÓ¦ÓõIJ»¶Ï·¢Õ¹£¬Ç¶Èëʽ´¦ÀíÆ÷ÔËËãÄÜÁ¦µÄ²»¶ÏÔöÇ¿£¬Ô½À´Ô½¶àµÄǶÈëʽÉ豸¿ªÊ¼²ÉÓýÏΪ¸´ÔÓµÄGUIϵͳ£¬ÊÖ³ÖÉ豸ÖеÄGUIϵͳ·¢Õ¹µÃ·Ç³£Ñ¸ËÙ¡£´«Í³µÄGUIϵͳ£¬ÈçMicrowindowsµÈ£¬ÓÉÓÚÏîÄ¿¹æÄ£½ÏС¡¢¹¦ÄܽÏΪ±¡Èõ£¬È±·¦µÈÈý·½Èí¼þ¿ª·¢µÄÖ§³ÖµÈÖî¶àÔÒò£¬ÔڱȽϸ߼¶µÄÊÖ³Ö»òÒƶ¯ÖÕ¶ËÉ豸£¨ÈçPDA¡¢Smart-Phone¡¢³µÔص¼º½ÏµÍ³£©ÖÐÓ¦ÓýÏÉÙ¡£
Qt/EmbeddedÊÇÖøÃûµÄQt¿â¿ª·¢ÉÌTrolltech¹«Ë¾¿ª·¢µÄÃæÏòǶÈëʽϵͳµÄQt°æ±¾£¬¿ª·¢ÈËÔ±¶àΪKDEÏîÄ¿µÄºËÐÄ¿ª·¢ÈËÔ±¡£Ðí¶à»ùÓÚQtµÄX Window³ÌÐò¿ÉÒԷdz£·½±ãµØÒÆÖ²µ½Qt/EmbeddedÉÏ£¬ÓëX11°æ±¾µÄQtÔÚ×î´ó³Ì¶ÈÉϽӿڼæÈÝ£¬ÑÓÐøÁËÔÚXÉϵÄÇ¿´ó¹¦ÄÜ£¬Ôڵײ㳹µ×ÞðÆúÁËX lib£¬½ö²ÉÓÃframebuffer×÷Ϊµ×²ãͼÐνӿڡ£Qt/EmbeddedÀà¿âÍêÈ«²ÉÓÃC++·â×°¡£·á¸»µÄ¿Ø¼þ×ÊÔ´ºÍ½ÏºÃµÄ¿ÉÒÆÖ²ÐÔÊÇQt/Embedded×îΪÓÅÐãµÄÒ»·½Ã棬ʹÓÃXϵĿª·¢¹¤¾ßQt Designer¿ÉÒÔÖ±½Ó¿ª·¢»ùÓÚQt/EmbeddedµÄUI£¨Óû§²Ù×÷½Ó¿Ú£©½çÃæ¡£Ô½À´Ô½¶àµÄµÚÈý·½Èí¼þ¹«Ë¾Ò²¿ªÊ¼²ÉÓÃQt/Embedded¿ª·¢Ç¶ÈëʽLinuxϵÄÓ¦ÓÃÈí¼þ¡£ÆäÖзdz£ÖøÃûµÄQt Palmtop Environment£¨Qtopia£©ÔçÆÚÊÇÒ»¸öµÚÈý·½µÄ¿ªÔ´ÏîÄ¿£¬²¢ÒѾ³É¹¦Ó¦ÓÃÓÚ¶à¿î¸ßµµPDA¡£Trolltech¹«Ë¾Õë¶ÔSmart-PhoneÖеÄÓ¦ÓÃÐèÇó£¬ÓÚ2004Äê5Ôµ׷¢²¼ÁËQtopiaµÄPhone°æ±¾¡£
Qt/EmbeddedµÄʵÏÖ¼¼Êõ»ù´¡·ÖÎöºáÏòÀ´¿´£¬ÓÉÓÚ·¢²¼µÄ°æȨÎÊÌ⣬Qt/Embedded²ÉÓÃÁ½ÖÖ·½Ê½½øÐз¢²¼£ºÔÚGPLÐÒéÏ·¢²¼µÄfree°æÓëרÃÅÕë¶ÔÉÌÒµÓ¦ÓõÄcommercial°æ±¾¡£¶þÕß³ýÁË·¢²¼·½Ê½Í⣬ÔÚÔ´ÂëÉÏûÓÐÈκÎÇø±ð¡£×ÝÏò¿´À´£¬µ±Ç°Ö÷Á÷µÄ°æ±¾ÎªQtopiaµÄ2.xϵÁÐÓë×îеÄ3.0xϵÁС£ÆäÖÐ2.0°æ±¾ÏµÍ³½Ï¶àµØÓ¦ÓÃÓÚ²ÉÓÃQtopia×÷Ϊ¸ßµµPDAÖ÷½çÃæµÄÓ¦ÓÃÖУ»3.x°æ±¾ÏµÁÐÔòÓ¦ÓÃÓÚ¹¦ÄÜÏà¶Ôµ¥Ò»£¬µ«ÐèÒª¸ß¼¶GUIͼÐÎÖ§³ÖµÄ³¡ºÏ£¬ÈçVolvo¹«Ë¾µÄÔ¶³Ì¹«½»ÐÅϢϵͳ¡£Í¼1ΪQt/EmbeddedµÄʵÏֽṹ¡£
3.x°æ±¾ÏµÁеÄQt/EmbeddedÏà¶ÔÓÚ2.x°æ±¾ÏµÍ³Ôö¼ÓÁËÐí¶àеÄÄ£¿é£¬ÈçSQLÊý¾Ý¿â²éѯģ¿éµÈ¡£¼¸ºõËùÓÐ2.x°æ±¾ÖÐÔÓеÄÀà¿â£¬ÔÚ3.x°æ±¾Öж¼µÃµ½¼«´ó³Ì¶ÈµÄÔöÇ¿¡£Õâ¾Í¼«´óµØËõ¶ÌÁËÓ¦ÓÃÈí¼þµÄ¿ª·¢Ê±¼ä£¬À©´óÁËQt/EmbeddedµÄÓ¦Ó÷¶Î§
ÔÚ´úÂëÉè¼ÆÉÏ£¬Qt/EmbeddedÇÉÃîµØÀûÓÃÁËC++¶ÀÓеĻúÖÆ£¬Èç¼Ì³Ð¡¢¶à̬¡¢Ä£°åµÈ£¬¾ßÌåʵÏַdz£Áé»î¡£µ«Æäµ×²ã´úÂëÓÉÓÚ×·ÇóÓë¶àÖÖϵͳ¡¢¶àÖÖÓ²¼þµÄ¼æÈÝ£¬´úÂë²¹¶¡½Ï¶à£¬·ç¸ñÉÔÏÔ»ìÂÒ¡£
2£®ÅäÖÃframebuffer
£¨1£©ÅäÖÃkernel£º
Ö´ÐÐ make mrproper
make menuconfig
È»ºó°´ÕÕ¡°ÁõÃ÷¡±ÌṩµÄÏÂÁÐÑ¡Ïî½øÐÐenabling framebuffer support:
Code maturity level options --->
? Prompt for development and/or incomplete code/drivers (CONFIG_EXPERIMENTAL=Y)
Console drivers --->
? VGA text console (CONFIG_VGA_CONSOLE=Y)
? Video mode selection support (CONFIG_VIDEO_SELECT=Y)
o Frame-buffer support --->
o Support for frame buffer devices (EXPERIMENTAL) (CONFIG_FB=Y)
¡ì VESA VGA graphics console (CONFIG_FB_VESA)
¡ì Advanced low level driver options (CONFIG_FBCON_ADVANCED=Y)
¡ì Monochrome support (CONFIG_FBCON_MFB=Y)
¡ì 2 bpp packed pixels support (CONFIG_FBCON_CFB2=Y)
¡ì 4 bpp packed pixels support (CONFIG_FBCON_CFB4=Y)
¡ì 8 bpp packed pixels support (CONFIG_FBCON_CFB8=Y)
¡ì 16 bpp packed pixels support (CONFIG_FBCON_CFB16=Y)
¡ì 24 bpp packed pixels support (CONFIG_FBCON_CFB24=Y)
¡ì 32 bpp packed pixels support (CONFIG_FBCON_CFB32=Y)
ÅäÖýáÊø£¬±£´æÍ˳ö£¬ÒÀ´ÎÖ´ÐÐ
make dep
make bzImage£¨×¢Òâ²»ÄÜÖ´ÐÐmake zImage£¬ÒòΪÆäÖ»ÊÊÓÃÓÚÄÚºËСÓÚ1MµÄÇé¿ö£©¡£
£¨2£©ÐÞ¸Ägrub.conf
ÔÚÄãËù±àÒëÄں˵ÄÏîĿϵÄÒÔkernel¿ªÍ·µÄÒ»ÐеÄ×îºó¼ÓÉÏ VGA=791 £¨Èç¹ûÄãµÄ·Ö±æÂÊΪ1024¡Á768£©£¬that is OK¡£È»ºóÖØÐÂÆô¶¯µçÄÔ£¬ÔÚÆô¶¯×ÀÃæµÄ×óÉϽdzöÏÖÒ»Ö»Æó¶ì£¬framebufer°²×°³É¹¦
ͨ¹ýfbsetÃüÁî¼ì²éframebuffer£º
££fbset
mode¡°1024¡Á768£76¡±
D£º78.653MHz£¬ H£º59.949KHz£¬ V£º75.694Hz
Geometry 1024 768 1024 768 16
Timings 12714 128 32 16 4 128 4
Rgba 5/11 6/5 5/0 0/0
Endmode
3.qt-embededµÄ°²×°
ͨ¹ý²éѯÎĵµ·¢ÏÖÔÚX windowsÏÂͨ¹ýqmakeÃüÁî¾Í¿ÉÒÔÉú³ÉMakefileÎļþ£¬µ«ÊÇÔÚǶÈëʽÏÂÃæÐèҪʹÓÃtmakeÃüÁî²ÅÄÜÉú³ÉMakefileÃüÁî £¬ËùÒÔÏÂÔØÁËtmake1.11(Éú³ÉQt/EmbededÓ¦Óù¤³ÌµÄMakefileÎļþ)¡£²¢ÇÒÕâ´Î²Î¿¼ÁË¡¶Qt/Embeded¿ª·¢»·¾³½¨Á¢¹ý³Ì¡·Ò»ÎÄ¡£
ÒÔrootÉí·Ý½øÐа²×°¡£
cd /root
tar xfz tmake-1.11.tar.gz
Éú³Étmake-1.11Îļþ¼Ð£¬È»ºóÕÕ¡¶Qt/Embeded¿ª·¢»·¾³½¨Á¢¹ý³Ì¡·½øÐÐÅäÖá£
export TMAKEDIR=$PWD/tmake-1.11
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/bin:$PATH
×¢Ïúroot£¬ÖØÐÂÒÔrootµÇ½ִÐÐ
·¢ÏÖϵͳ¾ÓȻûÓÐtmakeÃüÁ¿´À´exportÃüÁîÖ»ÊÇÔÝʱÓÐЧ£¬ËùÒÔÔÚ/rootϵÄ.bash_profileÏÂÉèÖ÷¾¶½«ÃüÁîÐÞ¸ÄÈçÏ£º
TMAKEDIR=$HOME/tmake-1.11
TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
PATH=$TMAKEDIR/bin:$PATH
export TMAKEDIR TMAKEPATH PATH
Ö´ÐÐ
££tmake
Usage:
tmake [option] project -files
options:
-e expr Evaluate expression,ignore template file
-nodepend Don¡¯t generate dependency information
-o file Write output to file
-t file Specify a template file
-unix Creat output for Unix (auto detects)
-v Verbose / debug mode
-win32 Create output for Win32 (auto detects)
tmake°²×°³É¹¦¡£
Æä´ÎÔÚ/rootÏ°²×°Qt/Embedded 2.3.7£¬Ö´ÐÐ
tar xfz qt-embedded-2.3.7.tar.gz
cd qt-2.3.7£¬
ÔÚrootϵÄ.bash_profileÏÂÉèÖ÷¾¶£¬´úÂëÈçÏ£º
QTDIR=$HOME
QTEDIR=$QTDIR
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR QTEDIR LD_LIBRARY_PATH
./configure -qconfig -qvfb -depths 4,8,16,32
make sub-src
cd ..
ÉÏÊöÃüÁî ./configure -qconfig -qvfb -depths 4,8,16,32 Ö¸¶¨Qt ǶÈëʽ¿ª·¢°üÉú³ÉÐéÄ⻺³åÖ¡¹¤¾ßqvfb£¬²¢Ö§³Ö4£¬8£¬16£¬32 λµÄÏÔʾÑÕÉ«Éî¶È¡£ÁíÍâÎÒÃÇÒ²¿ÉÒÔÔÚconfigure µÄ²ÎÊýÖÐÌí¼Ó£system£jpeg ºÍgif£¬Ê¹Qt/Embedded ƽ̨ÄÜÖ§³Öjpeg¡¢gif¸ñʽµÄͼÐΡ£ÉÏÊöÃüÁî make sub-src Ö¸¶¨°´¾«¼ò·½Ê½±àÒ뿪·¢°ü£¬Ò²¾ÍÊÇ˵ÓÐЩQt Ààδ±»±àÒë¡£Qt ǶÈëʽ¿ª·¢°üÓÐ5 ÖÖ±àÒ뷶ΧµÄÑ¡ÏʹÓÃÕâЩѡÏ¿É¿ØÖÆQt Éú³ÉµÄ¿âÎļþµÄ´óС£¬µ«ÊÇÄúµÄÓ¦ÓÃËùʹÓõ½µÄһЩQt Àཫ¿ÉÄÜÒò´ËÔÚQt µÄ¿âÖÐÕÒ²»µ½Á´½Ó¡£±àÒëÑ¡ÏîµÄ¾ßÌåÓ÷¨¿ÉÔËÐÐ./configure £help ÃüÁî²é¿´¡£
72.232.250.* ÓÚ 2007-01-07 06:28:52·¢±í:
Nice site!
free online strip blackjack | on line gambling | monopoly slot machine | slot games | gambling on line | gambling game | on line casinos | poker hand | poker games free | pai gow poker
72.232.250.* ÓÚ 2007-01-07 06:27:59·¢±í:
Thank you!
online casino | poker money | best online poker room | star poker | free poker sites | multi hand poker | free casino games | keno | online holdem | free blackjack games
72.232.250.* ÓÚ 2007-01-07 06:26:39·¢±í:
Nice site!
online texas holdem | free gambling | no limit hold em | holdem poker online | free online video slots | free poker online | play free slot machine games | no limit texas hold em | free texas holdem poker | free video slots
72.232.250.* ÓÚ 2007-01-07 06:25:45·¢±í:
Great work!
monopoly slots | absolute poker | play roulette online | best casino online | slot machines | play texas holdem | planet poker | slot online | free online bingo games | poker hold em
72.232.250.* ÓÚ 2007-01-06 06:49:03·¢±í:
Well done!
poker gambling | slot online | play poker for free | keno | poker club | poker texas holdem | download free poker games | no limit texas hold em | poker bonus | best casino online
72.232.250.* ÓÚ 2007-01-06 06:48:42·¢±í:
Good design!
poker site us | poker hold em | free on line poker | play black jack | free poker download | play roulette online | texas hold em poker online | slot games | free gambling | play roulette
72.232.92.* ÓÚ 2007-01-06 06:47:28·¢±í:
Thank you!
free poker game download | free video slots | machine games | no deposit bonus | poker stars | on line casino | video slot games | free poker websites | texas holdem tournament | free poker games
65.110.43.* ÓÚ 2007-01-06 06:46:57·¢±í:
Good design!
online poker tournament | internet blackjack | monopoly online | texas holdem free | poker accept usa | online casino games | online poker games | casino game online | free online poker | free slot
65.110.43.* ÓÚ 2007-01-06 06:46:07·¢±í:
Nice site!
casino royale | gamble poker | free slots games | gambling game | poker site | black jack | roulette game | absolute poker | free poker sites | cleopatra slot machine
72.232.92.* ÓÚ 2007-01-05 05:32:05·¢±í:
Great work!
poker accepting americans | black jack games | free slot games | best internet casinos | online casinos | free bonus slots | full poker review tilt | poker tables | casino online games | free slots online
72.232.250.* ÓÚ 2007-01-05 05:31:08·¢±í:
Great work!
internet blackjack | blackjack software | no limit texas holdem | keno | gambling on line | free online slot machines | casino games online | slot game | online free poker | poker review star
65.110.43.* ÓÚ 2007-01-05 05:30:29·¢±í:
Thank you!
best online casinos | video poker free | free download poker | slot games free | play slot machines for free | free three card poker | gambling games | free texas holdem poker | draw poker | casino on line
72.232.250.* ÓÚ 2007-01-05 05:30:22·¢±í:
Thank you!
gambling game | caribbean stud poker | caribbean poker online | casino poker | free online texas holdem | free casino slot games | poker for fun | online poker reviews | black jack game | new online casinos
72.232.93.* ÓÚ 2007-01-05 05:30:05·¢±í:
Thank you!
gambling game | caribbean stud poker | caribbean poker online | casino poker | free online texas holdem | free casino slot games | poker for fun | online poker reviews | black jack game | new online casinos
65.110.43.* ÓÚ 2007-01-05 05:29:21·¢±í:
Nice site!
world poker tour | free roulette online | play blackjack free | online holdem | free on line games | online casino blackjack | stud poker | slots games | no download no deposit casinos | free strip blackjack
72.232.250.* ÓÚ 2007-01-04 05:17:43·¢±í:
Good design!
3 card poker | poker machines | playing poker | poker site us | play blackjack online | poker club | no download no deposit casinos | real money poker | slot machine game | no deposit casino
65.110.43.* ÓÚ 2007-01-04 05:16:36·¢±í:
Thank you!
free casino cash | free 3 card poker | free no download slots | playing roulette | free fun slots | casino on line | play free slots online | internet poker | poker money | casino game online
65.110.43.* ÓÚ 2007-01-04 05:15:45·¢±í:
Well done!
free three card poker | poker tournament | bonus poker | free play slots | online gambling holdem | no deposit bonus | world series poker | free on line slot machines | poker star | online texas hold em
65.110.43.* ÓÚ 2007-01-04 05:15:14·¢±í:
Nice site!
poker cards | free slots games | no deposit bonus casinos | party poker | free slot games online | free bingo | free online bingo games | play casino game | play poker | free casino downloads
65.110.43.* ÓÚ 2007-01-04 05:14:56·¢±í:
Great work!
black jack game | poker games free | casino online | texas holdem tournament | live poker rooms | free poker games | roulette wheel | play slots | play black jack | gamble poker
72.232.93.* ÓÚ 2007-01-02 07:01:48·¢±í:
Nice site!
online gaming casinos | keno online | poker for fun | online bingo games | real poker | monopoly slot machine | online casino slots | blackjack game | poker accept usa | internet bingo
72.232.250.* ÓÚ 2007-01-02 07:01:07·¢±í:
Nice site!
play free slot machines | online poker game | slot online | paradise poker | poker software | poker bonus | free texas hold em | poker games free | no deposit casino | uk poker
72.232.93.* ÓÚ 2007-01-02 07:00:31·¢±í:
Nice site!
free slots | free online roulette | free no download slots | free slot machine downloads | poker review star | online holdem | free online gambling | free internet poker | playing roulette | poker gambling
65.110.43.* ÓÚ 2007-01-02 07:00:04·¢±í:
Nice site!
texas hold em | casino no deposit | free online texas holdem | card poker | play free roulette | poker downloads | download free poker | caribbean poker online | blackjack games | machine games
65.110.43.* ÓÚ 2007-01-02 06:59:17·¢±í:
Nice site!
casino poker | online black jack | free slot games online | gambling poker machine | poker money | online slots free | internet casinos | best online casinos | online slot machines | poker site us
72.232.250.* ÓÚ 2007-01-01 06:25:46·¢±í:
Thank you!
blackjack odds | gambling poker machine | download poker | paigow poker | download poker games | poker websites | free slot machine games | free blackjack online | poker room review | free casino
72.232.92.* ÓÚ 2007-01-01 06:24:43·¢±í:
Nice site!
casino royale | free slots for fun | free on line slots | play slot machines for free | holdem poker texas | no download casino | noble poker | online casino poker | texas holdem tournament | free online gambling
72.232.93.* ÓÚ 2007-01-01 06:24:05·¢±í:
Great work!
black jack online | poker downloads | star poker | caribbean stud poker | free bonus slots | flash casinos | on line casinos | free download poker | free on line games | virtual poker
72.232.250.* ÓÚ 2007-01-01 06:23:28·¢±í:
Great work!
no limit holdem | poker sets | free play slot machines | free strip blackjack | internet casino gambling online | online roulette | free slots on line | free online texas hold em | online gambling games | bingo cards
72.232.93.* ÓÚ 2007-01-01 06:23:11·¢±í:
Well done!
party poker | online casinos | poker review | pacific poker | free slots download | online casino slots | free casinos | internet poker | play roulette | roulette free games
72.232.92.* ÓÚ 2006-12-31 06:45:50·¢±í:
Nice site!
online poker room | poker gambling | party poker | world series of poker | best online poker room | holdem poker online | poker accept usa | slot machine software | free black jack | free gambling games
65.110.43.* ÓÚ 2006-12-31 06:45:28·¢±í:
Thank you!
pai gow poker | internet blackjack | poker downloads | game poker | computer poker games | free gambling | poker accept us | poker cards | free omaha poker | download party poker
65.110.43.* ÓÚ 2006-12-31 06:45:21·¢±í:
Well done!
texas holdem online | bingo online | free slot machine games online | no download games | no deposit bonus casinos | free slot | play slot machines for free | play blackjack | texas holdem tournament | slots games
72.232.250.* ÓÚ 2006-12-31 06:43:54·¢±í:
Nice site!
poker texas hold em | casino portal | casino on line | free poker | poker star | poker rooms accept us | play casino games | texas holdem poker | party poker download | blackjack game
72.232.92.* ÓÚ 2006-12-30 07:01:39·¢±í:
Well done!
poker usa | play poker on line | free slots no download | world poker tour | earn cash playing poker | keno games | poker review | poker sites accepting us | new no deposit casinos | online blackjack
72.232.92.* ÓÚ 2006-12-30 07:01:37·¢±í:
Good design!
holdem poker online | three card poker | free slots online | play bingo online | full poker review tilt | playing poker | black jack download | free three card poker | best internet casinos | free poker tournaments
72.232.92.* ÓÚ 2006-12-30 07:01:24·¢±í:
Well done!
poker usa | play poker on line | free slots no download | world poker tour | earn cash playing poker | keno games | poker review | poker sites accepting us | new no deposit casinos | online blackjack
72.232.92.* ÓÚ 2006-12-30 07:00:26·¢±í:
Nice site!
card game poker | free no deposit online casinos | free slots on line | poker hands | online casino | poker games | poker open to us | free online texas holdem | poker stars | free play slot machines
72.232.92.* ÓÚ 2006-12-30 06:59:47·¢±í:
Great work!
poker site us | internet bingo | slots on line | video poker download | real poker | free play slots | free casino bonus | free slot play | play casino game | no deposit bonus
72.232.92.* ÓÚ 2006-12-30 06:59:03·¢±í:
Thank you!
free blackjack game | online slots | play blackjack free | internet gambling | play free roulette | free slot machine downloads | free casino money | online roulette | play blackjack online | star poker