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

Linux¶¯Ì¬¿â(.so)ËÑË÷·¾¶

ÔÚLinux ÖУ¬¶¯Ì¬¿âµÄËÑË÷·¾¶³ýÁËĬÈϵÄËÑË÷·¾¶Í⣬»¹¿Éͨ¹ýÈýÖÖ·½·¨À´Ö¸¶¨£º·½·¨Ò»£ºÔÚÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨¶þ£ºÍ¨¹ý»·¾³±äÁ¿LD_LIBRARY_PATHÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨Èý£ºÔÚ±àÒëÄ¿±ê´úÂëʱָ¶¨¸Ã³ÌÐòµÄ¶¯Ì¬¿âËÑË÷·¾¶¡£
ÖÚËùÖÜÖª£¬Linux¶¯Ì¬¿âµÄĬÈÏËÑË÷·¾¶ÊÇ/libºÍ/usr/lib¡£¶¯Ì¬¿â±»´´½¨ºó£¬Ò»°ã¶¼¸´ÖƵ½ÕâÁ½¸öĿ¼ÖС£µ±³ÌÐòÖ´ÐÐʱÐèҪij¶¯Ì¬¿â£¬²¢ÇҸö¯ ̬¿â»¹Î´¼ÓÔص½ÄÚ´æÖУ¬Ôòϵͳ»á×Ô¶¯µ½ÕâÁ½¸öĬÈÏËÑË÷·¾¶ÖÐÈ¥²éÕÒÏàÓ¦µÄ¶¯Ì¬¿âÎļþ£¬È»ºó¼ÓÔظÃÎļþµ½ÄÚ´æÖУ¬ÕâÑù³ÌÐò¾Í¿ÉÒÔʹÓøö¯Ì¬¿âÖеĺ¯Êý£¬ÒÔ¼°¸Ã¶¯Ì¬¿âµÄÆäËü×ÊÔ´ÁË¡£ÔÚLinux ÖУ¬¶¯Ì¬¿âµÄËÑË÷·¾¶³ýÁËĬÈϵÄËÑË÷·¾¶Í⣬»¹¿ÉÒÔͨ¹ýÒÔÏÂÈýÖÖ·½·¨À´Ö¸¶¨¡£
·½·¨Ò»£ºÔÚÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶¡£
¿ÉÒÔͨ¹ý±à¼­ÅäÖÃÎļþ/etc/ld.so.confÀ´Ö¸¶¨¶¯Ì¬¿âµÄËÑË÷·¾¶£¬¸ÃÎļþÖÐÿÐÐΪһ¸ö¶¯Ì¬¿âËÑË÷·¾¶¡£Ã¿´Î±à¼­Íê¸ÃÎļþºó£¬¶¼±ØÐëÔËÐÐÃüÁîldconfigʹÐ޸ĺóµÄÅäÖÃÉúЧ¡£ÎÒÃÇͨ¹ýÀý1À´ËµÃ÷¸Ã·½·¨¡£
Àý1£º
ÎÒÃÇͨ¹ýÒÔÏÂÃüÁîÓÃÔ´³ÌÐòpos_conf.c£¨¼û³ÌÐò1£©À´´´½¨¶¯Ì¬¿â libpos.so£¬Ïêϸ´´½¨¹ý³ÌÇë²Î¿¼ÎÄ[1]¡£
# gcc -c pos_conf.c
          # gcc -shared -fPCI -o libpos.so pos_conf.o
          #
#include <stdio.h>
           void pos()
           {
                  printf("/root/test/conf/lib\n");
           }
            ³ÌÐò1: pos_conf.c
½Ó×Åͨ¹ýÒÔÏÂÃüÁî±àÒëmain.c£¨¼û³ÌÐò2£©Éú³ÉÄ¿±ê³ÌÐòpos¡£
# gcc -o pos main.c -L. -lpos
           #
void pos();
          int main()
          {
               pos();
   &nb


Ïà¹ØÎĵµ£º

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

Linuxϵķɸë¼òÒªÉè¼Æ¿ò¼Ü


ÒÔÏÂÊÇÎÒ´Ó±ðµÄblogÉÏתÔصÄ, ¹ØÓÚLinuxϵķɸë¼òÒªÉè¼Æ¿ò¼Ü, Ö®ËùÒÔ˵ÊÇLinuxϵÄ, ÒòΪ´úÂëÊÇLinuxϵÄ. µ«ÊÇ, Éè¼Æ¿ò¼Ü½«×ñÑ­windows°æ·É¸ë´«ÊéµÄЭÒéºÍ¿ò¼Ü.Êý¾Ý°ü¸ñʽ£º
°æ±¾ºÅ£º°ü±àºÅ£ºÓû§Ãû£º»úÆ÷Ãû£ºÃüÁî×Ö£º¸½¼ÓÐÅÏ¢
Èç  1£º2067943£ºliu £ºd14£º32£ºhello
ÒÔÉÏÊÇÒ»¸ö·¢ËÍÏûÏ¢µÄÊý¾Ý°ü¸ñʽ ......

Linux 2.6.19.x Äں˱àÒëÅäÖÃÑ¡Ïî¼ò½é

Linux 2.6.19.x Äں˱àÒëÅäÖÃÑ¡Ïî¼ò½é
×÷Õߣº½ð²½¹ú
Code maturity level options
´úÂë³ÉÊì¶ÈÑ¡Ïî
Prompt for development and/or incomplete code/drivers ÏÔʾÉÐÔÚ¿ª·¢ÖлòÉÐδÍê³ÉµÄ´úÂëÓëÇý¶¯.³ý·ÇÄãÊDzâÊÔÈËÔ±»òÕß¿ª·¢Õß,·ñÔòÇëÎðÑ¡Ôñ
General setup
³£¹æÉèÖÃ
Local version - append to kernel release ÔÚÄÚº ......

LinuxÖ®¸¸(ÀîÄÉ˹·ÍÐÎÖ×È/Linus Torvalds)

×ÔÓÉÈí¼þ Linux Ö®¸¸£ºÀîÄÉ˹·ÍÐÎÖ×È(Linus Torvalds)
¡¡¡¡µ¼Ó28ËêµÄ·ÒÀ¼ÇàÄêÀîÄÉ˹´´ÔìÁËÒ»¸öȫеÄÊÀ½ç£º¾ÍÊÇÒ»ÖÖÃûΪLinuxµÄ²Ù×÷ϵͳ¡£ËüËù²úÉúµÄÁ¦Á¿¾ö¶¨Á˱à³ÌÁìÓòµÄзÕΧ£¬ÕýÈçÎÒÃǵĻ·¾³¾ö¶¨Á˶¯Ö²ÎïµÄÌØÐÔÒ»Ñù¡£´´Ôì¼ò½àÓÅÑŵijÌÐò£¬Ð´³ö¸É¾»¶øÎÞÈß³¤µÄ´úÂ룬»òÕßÊdz¬Ò»Á÷µÄ³ÌÐò£¬¾Í×ãÒÔÓ®µÃͬÐÐÃǵÄ×ð ......

Linux ιʶø֪Р³£ÓòÙ×÷

¼Ç¼³£ÓòÙ×÷£º
Îļþ¼°Îļþ¼ÐÏà¹Ø
=======================================================================
Îļþ²Ù×÷(rm)£»
Îļþ¼Ð²Ù×÷£¨rmdir ɾ³ý¿ÕÎļþ£¬rm -rf Ŀ¼Ãûɾ³ý·Ç¿ÕÎļþ¼Ð£©;
ÎļþÒƶ¯£ºmv cp¶¼¿ÉÒÔ£»
½âѹËõ£ºtar 
¸ñʽ£º tar Ñ¡Ïî ÎļþĿ¼Áбí 
¹¦ÄÜ£º ¶ÔÎļþÄ¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ