ÔÚLinuxÏ°²×°OpenCV
¸ãÁËÈýÌìµÄOpenCVÖÕÓÚ°ÑÕâ¸öÀà¿â¼ÓÉÏÈ¥ÁË¡£Ô±¾ÊÇʹÓÃRed Hat Linux 9£¬µ«ÊÇÇ¿ÁÒ²»ÍƼö£¬ÒòΪ»ù±¾ÉϺܶàºÜ¶àµÄÈí¼þ¶¼ÒªÖØÐÂÉý¼¶¸üС£gcc±ØÐëÉý¼¶µ½4.x£¬ÔògmpºÍmpfrÒ²Òª¸üУ¬makeÒ²Òªµ½3.8°æ±¾£¬²¢ÇÒglibcÒ²±ØÐëÔÚ2.6°æ±¾¡£±àÒëgccʵÔÚÊÇÌ«Í´¿àÁË£¬ÎÞ±ÈÎޱȵÄÍ´¿à£¬ºÄʱ3¸ö¶àhours£¬»¹ÊÇÀ´Á˸öerror£¨glibc±ØÐëÉý¼¶£©¡£±àÒëgccÓÐÒ»µãҪעÒâµÄÊǽ«gmpºÍmpfr½âѹËõÔÚgccµÄsourceÎļþ¼ÐÏ£¬²¢ÇÒ½«Îļþ¼ÐÃû¸ÄΪgmpºÍmpfr£¬²»ÐèÒªconfigure£¬Ò²²»ÐèÒªmakeºÍmake install£¬ÔÚ°²×°gccÖлá×Ô¶¯×öµÄ¡£
glibcÊÇcÀà¿â£¬ÎÒÔÚmakeÖ®ºóÓÐerror£¬Ç¿ÐÐmake installÁË£¬½á¹ûµ¼ÖÂÕÒ²»µ½g++ÁË¡£·´Õý²»ÒªÇáÒ׳¢ÊÔ¡£
×îºó»¹ÊÇÑ¡ÓÃUbuntu Linux 8.04¡£²»¹ýҲҪװµã¶«Î÷µÄ¡£
°²×°UbuntuµÄ¹ý³ÌҲͦ¾À½áµÄ£¬±ØÐëÔÚÊÔÓõÄϵͳÀï°²×°£¬²¢ÇÒÔÚbootÀï¼Ó²ÎÊý¡£°´F6£¬ÔÚĩβ¼ÓÉÏnoreplace-paravirt¡£ÖØÐÂÆô¶¯VPC£¬ÕâÑùÄã¾Í¿ÉÒÔÕý³£Òýµ¼UbuntuϵͳÁË¡£½øÈëUbuntuÖ®ºó£¬ÄãÐèÒª²é¿´Ò»ÏÂGRUBµÄÒýµ¼²Ëµ¥ÊÇ·ñÌí¼ÓÁË“noreplace-paravirt”²ÎÊý£¬Èç¹ûûÓеĻ°£¬ÐèÒªÄãÌí¼ÓÉÏ¡£²»¹ýºÃÏñÈç¹ûÄã°´ÕÕÉÏÃæµÄ·½·¨°²×°ºÃUbuntuÖ®ºó£¬²ÎÊý¾ÍÒѾÌí¼ÓºÃÁË¡£
Ò»Çа²×°ÍêÖ®ºóÏÈÊǼ¤»îroot£¬ÖÕ¶ËÀïÃæ´òsudo passwd£¬ÊäÈ뵱ǰÓû§µÄÃÜÂëºÍеÄrootÃÜÂ룬Öظ´Ö®¡£È»ºóÊÇÉÏÍø£¬vpcÀïÃæÉèÖÃNATÉÏÍø·½Ê½£¬ÔÚlinuxϵͳÀïÃæÑ¡Ôñ×Ô¶¯»ñÈ¡ip£¨ÍøÂçÉèÖÃÀïÃæÑ¡µÚ¶þͼ±ê£©¡£
È»ºóô°²×°g++£¬Öնˣº
sudo apt-get install build-essential
È»ºó°²×°OpenCV£¬ÖÕ¶Ë
apt-get update
apt-get install libcv1 libcvaux1 libhighgui1 libcv-dev libcvaux-dev libhighgui-dev
´ó¸ÅÒªÏÂÔØ30¶àMµÄÎļþ£¬µÈÒ»»á¾ÍºÃÁË~
È»ºó½«OpenCVµÄÎļþ½âѹ£¬ÅäÖü°°²×°£º
tar –xvf Open*
cd Open*
./configure
Èç¹û³öÏÖnow run make±íʾûʲôÎÊÌ⣬Ȼºó¾ÍmakeÒÔ¼°make install£¨ÌáʾȨÏÞ²»¹»µÄ»°ÃüÁî֮ǰ¼Ósudo£©
ÎÒÊÇÒ»´Î³É¹¦µÄ~ûÓÐÎÊÌâ~¹þ¹þ~~
È»ºóÓÃÔÚ/etc/ld.so.confÎļþµÄĩβ¼ÓÒ»¾ä/usr/local/lib£¨ÁíÆðÒ»ÐУ¬²¢ÇÒʹÓÃrootÉí·Ý£©¡£
ÔÚÖÕ¶ËÖÐÖ´ÐÐsudo ldconfig¡£
È»ºó²âÊÔ°²×°ºÃµÄ¿â¡£
cd samples/c
g++ `pkg-config opencv --libs --cflags opencv` drawing.c -o drawing
ÒªÌرð×¢ÒâµÄÊÇpkg-configºÍopencvÖ®ºó¶¼ÓÐÒ»¸öµã£¬Î»ÓÚ¼üÅÌÉÏ1µÄ×ó±ßÄǸö£¬·ñÔò½«»áÏÔʾpkg-configÎÞ·¨ÕÒµ½¡£±àÒëÍêÖ®ºóÔËÐУº
./drawing
Èç¹ûÌáʾÓпâÕÒ²»µ½£¬Ôò˵Ã÷ld.so.confûÓмÓÄǾ仰
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
which Óï·¨ which command ˵Ã÷ ÒÀÐò´Ópath»·¾³±äÁ¿ËùÁеÄĿ¼ÖÐÕÒ³öcommandµÄλÖ㬲¢ÏÔʾÍêÕû·¾¶µÄÃû³Æ¡£ÔÚÕÒµ½µÚÒ»¸ö·ûºÏÌõ¼þµÄ³ÌÐòÎļþʱ£¬¾ÍÁ¢¿ÌÍ£Ö¹ËÑË÷£¬Ê¡ÂÔÆäÓàδËÑË÷Ŀ¼¡£ ·¶Àý£¬ÕÒ³ölsÃüÁîµÄ³ÌÐòÎļþµÄλÖ㺠which ls ϵͳÊä³ö£º /usr/bin/ls whereis Óï·¨ whereis [option] name ˵Ã÷ ÕÒ³öÌض¨ ......
±¾ÎÄÖ÷Òª°ÑÔÚʵÏÖ“linuxÄ£ÄâUÅ̹¦ÄÜ”¹ý³ÌÖеÄһЩµ÷ÊÔ¹ý³Ì¼Ç¼ÏÂÀ´£¬²¢¼ÓÒÔ½âÎö¡£
Ò»¡¢±³¾°ÖªÊ¶
1¡¢USB Mass StorageÀà¹æ·¶¸ÅÊö
USB ×éÖ¯ÔÚuniversal Serial Bus Mass Storage Class ......
ÏÂÊöÉèÖÃÒÔʱÖÓÔ´·þÎñÆ÷IPµØַΪ192.168.0.1ΪÀý¡£¿ÉÒÔÃüÁîntpstat ºÍ ntpq -p ²é¿´±¾»úNTPD·þÎñ״̬¡£ÅäÖÃÍê³Éºó£¬¾ùÐèÒªÖØÐÂÆô¶¯NTPD·þÎñ service ntpd restart
¡¾·þÎñÆ÷¶ËÉèÖá¿
1.½«/etc/ϵÄÎļþntp.confÐÞ¸ÄÈçÏ£º
server 127.127.1.0 minpoll 4 maxpoll 5 ......
±¾ÎÄÏêϸ½éÉÜÈçºÎ±àдһ¸öÏÔ¿¨µÄÇý¶¯³ÌÐò¡£
framebuffer
deviceÔÚÄÚºËÀïÃæ×÷ΪÏÔ¿¨Çý¶¯Ä£ÐÍ£¬Ðí¶àº¯ÊýºÍÊý¾Ý½á¹¹¶¼ÊÇÌض¨£¬ÕýÊÇÕâЩÌض¨µÄ¶«Î÷ΪÎÒÃǵıà³ÌÌṩÁË·½±ã¡£
Òª¿ª·¢frame buffer
deviceÇý¶¯£¬ÄãÓ¦¸ÃÔĶÁSource\Source\Documentation\fbÏÂÃæµÄ˵Ã÷Îļþ£¬Èý¸öÖØÒªÎļþ00-
INDEX£¬framebuffer.txt£¬internal ......