Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux Ï Qt 4.6.0 ǶÈëʽ¿ª·¢»·¾³µÄ´î½¨¡¢ÒÆÖ²

ת×Ôhttp://hi.baidu.com/jiyeqian/blog/item/f46d26a2ff3f7da6caefd0d6.html
 
Qt£ºqt-everywhere-opensource-src-4.6.0.tar.gz
ǶÈëʽƽ̨£º2440
arm-linux-gcc£º4.1.2£¬ÏÂÔØ£¨ÎÒÓÃ4.3.2ºÍ4.4.1°æ±¾Ê±£¬ÒÆֲʱ¶¼ÓжδíÎó¡£ÎÒ°ÑËü·ÅÔÚ£º/usr/local/arm/4.1.2/ ¡££©
½« qt-everywhere-opensource-src-4.6.0.tar.gz ѹËõ°ü½âѹΪ3·Ý£¬·Ö±ð±àÒë PC £¬Ç¶Èëʽ x86 ºÍ arm Èý¸ö°æ±¾¡£
1. ±àÒë PC °æ£º
$ ./configure
$ make
# make install
2. ±àÒëǶÈëʽx86°æ£º
$ ./configure -embedded x86 -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb
$ make
# make install
±àÒë°²×°PC°æÖÐµÄ qvfb£º
$ cd  ***/qt-everywhere-opensource-src-4.6.0/tools/qvfb
$ make
# cp ***/qt-everywhere-opensource-src-4.6.0/bin/qvfb  /usr/local/Trolltech/QtEmbedded-4.6.0/bin
3. ±àÒëǶÈëʽarm°æ£¨ÐèÒª arm-linux-gcc µÄÖ§³Ö£©£º
±àÒëtslib¶Ô´¥ÃþÆÁÖ§³Ö£º
±àÒëtslibÐèÒª°²×°
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
ÏÂÔØ£¬tslib1.4.tar.gz£¬½âѹºó£º
££cd tslib/
££export CC=/usr/local/arm/4.1.2/bin/arm-linux-gcc
££export CXX=/usr/local/arm/4.1.2/bin/arm-linux-g++
ÔËÐÐ
££./autogen.sh
££echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
ÅäÖð²×°²ÎÊý
££./configure --host=arm-linux --cache-file=arm-linux.cache --enable-inputapi=no PLUGIN_DIR=/usr/local/arm/tslib/plugins -prefix=/usr/local/arm/tslib/build -host=arm-linux --cache-file=arm-linux.cache 2>&1 | tee conf_log
±àÒë
££make 2>&1 | tee make_log
££make install
ÕâÑù×öµÄÔ­ÒòÊÇ
ÀîÏȾ² ÀÏʦµÄ²©¿ÍÖ®¡¶½»²æ±àÒ볡¾°·ÖÎö(arm-linux)(¶þ)--±àÒëtslib¡·£¬Ëû¶ÔÕâ¸öÎÊÌâÀí½âºÜ͸³¹£¬ÏÂÃæÒýÓÃÔ­»°>>>>£º
ÔÚµ±Ç°Ä¿Â¼²éÕÒÁËrpl_malloc£¬·¢ÏÖconfigureÀïÓÐ#define malloc rpl_mallocÒ»ÐС£·ÖÎöconfigure ½Å±¾Ïà¹ØµÄ´úÂ룬ԭÀ´ÊÇac_cv_func_malloc_0_nonnullÒýÆðµÄ£¬OKÎÒÃDz»ÈÃËü¼ì²éÁË£¬²úÉúÒ»¸öcacheÎļþarm-linux.cache£¬ÆÛÆ­configure£º
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >$ ARCH -linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=$ ARCH -linux --cache-fil


Ïà¹ØÎĵµ£º

linux¹Ø»úÃüÁîÏê½â

ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡1.shutdown
¡¡¡¡shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬ÕâÊÇÊ®·ÖΣÏյġ£ÒòÎ ......

linuxÏÂÇ¿ÖÆÐÂÓû§Ê״εǽÐÞ¸ÄÃÜÂë


Èç¹ûϵͳ¹ÜÀíԱϣÍûÌí¼ÓÒ»¸öÓû§ÒÔºó£¬ÈøÃÓû§µÚÒ»´ÎµÇ¼ÒÔºó×Ô¼ºÉèÖÃ×Ô¼ºµÄÃÜÂ룬ÄÇô¾ÍҪʹµÃÓû§µÄ³õʼÃÜÂë»òÕß¿ÕÃÜÂëÁ¢¿Ì¹ýÆÚ£¬Ç¿ÖÆÓû§µÚÒ»´ÎµÇ¼ºóÁ¢¿ÌÐÞ¸ÄÃÜÂë¡£
ΪÁËÇ¿ÖÆÓû§µÚÒ»´ÎµÇ¼ʱÉèÖÃÒ»¸öÐÂÃÜÂ룬Çë°´ÕÕÏÂÃæµÄָʾÀ´×ö£¬µ«ÊÇÐèÒªµÄ×¢ÒâµÄʱºòÈç¹ûÓû§ÊÇͨ¹ýSSHÔ¶³ÌµÇ¼½øÈ¥µÄ£¬ÄÇô¸Ã·½·¨ÊDz»ÄÜÉúЧµÄ ......

Linux ͬ²½·½·¨ÆÊÎö

ÎÄÕÂÀ´Ô´:http://www.ibm.com/developerworks/cn/linux/l-linux-synchronization.html
¼¶±ð£º Öм¶
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex
2007 Äê 11 ÔÂ 19 ÈÕ
ÔÚѧϰ Linux® µÄ¹ý³ÌÖУ¬ÄúÒ²Ðí½Ó´¥¹ý²¢·¢£¨concurrency£©¡¢ÁÙ½ç¶Î£¨critical section£©ºÍËø¶¨£¬µ«ÊÇÈçºÎÔÚÄÚºËÖÐʹÓÃÕâЩ¸ÅÄîÄØ£¿±¾ÎÄÌÖÂÛÁË 2.6 °æÄÚºËÖÐ ......

´ÓÒ»µÀÃæÊÔÌâ̸LinuxÏÂforkµÄÔËÐлúÖÆ

ijÍâÆóÃæÊÔlinux¿ª·¢Ö°Î»ÃæÊÔÌ⣺
¸ø³öÈçÏÂC³ÌÐò£¬ÔÚlinuxÏÂʹÓÃgcc±àÒ룺
#include "stdio.h"
#include "sys/types.h"
#include "unistd.h"
int main(void)
{
pid_t pid1;
pid_t pid2;
pid1 = fork();
pid2 = fork();
printf("pid1:%d, pid2:%d\n", pid1, pid2);
}

    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ