ÀÌ ¸Þ´º¾óÀº Qtopia-2.2.0, Qt-Extendded-4.4.3 (Qtopia Phone Edition), Qt 4.7.0¸¦ S3C6410 Start Kit °³¹ßº¸µå¿¡ Æ÷ÆÃÇÏ´Â ÀϹÝÀûÀÎ ¹æ¹ý¿¡ ´ëÇÑ ³»¿ëÀ» ¼³¸íÇÏ´Â ¸Þ´º¾ó ÀÔ´Ï´Ù.
1. Qt4.7
À̹ø Àý¿¡¼´Â QtÀÇ ÃֽŹöÁ¯ÀÎ Qt4.70À» ¾î¶»°Ô Å©·Î½º ÄÄÆÄÀÏÀ» Çؼ °³¹ßº¸µå¿¡¼ ½ÇÇà ½Ãų¼ö ÀÖ´ÂÁö¿¡ ´ëÇؼ ¹è¿ö º¸µµ·Ï ÇÕ´Ï´Ù.
qt-everywhere-opensource-src-4.7.0.tar.gz : Qt4.7.0 official source code
1.2 Qt4.7.0 official source code
Nokia¿¡¼ º£Æ÷ÇÑ °ø½Ä ¼Ò½º Äڵ带 ¼³Ä¡ ÇÕ´Ï´Ù.
"/opt/mini6410" µð·ºÅ丮°¡ »ý¼ºÀÌ µÇ¾î ÀÖÁö ¾Ê´Ù¸é ¸ÕÀú µð·ºÅ丮¸¦ »ý¼ºÇÑ ÈÄ tar ¸í·ÉÀ» ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù.
# cd /opt/mini6410
# tar xvzf /opt/qt-everywhere-opensource-src-4.7.0.tar.gz
1.3 Cross compile Qt4.7.0
Å©·Î½º ÄÄÆÄÀÏÀ» ÇϱâÀü¿¡ ¾Æ·¡ ¸í·ÉµéÀ» ½ÇÇà ½Ãŵ´Ï´Ù.
# cd /opt/mini6410/qt-everywhere-opensource-src-4.7.0
# echo yes | ./configure -prefix /opt/Qt4.7 -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon
configuration ¼öÇà½Ã ÁÖ¿äÇÑ ÆĶó¹ÌÅÍ ¼³Á¤µé¿¡ ´ëÇÑ ¼³¸í ÀÔ´Ï´Ù.
-embedded arm£º arm ¿ë embedded ¹öÁ¯À¸·Î ¼³Á¤
-xplatform qws/linux-arm-g++£º arm-linux
-qt-mouse-tslib£º »ç¿ëÇÒ ÅÍÄ¡ ½ºÅ©¸° ¶óÀ̺귯¸®¸¦ ÁöÁ¤ ÇÕ´Ï´Ù.
-prefix /opt/Qt4.7: Qt4.7ÀÌ ¼³Ä¡µÉ µð·ºÅ丮¸¦ "/opt/Qt4.7" ·Î ÁöÁ¤ ÇÕ´Ï´Ù.
´ÙÀ½ ¸í·ÉÀ¸·Î Qt4.7À» ÄÄÆÄÀÏ ÇÏ°í ¼³Ä¡ ÇÕ´Ï´Ù.
# make && make install
Âü°í·Î && ¸í·É ±âÈ£´Â "make" ¸í·É½Ã ¼º°øÀûÀ¸·Î ¿Ï·áµÇ¾î¾ß¸¸ "make install" À» ½ÇÇàÇϵµ·Ï ÇÕ´Ï´Ù.
1.4 Qt4.7.0À» °³¹ßº¸µå¿¡ ¼³Ä¡
°³¹ß¿ë ¸®´ª½º PC¿¡¼ ¾Æ·¡ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù.
# cd /opt
# tar cvzf qt4.7.tgz Qt4.7
"qt4.7.tgz" ÆÄÀÏÀ» SDÄ«µå¿¡ º¹»çÇÑ ÈÄ °³¹ßº¸µå¿¡¼ SD¸Þ¸ð¸®¸¦ »ðÀÔÇÏ°í ´ÙÀ½ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù.
# rm /usr/local/Trolltech/QtEmbedded-4.7.0-arm/ -rf
# cd /opt
# tar xvzf /sdcard/qt4.7.tgz
ÁÖÀÇ : ¾ÕÀÇ configuare ¼öÇà¿¡¼ Qt 4.7ÀÇ ¼³Ä¡ µð·ºÅ丮¸¦ "/opt/Qt4.7" ·Î ÁöÁ¤ ÇÏ¿´±â ¶§¹®¿¡ °³¹ßº¸µå¿¡ ¼³Ä¡½Ã ¹Ýµå½Ã "/opt/Qt4.7" ¿¡ ¼³Ä¡ µÇ·Î·Ï ÇØ¾ß ÇÕ´Ï´Ù.
ÀÌÁ¦ °³¹ßº¸µå¿¡ ¼³Ä¡µÈ Qt 4.7À» ½ÇÇàÇØ º¸µµ·Ï ÇսôÙ.
1.5 Qt4.7.0À» °³¹ßº¸µå¿¡¼ ½ÇÇà
Qt4.7¸¦ ½ÇÇàÇϱâ Àü¿¡ ¹Ýµå½Ã Qtopia2.2.0 or Qt-Extended4.4.3 ÀÇ ¸ðµç ÇÁ·Î¼¼½ºµéÀ» Á¾·áÇÏ°í ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù. Qtopia2.2.0À» Á¾·áÇÏ´Â ¹æ¹ýÀº Qtopia2.2.0 GUIȸéÀÇ "Setting" ÅÇ¿¡¼ "Off" ¾ÆÀÌÄÜÀ» ´©¸£¸é ¾Æ·¡¿Í °°Àº ȸéÀÌ ½ÇÇà µË´Ï´Ù. "Terminate Server" À» ¼±ÅÃÇؼ Qtopia2.2.0¸¦ Á¾·á ÇÕ´Ï´Ù.
Qtopia2.2.0À» Á¾·á½ÃÅ°´Â ´Ù¸¥ ¹æ¹ýÀ¸·Î´Â startup script ÀÎ "/etc/ init.d/rcS" ¿¡¼ qtopia startup °ü·Ã ¾ÆÀÌÅÛµéÀ» ÁÖ¼®Ã³¸®Çϰųª »èÁ¦ÇÑ ÈÄ °³¹ßº¸µå¸¦ ¸®ºÎÆà ÇÏ´Â ¹æ¹ýµµ ÀÖ½À´Ï´Ù.
Qt4.7 ¿¹Á¦ ÇÁ·Î±×·¥µéÀ» ±×·¯¸é ¾î¶»°Ô ½ÇÇà½ÃÄÑ¾ß ÇÒ±î¿ä ?
"/opt/Qt4.7/examples/" µð·ºÅ丮¿¡ Qt 4.7 »ùÇÿ¹Á¦µéÀÌ ÀÖ½À´Ï´Ù.
# /opt/Qt4.7/demos/embedded/fluidlauncher/fluidlauncher
À§ÀÇ ¸í·ÉÀ» ¹Ù·Î ½ÇÇà ½ÃÅ°¸é Qt4.7¿¡ ´ëÇÑ È¯°æº¯¼ö°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾Ê¾Æ¼ ¾Æ¸¶µµ ¿¡·¯°¡ ¹ß»ýÇÏ¸é¼ ½ÇÇàµÇÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. ¿ì¸®´Â ÇÁ·Î±×·¥ ½ÇÇàÀ» ½±Çì Çϱâ À§Çؼ "/bin/setqt4env" ¿¡ ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÏ´Â ½ºÅ©¸³Æ®¸¦ ¸¸µé¾î ³õ¾Ò½À´Ï´Ù.
# vi /bin/setqt4env
#!/bin/sh
if [ -e /etc/friendlyarm-ts-input.conf ] ; then
. /etc/friendlyarm-ts-input.conf
fi
true ${TSLIB_TSDEVICE:=/dev/touchscreen}
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE export TSLIB_CONFFILE
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_DISPLAY=:1
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin
if [ -c /dev/touchscreen ]; then
export QWS_MOUSE_PROTO="Tslib MouseMan:/dev/input/mice"
if [ ! -s /etc/pointercal ] ; then
rm /etc/pointercal
/usr/bin/ts_calibrate
fi
else
export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice"
fi
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root
|
ÀÛ¼ºµÈ ½ºÅ©¸³Æ®¿¡ ½ÇÇà ±ÇÇÑÀ» ºÎ¿© ÇÕ´Ï´Ù.
# chmod +x /bin/setqt4env
ÀÌÁ¦ ´Ù½Ã Qt 4.7 ÇÁ·Î±×·¥À» ½ÇÇà½ÃÄÑ º¾½Ã´Ù.
# . setqt4env
# cd /opt/Qt4.7/demos/embedded/fluidlauncher/
# ./fluidlauncher -qws
setqt4env ½ºÅ©¸³Æ® ¼öÇà½Ã setqt4env ¾ÕÀÇ "." ´Â ÇöÀç šv ¼¼¼Ç¿¡¼¸¸ ȯ°æº¯¼ö¸¦ À¯Áö Ç϶ó´Â ÀÇ¹Ì ÀÔ´Ï´Ù.
|