Mini2440ÒÆÖ²Ncurses¿â£¨Ò»£©
×÷ÕßÇ°Ò»¶Îʱ¼äÒ»Ö±ÔÚÑо¿LinuxϵÄNcurses±à³Ì£¨Èç¹ûÄ㻹²»ÖªµÀʲôÊÇncursesÄÇ ÄãÓ¦¸ÃÖªµÀCurses£¬Èç¹ûÕâ¸öÄ㻹²»ÖªµÀµÄ»°£¬×ÔÐÐgoogleÖ®£©£¬Ò²ËãÊÇСÓÐÐĵÃÁË¡£µ« ÊǺܲ»ÐÒ£¬ÎҵijÌÐòÒª·Åµ½Ç¶Èëʽƽ̨ÉÏÃæÔËÐУ¬¸ü²»ÐÒµÄÊÇÎÒÃDzÉÓõÄFriendly ARM Mini2440ƽ̨µÄ½»²æ±àÒëÆ÷ÊDz»°üº¬Õâ¸ö¿âµÄ¡£ËùÒÔ½«±ê×¼µÄNcurses¿âÒÆÖ²¹ýÈ¥Ò²¾ÍºÜ ÓбØÒªÁË¡£
ÏȽéÉÜÒÆÖ²µÄ»·¾³£¬Õâ¸ö¿ÉÒÔÔÚǶÈëʽ¿ª·¢Öзdz£ÖØÒªµÄÒ»µã¡£ÔÚÒÆÖ²2.4Äں˵½ Mini2440¿ª·¢°åÉϲ»³É¹¦Ö®ºóÎÒÊÇÉîÓÐÌå»á¡£
»·¾³Ò»£ºLinuxËÞÖ÷Ö÷»úÓõÄÊÇRHEL6£i686£¬ÐéÄâ»úÓõÄÊÇVMware6.5£¬Ä¿±ê¿ª·¢°åFriendly
ARM 2440£¬2.6.32µÄÄںˣ¬»¹Ëã±È½ÏУ¬x35µÄLCD¡£½»²æ±àÒëÆ÷ÓõÄÊǹٷ½ÌṩµÄ
arm-linux-gcc-4.3.2¡£NcursesÓõÄÊÇ×î½üµÄncurses-5.7£¬ÎÒϲ»¶±È½ÏеĶ«Î÷:-)
»·¾³¶þ£ºÔÚVMware6.5, RH9(2.4), Magic2410ʵÑéÏäÉÏÎÒÒ²ÒÆÖ²³É¹¦ÁË¡£¶þÕߵķ½·¨·Ç³£ÀàËÆ£¬×î
´óµÄ²»Í¬Ö®´¦¿ÉÄܾÍÊǽ»²æ±àÒëÆ÷²»Ò»Ñù£¨ÆäʵÈç¹û³ýÈ¥´î½¨½»²æ±àÒë»·¾³µÄ¹ý³ÌÆäËüµÄ
²½Ö趼ÊÇÒ»ÑùµÄ£¬ÔÚºóÃæÎÒ»áÌáʾµÄ¡£²»¹ýÎÒ¾õµÃ»¹ÊÇаæµÄϵͳºÍ¿ª·¢°å¸ü¹ýñ«£¬¹þ¹þ£©¡£
ĿǰΪֹ£¬ÎÒÃǼÙÉèÒѾÓÐÁË»·¾³Ò»µÄ¿ª·¢»·¾³²¢ÇÒ½»²æ±àÒëÆ÷°²×°ÔÚ /usr/local/arm/4.3.2/Ŀ¼ÏÂÃæ±¾ÎĵĺóÃ沿·Ö½«»áÒÔ´ËΪ±³¾°½²ÊöÕû¸öÒÆÖ²¹ý³Ì£¬ÔÚ ²¿·ÖµØ·½Õë¶Ô»·¾³¶þ¼ÓÒÔ×¢½â¡£
¼ÙÉèÄãÒѾÔÚij´¦½âѹÁËncurses-5.7µÄÔ´Âë°ü¡£
1. Ê×ÏȽøÈëÔ´ÂëĿ¼
# cd ncurses-5.7
2. Configure it!
# ./configure CC=arm-linux-gcc --host --arm-linux --target=arm-linux --enable-widec --with-shared --prefix=/usr/local/arm/4.3.2
ÕâÀï¶ÔconfigureµÄ²ÎÊý¼ÓÒÔ˵Ã÷£¬ÕâÄܹ»°ïÖúÄã¸üºÃµÄÀí½âÕâ¸ö±àÒëµÄ¹ý³ÌºÍϸ½Ú£¬Ò²·½ ±ã¸ù¾ÝÄã×Ô¼ºµÄ»·¾³±àÒëNcurses¿â£¨µ±È»Ò²°üÀ¨ÆäËüÈí¼þ£©¡£
CC=arm-linux-gcc
Ö¸¶¨±àÒë¹ý³ÌÖÐʹÓõıàÒëÆ÷£¬Ò²¾ÍÊÇÎÒÃÇÓõ½µÄ½»²æ±àÒë Æ÷¡£Èç¹ûÊÇÔÚ»·¾³¶þÏ£¬ÄãÓ¦¸Ã½«arm-linux-gccÔö¼Óµ½Á˵±Ç°»·¾³±äÁ¿Ö®ÖУ¬ËùÒÔÄã²»±Ø ¹ý¶àµÄµ£ÐÄÕâ¸ö²ÎÊý»á¶ÔÄãʹÓõıàÒëÆ÷ÎÞЧ¡£
--host
Èç¹ûûÓÐÕâ¸ö²ÎÊý£¬configure¹ý³Ì»á³ö´í£¬²¢ÌáʾÄãÈç¹ûʹÓÃÁ˽»²æ±à Ò빤¾ßÔÚconfigureµÄʱºòÌí¼Ó--host²ÎÊý£¬
arm-linux
Õâ¸öÎÒ¾õµÃÓ¦¸ÃÊÇÖ¸¶¨³ÌÐòÔÚarm´¦ÀíÆ÷ÏÂÔËÐУ¨ÓдíÇëÖ¸ ³ö£©¡£ÔÚ»·¾³¶þÏ ÓеÄÎÄÕÂ˵ҪʹÓÃarch=armÀ´±íÃ÷δÀ´µÄ´úÂëÊÇÔÚarm´¦ÀíÆ÷ÏÂÃæʹ Óõģ¬µ« ÊÇÔÚ»·¾³Ò» ÏÂÃæÕâÑù×öÊǸö´íÎó¡£µ±È»Èç¹ûÄãµÄ»·¾³¶þÏÂÃæµÄ»°£¬¾ÍÇëʹ Óà arch=arm´úÌæarm-linux Õâ¸ö²ÎÊý£¬·´ÕýÎÒÊÇÕâô¾õµÃµÄ£¬Ã»ÓÐÀíÓÉ¡£
--target=arm-linux
¸öÈ˸оõÊÇÖ¸¶¨Ä¿±êϵͳ°É¡£¾ßÌåʲôÎÒÒ²²»Çå ³þ£¬·´Õý¼ÓÉϾͶÔÁË¡£¹þ¹þ¡£
--enable-widec
Õâ¸öÊÇÔ´Âë°üÀïÃæµÄ˵Ã÷¡£Èç¹ûÄãÏ£ÍûNcurses¿âÖ§³Ö¿í×Ö¼¯£¬Ò²¾ÍÊÇunicode×Ö·û¼¯£¬¼òµ¥Ò»µãÀ´Ëµ¾ÍÊÇÖ§³ÖÖÐÎÄ£¬±ÈÈçÔÚncurses£¬menu£¬formµÈÖ®ÖÐʹÓÃÖÐÎĵĻ°£¨ÓйØNcurses¿âÖ§³ÖÖÐÎĵķ½·¨ÎÒ»áÔÚÁíһƪÎÄÕÂÖÐ˵Ã÷£©£¬Äã×îºÃ¼ÓÉÏÕâ¸ö²ÎÊý¡£
--with-shared
¿ÉÄÜÓÃÀ´Ö¸Ã÷ÒªÉú³É¹²Ïí¿â°É¡£ÎÒ²»Çå³þ£¬¼ÓÉÏû´í¡£
--prefix=/usr/local/arm/4.3.2
Ö¸Ã÷ÄãµÄ±àÒëÆ÷°²×°ÔÚÄÄÀï¡£ÒòΪ½»²æ±àÒë¹ý³ÌÖÐÓõ½µÄ¶¯Ì¬»òÕß¾²Ì¬¿âµÄÖ¸Á¶¼ÊÇÕë¶Ô¼ÄÖ÷´¦ÀíÆ÷£¨¿ÉÒÔÈÏΪÊÇarm´¦ÀíÆ÷»òÕßÊÇÆäËüʲôµÄ£¬·´Õý¾Í²»ÊÇÕë¶ÔÄãËÞÖ÷PC£¬ËùÒÔÕâÒ²ÊÇΪʲôҪ½øÐн»²æ±àÒëµÄÔÒò£©¡£ÕâÀïÒªÌرð×¢ÒâµÄÊDz»ÒªÐ´³É/usr/local/arm/4.3.2/ÒòΪÕâÑù»áʹ°²×°Â·¾¶±ä³É/usr/local/arm/4.3.2//£¬Ò²¾ÍÊÇ˵ÔÚonfigureµÄ¹ý³ÌÖлá×Ô¶¯ÔÚĩβÌí¼ÓÒ»¸ö·´Ð±¸Ü¡£
È»ºóÖն˴òÓ¡´óÁ¿ÅäÖÃÐÅÏ¢,×îºó¼¸ÐÐ˵Ã÷ÁËncurses¹¤¾ß¡¢Í·Îļþ¡¢¿âÎļþ¡¢°ïÖúÎĵµºÍÖÕ¶ËÐÅÏ¢°²×°ÔÚÄĸöĿ¼ÏÂ
3. ¿ªÊ¼make²¢°²×°
# make HOSTCC=gcc CXX=arm-linux-c++ && make install
ÖÁ´ËÎÒÃǵÄÒÆÖ²¹ý³ÌËãÊÇÍê³ÉÁËÒ»°ë¡£Ò²¾ÍÊÇÔÚ¸ø½»²æÆ÷¼ÓÈëÁËÊʺÏMini2440ʹÓõĿ⣬ Äܹ»È«ÎÒÃÇÕý³£µÄ½»²æ±àÒëÎÒÃǵÄncurses´úÂë¡£ÏÂһƪÎÄÕÂÎÒÃǽ«»á½²ÊöÈçºÎÔÚMini2440ÉÏʹÎÒ ÃǵijÌÐòÕý³£ÔËÐС£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ