ÔÚ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ûÓмÓÄǾ仰
Ïà¹ØÎĵµ£º
×î½üÔÚѧϰlinux ½ñÌì°Ñ¼ÜÉèlinux samba·þÎñÆ÷µÄ·½·¨Ð´³öÀ´ »¶Ó´ó¼ÒÌÖÂÛºÍÖ¸µã
±¾»úÊÇÐéÄâ»úºÍwinxp½øÐвâÊÔ£¬ÐéÄâ»úµØÖ·ÊÇ192.168.1.144 Ö÷»úµØÖ·ÊÇ192.168.1.10.Á½ÕßÊÇ¿ÉÒÔ»¥Í¨µÄ¡£
Ê×ÏÈÎÒÃÇÏÈ×ölinuxϵÄÅäÖÃ
Ò». Ê×ÏÈҪȷ¶¨linuxÊÇ·ñ°²×°ÁËsmb
[root@localhost zy]#rpm -qa | grep samba
samba-2.2.5-10
samba-s ......
ÔÚ32λƽ̨ÉϱàÒ붯̬¿âûÓÐɶÎÊÌ⣬Äõ½x86_64λƽ̨ÉϱàÒëʱ³öÏÖÁËÎÊÌâ¡£
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
ÕÕ×ÅÌáʾ±àÒë´úÂëµÄʱºò¼ÓÈë -fPICÑ¡Ïî¾Íok.
......
±¾ÎÄÏêϸ½éÉÜÈçºÎ±àдһ¸öÏÔ¿¨µÄÇý¶¯³ÌÐò¡£
framebuffer
deviceÔÚÄÚºËÀïÃæ×÷ΪÏÔ¿¨Çý¶¯Ä£ÐÍ£¬Ðí¶àº¯ÊýºÍÊý¾Ý½á¹¹¶¼ÊÇÌض¨£¬ÕýÊÇÕâЩÌض¨µÄ¶«Î÷ΪÎÒÃǵıà³ÌÌṩÁË·½±ã¡£
Òª¿ª·¢frame buffer
deviceÇý¶¯£¬ÄãÓ¦¸ÃÔĶÁSource\Source\Documentation\fbÏÂÃæµÄ˵Ã÷Îļþ£¬Èý¸öÖØÒªÎļþ00-
INDEX£¬framebuffer.txt£¬internal ......
Ò»¡¢Linux device driver µÄ¸ÅÄî
ϵͳµ÷ÓÃÊDzÙ×÷ϵͳÄں˺ÍÓ¦ÓóÌÐòÖ®¼äµÄ½Ó¿Ú£¬É豸Çý¶¯³ÌÐòÊDzÙ×÷ϵͳÄں˺ͻúÆ÷Ó²¼þÖ®¼äµÄ½Ó¿Ú¡£É豸Çý¶¯³ÌÐòΪӦÓóÌÐòÆÁ±ÎÁËÓ²¼þµÄϸ½Ú£¬ÕâÑùÔÚÓ¦ÓóÌ
Ðò¿´À´£¬Ó²¼þÉ豸ֻÊÇÒ»¸öÉ豸Îļþ£¬Ó¦ÓóÌÐò¿ÉÒÔÏó²Ù×÷ÆÕͨÎļþÒ»Ñù¶ÔÓ²¼þÉ豸½øÐвÙ×÷¡£Éè±¸Ç ......
ÒÔÇ°×ÜÊÇÒÔΪֻÓÐwindowsÒ»ÖÖ²Ù×÷ϵͳ£¬ºóÀ´Ìý˵ÁËUnix¡¢LinuxºÍMacOSµÈ£¬²ÅÖªµÀÔÀ´²Ù×÷ϵͳµÄÖÖÀ໹ÊÇͦ¶àµÄ¡£ÓùßÁËwindows£¬¾ÍÏëÊÔÏÂÆäËûµÄ²Ù×÷ϵͳ£¬Ïë¿´¿´ÎªÊ²Ã´windows»á½øÈëǧ¼ÒÍò»§£¬¶øLinuxûÓС£ËùÒÔ£¬×òÌ죬»¨ÁË5¿éÇ®£¬×Ô¼º×°Á˸öred hat enterprise Linux server 5.4°æ£¨±¾À´Ï ......