Installation:
- lets create a virtual environment with name ‘opencv’
1234567891011teddy@teddy-K43SJ:~$ mkvirtualenv opencvUsing base prefix '/usr'New python executable in /home/teddy/.virtualenvs/opencv/bin/python3Also creating executable in /home/teddy/.virtualenvs/opencv/bin/pythonInstalling setuptools, pip, wheel...done.virtualenvwrapper.user_scripts creating /home/teddy/.virtualenvs/opencv/bin/predeactivatevirtualenvwrapper.user_scripts creating /home/teddy/.virtualenvs/opencv/bin/postdeactivatevirtualenvwrapper.user_scripts creating /home/teddy/.virtualenvs/opencv/bin/preactivatevirtualenvwrapper.user_scripts creating /home/teddy/.virtualenvs/opencv/bin/postactivatevirtualenvwrapper.user_scripts creating /home/teddy/.virtualenvs/opencv/bin/get_env_details(opencv) teddy@teddy-K43SJ:~$
A FEW VIRTUALENV COMMANDS:
a. Leave/exit virtualenv opencv, use ‘deactivate opencv’
12(opencv) teddy@teddy-K43SJ:~$ deactivate opencvteddy@teddy-K43SJ:~$
b. Go to or get into virtualenv opencv, use ‘workon opencv’
12teddy@teddy-K43SJ:~$ workon opencv(opencv) teddy@teddy-K43SJ:~$
c. Remove/delete virtualenv pls use rmvirtualenv <virtualenv name>. BUT PLS DEACTIVATE FIRST BEFORE REMOVING
for example:
123(opencv_p27_cuda) teddy@teddy-K43SJ:~$ deactivateteddy@teddy-K43SJ:~$ rmvirtualenv opencv_p27_cudaRemoving opencv_p27_cuda...
- COMPILE AND INSTALL OPENCV 3 LIB FOR PYTHON 3
ref:http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/
http://askubuntu.com/questions/94102/what-is-the-difference-between-apt-get-update-and-upgrade
http://milq.github.io/install-opencv-ubuntu-debian/
1. Install prerequisites
12teddy@teddy-K43SJ:~$ sudo apt-get updateteddy@teddy-K43SJ:~$ sudo apt-get upgrade
2. Install developer tools used to compile OpenCV 3.0:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152teddy@teddy-K43SJ:~$ sudo apt-get install build-essential cmake git pkg-configReading package lists... DoneBuilding dependency treeReading state information... Donebuild-essential is already the newest version.pkg-config is already the newest version.pkg-config set to manually installed.git is already the newest version.git set to manually installed.The following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.The following extra packages will be installed:cmake-dataSuggested packages:codeblocks eclipseThe following NEW packages will be installed:cmake cmake-data0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.Need to get 3.294 kB of archives.After this operation, 16,6 MB of additional disk space will be used.Do you want to continue? [Y/n] YGet:1 http://kambing.ui.ac.id/ubuntu/ trusty/main cmake-data all 2.8.12.2-0ubuntu3 [676 kB]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty/main cmake amd64 2.8.12.2-0ubuntu3 [2.618 kB]Fetched 3.294 kB in 5s (651 kB/s)Selecting previously unselected package cmake-data.(Reading database ... 443945 files and directories currently installed.)Preparing to unpack .../cmake-data_2.8.12.2-0ubuntu3_all.deb ...Unpacking cmake-data (2.8.12.2-0ubuntu3) ...Selecting previously unselected package cmake.Preparing to unpack .../cmake_2.8.12.2-0ubuntu3_amd64.deb ...Unpacking cmake (2.8.12.2-0ubuntu3) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Setting up cmake-data (2.8.12.2-0ubuntu3) ...Setting up cmake (2.8.12.2-0ubuntu3) ...
3. Install libraries and packages used to read various image formats from disk:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990teddy@teddy-K43SJ:~$ sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-devReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.The following extra packages will be installed:libjbig-dev libjpeg-turbo8-dev liblzma-dev libtiff5-dev libtiffxx5zlib1g-devSuggested packages:liblzma-docThe following NEW packages will be installed:libjasper-dev libjbig-dev libjpeg-turbo8-dev libjpeg8-dev liblzma-devlibpng12-dev libtiff4-dev libtiff5-dev libtiffxx5 zlib1g-dev0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.Need to get 1.567 kB of archives.After this operation, 5.424 kB of additional disk space will be used.Do you want to continue? [Y/n] YGet:1 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libtiffxx5 amd64 4.0.3-7ubuntu0.3 [5.624 B]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libjbig-dev amd64 2.0-2ubuntu4.1 [6.268 B]Get:3 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libjasper-dev amd64 1.900.1-14ubuntu3.3 [519 kB]Get:4 http://kambing.ui.ac.id/ubuntu/ trusty/main libjpeg-turbo8-dev amd64 1.3.0-0ubuntu2 [242 kB]Get:5 http://kambing.ui.ac.id/ubuntu/ trusty/main libjpeg8-dev amd64 8c-2ubuntu8 [1.552 B]Get:6 http://kambing.ui.ac.id/ubuntu/ trusty/main zlib1g-dev amd64 1:1.2.8.dfsg-1ubuntu1 [183 kB]Get:7 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libpng12-dev amd64 1.2.50-1ubuntu2.14.04.2 [206 kB]Get:8 http://kambing.ui.ac.id/ubuntu/ trusty/main liblzma-dev amd64 5.1.1alpha+20120614-2ubuntu2 [137 kB]Get:9 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libtiff5-dev amd64 4.0.3-7ubuntu0.3 [263 kB]Get:10 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libtiff4-dev amd64 4.0.3-7ubuntu0.3 [2.348 B]Fetched 1.567 kB in 4s (356 kB/s)Selecting previously unselected package libtiffxx5:amd64.(Reading database ... 444643 files and directories currently installed.)Preparing to unpack .../libtiffxx5_4.0.3-7ubuntu0.3_amd64.deb ...Unpacking libtiffxx5:amd64 (4.0.3-7ubuntu0.3) ...Selecting previously unselected package libjbig-dev:amd64.Preparing to unpack .../libjbig-dev_2.0-2ubuntu4.1_amd64.deb ...Unpacking libjbig-dev:amd64 (2.0-2ubuntu4.1) ...Selecting previously unselected package libjasper-dev.Preparing to unpack .../libjasper-dev_1.900.1-14ubuntu3.3_amd64.deb ...Unpacking libjasper-dev (1.900.1-14ubuntu3.3) ...Selecting previously unselected package libjpeg-turbo8-dev:amd64.Preparing to unpack .../libjpeg-turbo8-dev_1.3.0-0ubuntu2_amd64.deb ...Unpacking libjpeg-turbo8-dev:amd64 (1.3.0-0ubuntu2) ...Selecting previously unselected package libjpeg8-dev:amd64.Preparing to unpack .../libjpeg8-dev_8c-2ubuntu8_amd64.deb ...Unpacking libjpeg8-dev:amd64 (8c-2ubuntu8) ...Selecting previously unselected package zlib1g-dev:amd64.Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ...Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1) ...Selecting previously unselected package libpng12-dev.Preparing to unpack .../libpng12-dev_1.2.50-1ubuntu2.14.04.2_amd64.deb ...Unpacking libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...Selecting previously unselected package liblzma-dev:amd64.Preparing to unpack .../liblzma-dev_5.1.1alpha+20120614-2ubuntu2_amd64.deb ...Unpacking liblzma-dev:amd64 (5.1.1alpha+20120614-2ubuntu2) ...Selecting previously unselected package libtiff5-dev:amd64.Preparing to unpack .../libtiff5-dev_4.0.3-7ubuntu0.3_amd64.deb ...Unpacking libtiff5-dev:amd64 (4.0.3-7ubuntu0.3) ...Selecting previously unselected package libtiff4-dev:amd64.Preparing to unpack .../libtiff4-dev_4.0.3-7ubuntu0.3_amd64.deb ...Unpacking libtiff4-dev:amd64 (4.0.3-7ubuntu0.3) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Setting up libtiffxx5:amd64 (4.0.3-7ubuntu0.3) ...Setting up libjbig-dev:amd64 (2.0-2ubuntu4.1) ...Setting up libjasper-dev (1.900.1-14ubuntu3.3) ...Setting up libjpeg-turbo8-dev:amd64 (1.3.0-0ubuntu2) ...Setting up libjpeg8-dev:amd64 (8c-2ubuntu8) ...Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1) ...Setting up libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...Setting up liblzma-dev:amd64 (5.1.1alpha+20120614-2ubuntu2) ...Setting up libtiff5-dev:amd64 (4.0.3-7ubuntu0.3) ...Setting up libtiff4-dev:amd64 (4.0.3-7ubuntu0.3) ...Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
4. Install a few libraries used to read video formats from disk: (GOT ERROR)
12345678910111213teddy@teddy-K43SJ:~$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-devReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies:libswscale-dev : Depends: libswscale2 (= 6:9.18-0ubuntu0.14.04.1) but 6:9.18-0ubuntu0.14.04.1+fdkaac is to be installedE: Unable to correct problems, you have held broken packages.
SKIP???
OK HERE IS THE SOLUTION:
(ref:http://askubuntu.com/questions/691109/how-do-i-install-ffmpeg-and-codecs)
Install ffmpeg and the codecs:
12345sudo add-apt-repository ppa:mc3man/trusty-mediasudo apt-get updatesudo apt-get install ffmpeg gstreamer0.10-ffmpegRepeat the above:sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
Re-run ‘sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev’. SHOULD WORKS NOW!!!e. Install GUI libs: (ref:http://milq.github.io/install-opencv-ubuntu-debian/)
12345678910111213141516teddy@teddy-K43SJ:~$ sudo apt-get install qt5-default libvtk6-devReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies:gnome-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installedDepends: libcheese7 (>= 3.0.1) but it is not going to be installedunity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installedDepends: libcheese7 (>= 3.0.1) but it is not going to be installedE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.SOLUTION: Install Lib GTK so we can use OpenCV’s GUI features:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328teddy@teddy-K43SJ:~$ sudo apt-get install libgtk2.0-devReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.The following extra packages will be installed:debhelper dh-apparmor gir1.2-gtk-2.0 libatk1.0-devlibcairo-script-interpreter2 libcairo2-dev libexpat1-dev libfontconfig1-devlibfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libharfbuzz-devlibharfbuzz-gobject0 libice-dev libmail-sendmail-perl libpango1.0-devlibpcre3-dev libpixman-1-dev libpthread-stubs0-dev libsm-devlibsys-hostname-long-perl libx11-dev libx11-doc libxau-devlibxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-devlibxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-devlibxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev po-debconfx11proto-composite-dev x11proto-core-dev x11proto-damage-devx11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-devx11proto-render-dev x11proto-xext-dev x11proto-xinerama-devxorg-sgml-doctools xtrans-devSuggested packages:dh-make apparmor-easyprof libcairo2-doc libglib2.0-doc libgtk2.0-doclibice-doc libpango1.0-doc libsm-doc libxcb-doc libxext-doc libmail-box-perlThe following NEW packages will be installed:debhelper dh-apparmor gir1.2-gtk-2.0 libatk1.0-devlibcairo-script-interpreter2 libcairo2-dev libexpat1-dev libfontconfig1-devlibfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgtk2.0-devlibharfbuzz-dev libharfbuzz-gobject0 libice-dev libmail-sendmail-perllibpango1.0-dev libpcre3-dev libpixman-1-dev libpthread-stubs0-dev libsm-devlibsys-hostname-long-perl libx11-dev libx11-doc libxau-devlibxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-devlibxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-devlibxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev po-debconfx11proto-composite-dev x11proto-core-dev x11proto-damage-devx11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-devx11proto-render-dev x11proto-xext-dev x11proto-xinerama-devxorg-sgml-doctools xtrans-dev0 upgraded, 52 newly installed, 0 to remove and 1 not upgraded.Need to get 12,1 MB of archives.After this operation, 69,0 MB of additional disk space will be used.Do you want to continue? [Y/n] YGet:1 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libcairo-script-interpreter2 amd64 1.13.0~20140204-0ubuntu1.1 [53,2 kB]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libharfbuzz-gobject0 amd64 0.9.27-1ubuntu1 [10,4 kB]Get:3 http://kambing.ui.ac.id/ubuntu/ trusty/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB]Get:4 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main dh-apparmor all 2.8.95~2430-0ubuntu5.3 [12,2 kB]Get:5 http://kambing.ui.ac.id/ubuntu/ trusty/main debhelper all 9.20131227ubuntu1 [604 kB]Get:6 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main gir1.2-gtk-2.0 amd64 2.24.23-0ubuntu1.4 [172 kB]Get:7 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libpcre3-dev amd64 1:8.31-2ubuntu2.1 [237 kB]Get:8 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libglib2.0-dev amd64 2.40.2-0ubuntu1 [1.322 kB]Get:9 http://kambing.ui.ac.id/ubuntu/ trusty/main libatk1.0-dev amd64 2.10.0-2ubuntu2 [67,8 kB]Get:10 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libexpat1-dev amd64 2.1.0-4ubuntu1.1 [115 kB]Get:11 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libfreetype6-dev amd64 2.5.2-1ubuntu2.5 [621 kB]Get:12 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libfontconfig1-dev amd64 2.11.0-0ubuntu4.1 [664 kB]Get:13 http://kambing.ui.ac.id/ubuntu/ trusty/main xorg-sgml-doctools all 1:1.11-1 [12,9 kB]Get:14 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main x11proto-core-dev all 7.0.26-1~ubuntu2 [700 kB]Get:15 http://kambing.ui.ac.id/ubuntu/ trusty/main libxau-dev amd64 1:1.0.8-1 [11,1 kB]Get:16 http://kambing.ui.ac.id/ubuntu/ trusty/main libxdmcp-dev amd64 1:1.1.1-1 [26,9 kB]Get:17 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-input-dev all 2.3-1 [139 kB]Get:18 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-kb-dev all 1.0.6-2 [269 kB]Get:19 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main xtrans-dev all 1.3.5-1~ubuntu14.04.1 [70,3 kB]Get:20 http://kambing.ui.ac.id/ubuntu/ trusty/main libpthread-stubs0-dev amd64 0.3-4 [4.068 B]Get:21 http://kambing.ui.ac.id/ubuntu/ trusty/main libxcb1-dev amd64 1.10-2ubuntu1 [76,6 kB]Get:22 http://kambing.ui.ac.id/ubuntu/ trusty/main libx11-dev amd64 2:1.6.2-1ubuntu2 [629 kB]Get:23 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-render-dev all 2:0.11.1-2 [20,1 kB]Get:24 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libxrender-dev amd64 1:0.9.8-1build0.14.04.1 [23,8 kB]Get:25 http://kambing.ui.ac.id/ubuntu/ trusty/main libice-dev amd64 2:1.0.8-2 [57,6 kB]Get:26 http://kambing.ui.ac.id/ubuntu/ trusty/main libsm-dev amd64 2:1.2.1-2 [19,9 kB]Get:27 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libpixman-1-dev amd64 0.30.2-2ubuntu1.1 [240 kB]Get:28 http://kambing.ui.ac.id/ubuntu/ trusty/main libxcb-render0-dev amd64 1.10-2ubuntu1 [16,7 kB]Get:29 http://kambing.ui.ac.id/ubuntu/ trusty/main libxcb-shm0-dev amd64 1.10-2ubuntu1 [6.868 B]Get:30 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-xext-dev all 7.3.0-1 [212 kB]Get:31 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libxext-dev amd64 2:1.3.2-1ubuntu0.0.14.04.1 [81,2 kB]Get:32 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libcairo2-dev amd64 1.13.0~20140204-0ubuntu1.1 [574 kB]Get:33 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libgdk-pixbuf2.0-dev amd64 2.30.7-0ubuntu1.2 [43,0 kB]Get:34 http://kambing.ui.ac.id/ubuntu/ trusty/main libxft-dev amd64 2.3.1-2 [45,8 kB]Get:35 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libharfbuzz-dev amd64 0.9.27-1ubuntu1 [29,0 kB]Get:36 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libpango1.0-dev amd64 1.36.3-1ubuntu1.1 [278 kB]Get:37 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-xinerama-dev all 1.2.1-2 [4.966 B]Get:38 http://kambing.ui.ac.id/ubuntu/ trusty/main libxinerama-dev amd64 2:1.1.3-1 [8.404 B]Get:39 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-fixes-dev all 1:5.0-2ubuntu2 [14,2 kB]Get:40 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libxfixes-dev amd64 1:5.0.1-1ubuntu1.1 [10,8 kB]Get:41 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libxi-dev amd64 2:1.7.1.901-1ubuntu1.1 [184 kB]Get:42 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-randr-dev all 1.4.0+git20120101.is.really.1.4.0-0ubuntu1 [32,9 kB]Get:43 http://kambing.ui.ac.id/ubuntu/ trusty/main libxrandr-dev amd64 2:1.4.2-1 [22,6 kB]Get:44 http://kambing.ui.ac.id/ubuntu/ trusty/main libxcursor-dev amd64 1:1.1.14-1 [29,8 kB]Get:45 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-composite-dev all 1:0.4.2-2 [10,5 kB]Get:46 http://kambing.ui.ac.id/ubuntu/ trusty/main libxcomposite-dev amd64 1:0.4.4-1 [9.954 B]Get:47 http://kambing.ui.ac.id/ubuntu/ trusty/main x11proto-damage-dev all 1:1.2.1-2 [8.286 B]Get:48 http://kambing.ui.ac.id/ubuntu/ trusty/main libxdamage-dev amd64 1:1.1.4-1ubuntu1 [5.450 B]Get:49 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libgtk2.0-dev amd64 2.24.23-0ubuntu1.4 [2.563 kB]Get:50 http://kambing.ui.ac.id/ubuntu/ trusty/main libsys-hostname-long-perl all 1.4-3 [11,3 kB]Get:51 http://kambing.ui.ac.id/ubuntu/ trusty/main libmail-sendmail-perl all 0.79.16-1 [26,5 kB]Get:52 http://kambing.ui.ac.id/ubuntu/ trusty/main libx11-doc all 2:1.6.2-1ubuntu2 [1.448 kB]Fetched 12,1 MB in 19s (634 kB/s)Extracting templates from packages: 100%Selecting previously unselected package libcairo-script-interpreter2:amd64.(Reading database ... 444865 files and directories currently installed.)Preparing to unpack .../libcairo-script-interpreter2_1.13.0~20140204-0ubuntu1.1_amd64.deb ...Unpacking libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...Selecting previously unselected package libharfbuzz-gobject0:amd64.Preparing to unpack .../libharfbuzz-gobject0_0.9.27-1ubuntu1_amd64.deb ...Unpacking libharfbuzz-gobject0:amd64 (0.9.27-1ubuntu1) ...Selecting previously unselected package po-debconf.Preparing to unpack .../po-debconf_1.0.16+nmu2ubuntu1_all.deb ...Unpacking po-debconf (1.0.16+nmu2ubuntu1) ...Selecting previously unselected package dh-apparmor.Preparing to unpack .../dh-apparmor_2.8.95~2430-0ubuntu5.3_all.deb ...Unpacking dh-apparmor (2.8.95~2430-0ubuntu5.3) ...Selecting previously unselected package debhelper.Preparing to unpack .../debhelper_9.20131227ubuntu1_all.deb ...Unpacking debhelper (9.20131227ubuntu1) ...Selecting previously unselected package gir1.2-gtk-2.0.Preparing to unpack .../gir1.2-gtk-2.0_2.24.23-0ubuntu1.4_amd64.deb ...Unpacking gir1.2-gtk-2.0 (2.24.23-0ubuntu1.4) ...Selecting previously unselected package libpcre3-dev:amd64.Preparing to unpack .../libpcre3-dev_1%3a8.31-2ubuntu2.1_amd64.deb ...Unpacking libpcre3-dev:amd64 (1:8.31-2ubuntu2.1) ...Selecting previously unselected package libglib2.0-dev.Preparing to unpack .../libglib2.0-dev_2.40.2-0ubuntu1_amd64.deb ...Unpacking libglib2.0-dev (2.40.2-0ubuntu1) ...Selecting previously unselected package libatk1.0-dev.Preparing to unpack .../libatk1.0-dev_2.10.0-2ubuntu2_amd64.deb ...Unpacking libatk1.0-dev (2.10.0-2ubuntu2) ...Selecting previously unselected package libexpat1-dev:amd64.Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1.1_amd64.deb ...Unpacking libexpat1-dev:amd64 (2.1.0-4ubuntu1.1) ...Selecting previously unselected package libfreetype6-dev.Preparing to unpack .../libfreetype6-dev_2.5.2-1ubuntu2.5_amd64.deb ...Unpacking libfreetype6-dev (2.5.2-1ubuntu2.5) ...Selecting previously unselected package libfontconfig1-dev.Preparing to unpack .../libfontconfig1-dev_2.11.0-0ubuntu4.1_amd64.deb ...Unpacking libfontconfig1-dev (2.11.0-0ubuntu4.1) ...Selecting previously unselected package xorg-sgml-doctools.Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...Unpacking xorg-sgml-doctools (1:1.11-1) ...Selecting previously unselected package x11proto-core-dev.Preparing to unpack .../x11proto-core-dev_7.0.26-1~ubuntu2_all.deb ...Unpacking x11proto-core-dev (7.0.26-1~ubuntu2) ...Selecting previously unselected package libxau-dev:amd64.Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...Unpacking libxau-dev:amd64 (1:1.0.8-1) ...Selecting previously unselected package libxdmcp-dev:amd64.Preparing to unpack .../libxdmcp-dev_1%3a1.1.1-1_amd64.deb ...Unpacking libxdmcp-dev:amd64 (1:1.1.1-1) ...Selecting previously unselected package x11proto-input-dev.Preparing to unpack .../x11proto-input-dev_2.3-1_all.deb ...Unpacking x11proto-input-dev (2.3-1) ...Selecting previously unselected package x11proto-kb-dev.Preparing to unpack .../x11proto-kb-dev_1.0.6-2_all.deb ...Unpacking x11proto-kb-dev (1.0.6-2) ...Selecting previously unselected package xtrans-dev.Preparing to unpack .../xtrans-dev_1.3.5-1~ubuntu14.04.1_all.deb ...Unpacking xtrans-dev (1.3.5-1~ubuntu14.04.1) ...Selecting previously unselected package libpthread-stubs0-dev:amd64.Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...Selecting previously unselected package libxcb1-dev:amd64.Preparing to unpack .../libxcb1-dev_1.10-2ubuntu1_amd64.deb ...Unpacking libxcb1-dev:amd64 (1.10-2ubuntu1) ...Selecting previously unselected package libx11-dev:amd64.Preparing to unpack .../libx11-dev_2%3a1.6.2-1ubuntu2_amd64.deb ...Unpacking libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...Selecting previously unselected package x11proto-render-dev.Preparing to unpack .../x11proto-render-dev_2%3a0.11.1-2_all.deb ...Unpacking x11proto-render-dev (2:0.11.1-2) ...Selecting previously unselected package libxrender-dev:amd64.Preparing to unpack .../libxrender-dev_1%3a0.9.8-1build0.14.04.1_amd64.deb ...Unpacking libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...Selecting previously unselected package libice-dev:amd64.Preparing to unpack .../libice-dev_2%3a1.0.8-2_amd64.deb ...Unpacking libice-dev:amd64 (2:1.0.8-2) ...Selecting previously unselected package libsm-dev:amd64.Preparing to unpack .../libsm-dev_2%3a1.2.1-2_amd64.deb ...Unpacking libsm-dev:amd64 (2:1.2.1-2) ...Selecting previously unselected package libpixman-1-dev.Preparing to unpack .../libpixman-1-dev_0.30.2-2ubuntu1.1_amd64.deb ...Unpacking libpixman-1-dev (0.30.2-2ubuntu1.1) ...Selecting previously unselected package libxcb-render0-dev:amd64.Preparing to unpack .../libxcb-render0-dev_1.10-2ubuntu1_amd64.deb ...Unpacking libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...Selecting previously unselected package libxcb-shm0-dev:amd64.Preparing to unpack .../libxcb-shm0-dev_1.10-2ubuntu1_amd64.deb ...Unpacking libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...Selecting previously unselected package x11proto-xext-dev.Preparing to unpack .../x11proto-xext-dev_7.3.0-1_all.deb ...Unpacking x11proto-xext-dev (7.3.0-1) ...Selecting previously unselected package libxext-dev:amd64.Preparing to unpack .../libxext-dev_2%3a1.3.2-1ubuntu0.0.14.04.1_amd64.deb ...Unpacking libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...Selecting previously unselected package libcairo2-dev.Preparing to unpack .../libcairo2-dev_1.13.0~20140204-0ubuntu1.1_amd64.deb ...Unpacking libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...Selecting previously unselected package libgdk-pixbuf2.0-dev.Preparing to unpack .../libgdk-pixbuf2.0-dev_2.30.7-0ubuntu1.2_amd64.deb ...Unpacking libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...Selecting previously unselected package libxft-dev.Preparing to unpack .../libxft-dev_2.3.1-2_amd64.deb ...Unpacking libxft-dev (2.3.1-2) ...Selecting previously unselected package libharfbuzz-dev.Preparing to unpack .../libharfbuzz-dev_0.9.27-1ubuntu1_amd64.deb ...Unpacking libharfbuzz-dev (0.9.27-1ubuntu1) ...Selecting previously unselected package libpango1.0-dev.Preparing to unpack .../libpango1.0-dev_1.36.3-1ubuntu1.1_amd64.deb ...Unpacking libpango1.0-dev (1.36.3-1ubuntu1.1) ...Selecting previously unselected package x11proto-xinerama-dev.Preparing to unpack .../x11proto-xinerama-dev_1.2.1-2_all.deb ...Unpacking x11proto-xinerama-dev (1.2.1-2) ...Selecting previously unselected package libxinerama-dev:amd64.Preparing to unpack .../libxinerama-dev_2%3a1.1.3-1_amd64.deb ...Unpacking libxinerama-dev:amd64 (2:1.1.3-1) ...Selecting previously unselected package x11proto-fixes-dev.Preparing to unpack .../x11proto-fixes-dev_1%3a5.0-2ubuntu2_all.deb ...Unpacking x11proto-fixes-dev (1:5.0-2ubuntu2) ...Selecting previously unselected package libxfixes-dev:amd64.Preparing to unpack .../libxfixes-dev_1%3a5.0.1-1ubuntu1.1_amd64.deb ...Unpacking libxfixes-dev:amd64 (1:5.0.1-1ubuntu1.1) ...Selecting previously unselected package libxi-dev.Preparing to unpack .../libxi-dev_2%3a1.7.1.901-1ubuntu1.1_amd64.deb ...Unpacking libxi-dev (2:1.7.1.901-1ubuntu1.1) ...Selecting previously unselected package x11proto-randr-dev.Preparing to unpack .../x11proto-randr-dev_1.4.0+git20120101.is.really.1.4.0-0ubuntu1_all.deb ...Unpacking x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ...Selecting previously unselected package libxrandr-dev:amd64.Preparing to unpack .../libxrandr-dev_2%3a1.4.2-1_amd64.deb ...Unpacking libxrandr-dev:amd64 (2:1.4.2-1) ...Selecting previously unselected package libxcursor-dev:amd64.Preparing to unpack .../libxcursor-dev_1%3a1.1.14-1_amd64.deb ...Unpacking libxcursor-dev:amd64 (1:1.1.14-1) ...Selecting previously unselected package x11proto-composite-dev.Preparing to unpack .../x11proto-composite-dev_1%3a0.4.2-2_all.deb ...Unpacking x11proto-composite-dev (1:0.4.2-2) ...Selecting previously unselected package libxcomposite-dev.Preparing to unpack .../libxcomposite-dev_1%3a0.4.4-1_amd64.deb ...Unpacking libxcomposite-dev (1:0.4.4-1) ...Selecting previously unselected package x11proto-damage-dev.Preparing to unpack .../x11proto-damage-dev_1%3a1.2.1-2_all.deb ...Unpacking x11proto-damage-dev (1:1.2.1-2) ...Selecting previously unselected package libxdamage-dev:amd64.Preparing to unpack .../libxdamage-dev_1%3a1.1.4-1ubuntu1_amd64.deb ...Unpacking libxdamage-dev:amd64 (1:1.1.4-1ubuntu1) ...Selecting previously unselected package libgtk2.0-dev.Preparing to unpack .../libgtk2.0-dev_2.24.23-0ubuntu1.4_amd64.deb ...Unpacking libgtk2.0-dev (2.24.23-0ubuntu1.4) ...Selecting previously unselected package libsys-hostname-long-perl.Preparing to unpack .../libsys-hostname-long-perl_1.4-3_all.deb ...Unpacking libsys-hostname-long-perl (1.4-3) ...Selecting previously unselected package libmail-sendmail-perl.Preparing to unpack .../libmail-sendmail-perl_0.79.16-1_all.deb ...Unpacking libmail-sendmail-perl (0.79.16-1) ...Selecting previously unselected package libx11-doc.Preparing to unpack .../libx11-doc_2%3a1.6.2-1ubuntu2_all.deb ...Unpacking libx11-doc (2:1.6.2-1ubuntu2) ...Processing triggers for doc-base (0.10.5) ...Processing 4 added doc-base files...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...Setting up libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...Setting up libharfbuzz-gobject0:amd64 (0.9.27-1ubuntu1) ...Setting up po-debconf (1.0.16+nmu2ubuntu1) ...Setting up dh-apparmor (2.8.95~2430-0ubuntu5.3) ...Setting up debhelper (9.20131227ubuntu1) ...Setting up gir1.2-gtk-2.0 (2.24.23-0ubuntu1.4) ...Setting up libpcre3-dev:amd64 (1:8.31-2ubuntu2.1) ...Setting up libglib2.0-dev (2.40.2-0ubuntu1) ...Setting up libatk1.0-dev (2.10.0-2ubuntu2) ...Setting up libexpat1-dev:amd64 (2.1.0-4ubuntu1.1) ...Setting up libfreetype6-dev (2.5.2-1ubuntu2.5) ...Setting up libfontconfig1-dev (2.11.0-0ubuntu4.1) ...Setting up xorg-sgml-doctools (1:1.11-1) ...Setting up x11proto-core-dev (7.0.26-1~ubuntu2) ...Setting up libxau-dev:amd64 (1:1.0.8-1) ...Setting up libxdmcp-dev:amd64 (1:1.1.1-1) ...Setting up x11proto-input-dev (2.3-1) ...Setting up x11proto-kb-dev (1.0.6-2) ...Setting up xtrans-dev (1.3.5-1~ubuntu14.04.1) ...Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...Setting up libxcb1-dev:amd64 (1.10-2ubuntu1) ...Setting up libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...Setting up x11proto-render-dev (2:0.11.1-2) ...Setting up libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...Setting up libice-dev:amd64 (2:1.0.8-2) ...Setting up libsm-dev:amd64 (2:1.2.1-2) ...Setting up libpixman-1-dev (0.30.2-2ubuntu1.1) ...Setting up libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...Setting up libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...Setting up x11proto-xext-dev (7.3.0-1) ...Setting up libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...Setting up libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...Setting up libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...Setting up libxft-dev (2.3.1-2) ...Setting up libharfbuzz-dev (0.9.27-1ubuntu1) ...Setting up libpango1.0-dev (1.36.3-1ubuntu1.1) ...Setting up x11proto-xinerama-dev (1.2.1-2) ...Setting up libxinerama-dev:amd64 (2:1.1.3-1) ...Setting up x11proto-fixes-dev (1:5.0-2ubuntu2) ...Setting up libxfixes-dev:amd64 (1:5.0.1-1ubuntu1.1) ...Setting up libxi-dev (2:1.7.1.901-1ubuntu1.1) ...Setting up x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ...Setting up libxrandr-dev:amd64 (2:1.4.2-1) ...Setting up libxcursor-dev:amd64 (1:1.1.14-1) ...Setting up x11proto-composite-dev (1:0.4.2-2) ...Setting up libxcomposite-dev (1:0.4.4-1) ...Setting up x11proto-damage-dev (1:1.2.1-2) ...Setting up libxdamage-dev:amd64 (1:1.1.4-1ubuntu1) ...Setting up libgtk2.0-dev (2.24.23-0ubuntu1.4) ...Setting up libsys-hostname-long-perl (1.4-3) ...Setting up libmail-sendmail-perl (0.79.16-1) ...Setting up libx11-doc (2:1.6.2-1ubuntu2) ...Processing triggers for libc-bin (2.19-0ubuntu6.7) ...Re-run ‘sudo apt-get install qt5-default libvtk6-dev’
f. Install packages that are used to optimize various functions inside OpenCV, such as matrix operations:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980teddy@teddy-K43SJ:~$ sudo apt-get install libatlas-base-dev gfortranReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.The following extra packages will be installed:gfortran-4.8 libatlas-dev libatlas3-base libblas-dev libgfortran-4.8-devSuggested packages:gfortran-multilib gfortran-doc gfortran-4.8-multilib gfortran-4.8-doclibgfortran3-dbg libblas-doc liblapack-doc liblapack-devThe following NEW packages will be installed:gfortran gfortran-4.8 libatlas-base-dev libatlas-dev libatlas3-baselibblas-dev libgfortran-4.8-dev0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.Need to get 11,4 MB of archives.After this operation, 65,1 MB of additional disk space will be used.Do you want to continue? [Y/n] YGet:1 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libgfortran-4.8-dev amd64 4.8.4-2ubuntu1~14.04.1 [268 kB]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main gfortran-4.8 amd64 4.8.4-2ubuntu1~14.04.1 [4.880 kB]Get:3 http://kambing.ui.ac.id/ubuntu/ trusty/main gfortran amd64 4:4.8.2-1ubuntu6 [1.252 B]Get:4 http://kambing.ui.ac.id/ubuntu/ trusty/universe libatlas3-base amd64 3.10.1-4 [2.677 kB]Get:5 http://kambing.ui.ac.id/ubuntu/ trusty/main libblas-dev amd64 1.2.20110419-7 [240 kB]Get:6 http://kambing.ui.ac.id/ubuntu/ trusty/universe libatlas-dev all 3.10.1-4 [22,7 kB]Get:7 http://kambing.ui.ac.id/ubuntu/ trusty/universe libatlas-base-dev amd64 3.10.1-4 [3.348 kB]Fetched 11,4 MB in 10s (1.086 kB/s)Selecting previously unselected package libgfortran-4.8-dev:amd64.(Reading database ... 448369 files and directories currently installed.)Preparing to unpack .../libgfortran-4.8-dev_4.8.4-2ubuntu1~14.04.1_amd64.deb ...Unpacking libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.1) ...Selecting previously unselected package gfortran-4.8.Preparing to unpack .../gfortran-4.8_4.8.4-2ubuntu1~14.04.1_amd64.deb ...Unpacking gfortran-4.8 (4.8.4-2ubuntu1~14.04.1) ...Selecting previously unselected package gfortran.Preparing to unpack .../gfortran_4%3a4.8.2-1ubuntu6_amd64.deb ...Unpacking gfortran (4:4.8.2-1ubuntu6) ...Selecting previously unselected package libatlas3-base.Preparing to unpack .../libatlas3-base_3.10.1-4_amd64.deb ...Unpacking libatlas3-base (3.10.1-4) ...Selecting previously unselected package libblas-dev.Preparing to unpack .../libblas-dev_1.2.20110419-7_amd64.deb ...Unpacking libblas-dev (1.2.20110419-7) ...Selecting previously unselected package libatlas-dev.Preparing to unpack .../libatlas-dev_3.10.1-4_all.deb ...Unpacking libatlas-dev (3.10.1-4) ...Selecting previously unselected package libatlas-base-dev.Preparing to unpack .../libatlas-base-dev_3.10.1-4_amd64.deb ...Unpacking libatlas-base-dev (3.10.1-4) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Setting up libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.1) ...Setting up gfortran-4.8 (4.8.4-2ubuntu1~14.04.1) ...Setting up gfortran (4:4.8.2-1ubuntu6) ...update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto modeSetting up libatlas3-base (3.10.1-4) ...update-alternatives: using /usr/lib/atlas-base/atlas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in auto modeSetting up libblas-dev (1.2.20110419-7) ...update-alternatives: using /usr/lib/libblas/libblas.so to provide /usr/lib/libblas.so (libblas.so) in auto modeSetting up libatlas-dev (3.10.1-4) ...Setting up libatlas-base-dev (3.10.1-4) ...update-alternatives: using /usr/lib/atlas-base/atlas/libblas.so to provide /usr/lib/libblas.so (libblas.so) in auto modeupdate-alternatives: using /usr/lib/atlas-base/atlas/liblapack.so to provide /usr/lib/liblapack.so (liblapack.so) in auto modeProcessing triggers for libc-bin (2.19-0ubuntu6.7) ...g. Install documentation (doxigen):
123456789101112131415161718192021222324252627282930313233343536373839teddy@teddy-K43SJ:~$ sudo apt-get install doxygenReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.Suggested packages:doxygen-latex doxygen-doc doxygen-guiThe following NEW packages will be installed:doxygen0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.Need to get 2.408 kB of archives.After this operation, 10,2 MB of additional disk space will be used.Get:1 http://kambing.ui.ac.id/ubuntu/ trusty/main doxygen amd64 1.8.6-2 [2.408 kB]Fetched 2.408 kB in 1s (1.213 kB/s)Selecting previously unselected package doxygen.(Reading database ... 448750 files and directories currently installed.)Preparing to unpack .../doxygen_1.8.6-2_amd64.deb ...Unpacking doxygen (1.8.6-2) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Setting up doxygen (1.8.6-2) ...h. Install Parallelism and linear algebra libraries:
12345678910111213141516171819202122232425262728293031323334353637383940414243teddy@teddy-K43SJ:~$ sudo apt-get install libtbb-dev libeigen3-devReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.Suggested packages:libeigen3-doc libmrpt-dev tbb-examples libtbb-docThe following NEW packages will be installed:libeigen3-dev libtbb-dev0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.Need to get 671 kB of archives.After this operation, 5.091 kB of additional disk space will be used.Get:1 http://kambing.ui.ac.id/ubuntu/ trusty/universe libeigen3-dev all 3.2.0-8 [494 kB]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty/universe libtbb-dev amd64 4.2~20130725-1.1ubuntu1 [176 kB]Fetched 671 kB in 0s (990 kB/s)Selecting previously unselected package libeigen3-dev.(Reading database ... 448762 files and directories currently installed.)Preparing to unpack .../libeigen3-dev_3.2.0-8_all.deb ...Unpacking libeigen3-dev (3.2.0-8) ...Selecting previously unselected package libtbb-dev.Preparing to unpack .../libtbb-dev_4.2~20130725-1.1ubuntu1_amd64.deb ...Unpacking libtbb-dev (4.2~20130725-1.1ubuntu1) ...Setting up libeigen3-dev (3.2.0-8) ...Setting up libtbb-dev (4.2~20130725-1.1ubuntu1) ... - We’re halfway done setting up Python. But in order to compile OpenCV 3.0 with Python 3.4+ bindings, we’ll need to install the Python 3.4+ headers and development files:
a. sudo apt-get install python3.4-dev123456789101112131415161718192021222324252627282930313233343536373839404142434445teddy@teddy-K43SJ:~$ sudo apt-get install python3.4-devReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required:acpi gnome-desktop-data gnumeric-common gnumeric-doc libantlr-javalibchamplain-0.12-0 libchamplain-gtk-0.12-0 libcommons-validator-javalibdoxia-sitetools-java libgegl-0.2-0 libgoffice-0.10-10-commonlibjavascriptcoregtk-1.0-0 libjdependency-java libjtidy-javalibmaven-archiver-java libmaven-clean-plugin-javalibmaven-compiler-plugin-java libmaven-dependency-tree-javalibmaven-filtering-java libmaven-install-plugin-javalibmaven-jar-plugin-java libmaven-plugin-tools-javalibmaven-reporting-impl-java libmaven-resources-plugin-javalibmaven-shade-plugin-java libming1 libplexus-compiler-javalibplexus-digest-java libplexus-velocity-java libwebkitgtk-1.0-0libwebkitgtk-1.0-common libwerken.xpath-java libxml-xpathengine-perllinux-headers-3.13.0-76 linux-headers-3.13.0-76-generic-tuxonicelinux-headers-3.19.0-25 linux-headers-3.19.0-25-genericlinux-image-3.13.0-76-generic-tuxonice linux-image-3.19.0-25-genericlinux-image-extra-3.13.0-76-generic-tuxonicelinux-image-extra-3.19.0-25-generic linux-tools-3.13.0-76linux-tools-3.13.0-76-generic tclx8.4 velocityUse 'apt-get autoremove' to remove them.The following extra packages will be installed:libpython3.4-devThe following NEW packages will be installed:libpython3.4-dev python3.4-dev0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.Need to get 18,2 MB of archives.After this operation, 30,6 MB of additional disk space will be used.Do you want to continue? [Y/n] YGet:1 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main libpython3.4-dev amd64 3.4.3-1ubuntu1~14.04.3 [17,8 MB]Get:2 http://kambing.ui.ac.id/ubuntu/ trusty-updates/main python3.4-dev amd64 3.4.3-1ubuntu1~14.04.3 [419 kB]Fetched 18,2 MB in 14s (1.261 kB/s)Selecting previously unselected package libpython3.4-dev:amd64.(Reading database ... 448618 files and directories currently installed.)Preparing to unpack .../libpython3.4-dev_3.4.3-1ubuntu1~14.04.3_amd64.deb ...Unpacking libpython3.4-dev:amd64 (3.4.3-1ubuntu1~14.04.3) ...Selecting previously unselected package python3.4-dev.Preparing to unpack .../python3.4-dev_3.4.3-1ubuntu1~14.04.3_amd64.deb ...Unpacking python3.4-dev (3.4.3-1ubuntu1~14.04.3) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Setting up libpython3.4-dev:amd64 (3.4.3-1ubuntu1~14.04.3) ...Setting up python3.4-dev (3.4.3-1ubuntu1~14.04.3) ...b. go into our virtualenv ‘opencv’
12teddy@teddy-K43SJ:~$ workon opencv(opencv) teddy@teddy-K43SJ:~$c. OpenCV represents images as NumPy arrays, so we need to install NumPy into our ‘opencv’ virtual environment:
12345678910(opencv) teddy@teddy-K43SJ:~$ pip install numpyCollecting numpyDownloading numpy-1.10.4.tar.gz (4.1MB)100% |████████████████████████████████| 4.1MB 217kB/sBuilding wheels for collected packages: numpyRunning setup.py bdist_wheel for numpy ... done (TAKE A LONG TIME)Stored in directory: /home/teddy/.cache/pip/wheels/66/f5/d7/f6ddd78b61037fcb51a3e32c9cd276e292343cdd62d5384efdSuccessfully built numpyInstalling collected packages: numpySuccessfully installed numpy-1.10.4CHECK numpy VERSION: (ITS OKAY JUST USE python IN VIRTUALENV CREATED FOR PYTHON3)
12345678(opencv) teddy@teddy-K43SJ:~$ pythonPython 3.4.3 (default, Oct 14 2015, 20:28:29)[GCC 4.8.4] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import numpy as np>>> np.__version__'1.10.4'>>>exit() - Build and install OpenCV 3.0 with Python 3.4+ bindings
a. deactivate opencv first (NO. DON’T DO THIS. KEEP ON THE opencv virtualenv BECAUSE WE’LL USE numpy!)12(opencv) teddy@teddy-K43SJ:~$ deactivate opencvteddy@teddy-K43SJ:~$b. Alright, our system is all setup now! Let’s pull down OpenCV from GitHub and checkout the 3.1.0 version:
1teddy@teddy-K43SJ:~$ cd ~12345678teddy@teddy-K43SJ:~$ git clone https://github.com/Itseez/opencv.gitCloning into 'opencv'...remote: Counting objects: 186119, done.remote: Compressing objects: 100% (47/47), done.remote: Total 186119 (delta 8), reused 6 (delta 6), pack-reused 186065Receiving objects: 100% (186119/186119), 408.48 MiB | 1.29 MiB/s, done.Resolving deltas: 100% (127680/127680), done.Checking connectivity... done.1teddy@teddy-K43SJ:~$ cd opencv/12345678910111213teddy@teddy-K43SJ:~/opencv$ git checkout 3.1.0Note: checking out '3.1.0'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example:git checkout -b new_branch_nameHEAD is now at 92387b1... Fix java version++c. We’ll also need to grab the opencv_contrib repo as well (for more information as to why we need opencv_contrib, take a look at my previous OpenCV 3.0 Ubuntu install post: http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/):
1teddy@teddy-K43SJ:~/opencv$ cd ~12345678teddy@teddy-K43SJ:~$ git clone https://github.com/Itseez/opencv_contrib.gitCloning into 'opencv_contrib'...remote: Counting objects: 15242, done.remote: Compressing objects: 100% (14/14), done.remote: Total 15242 (delta 2), reused 0 (delta 0), pack-reused 15228Receiving objects: 100% (15242/15242), 113.05 MiB | 1.13 MiB/s, done.Resolving deltas: 100% (8680/8680), done.Checking connectivity... done.1teddy@teddy-K43SJ:~$ cd opencv_contrib12345678910111213teddy@teddy-K43SJ:~/opencv_contrib$ git checkout 3.1.0Note: checking out '3.1.0'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example:git checkout -b new_branch_nameHEAD is now at 5409d5a... Merge pull request #474 from mshabunin:normals_linemod_fixIMPORTANT: I FOUND AN ERROR ‘The data should normally be NULL! in function allocate’ WHEN TRY TO TEST SIFT Holography Feature Matching (flann.knnMatch). PLS FIX THIS FIRST (SEE SOLUTION IN /media/data/MASTER/opencv/github_list_fish_rec.txt) BEFORE BUILD OPENCV AT STEP #5 BELOW!
d.a Time to setup the build (USE virtualenv opencv BETTER BECAUSE WE NEED numpy!!!):–> RENAMED DIR TO ‘build0’. I THINK DONT USE THIS. JUST USE d.b.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452(opencv) teddy@teddy-K43SJ:~$ cd opencv(opencv) teddy@teddy-K43SJ:~/opencv$ mkdir build(opencv) teddy@teddy-K43SJ:~/opencv$ cd build/(opencv) teddy@teddy-K43SJ:~/opencv/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE \> -D CMAKE_INSTALL_PREFIX=/usr/local \> -D INSTALL_C_EXAMPLES=OFF \> -D INSTALL_PYTHON_EXAMPLES=ON \> -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \> -D BUILD_EXAMPLES=ON ..-- The CXX compiler identification is GNU 4.8.4-- The C compiler identification is GNU 4.8.4-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detected version of GNU GCC: 48 (408)-- Performing Test HAVE_CXX_FSIGNED_CHAR-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success-- Performing Test HAVE_C_FSIGNED_CHAR-- Performing Test HAVE_C_FSIGNED_CHAR - Success-- Performing Test HAVE_CXX_W-- Performing Test HAVE_CXX_W - Success-- Performing Test HAVE_C_W-- Performing Test HAVE_C_W - Success-- Performing Test HAVE_CXX_WALL-- Performing Test HAVE_CXX_WALL - Success-- Performing Test HAVE_C_WALL-- Performing Test HAVE_C_WALL - Success-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success-- Performing Test HAVE_C_WERROR_RETURN_TYPE-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_CXX_WERROR_ADDRESS-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success-- Performing Test HAVE_C_WERROR_ADDRESS-- Performing Test HAVE_C_WERROR_ADDRESS - Success-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success-- Performing Test HAVE_CXX_WFORMAT-- Performing Test HAVE_CXX_WFORMAT - Success-- Performing Test HAVE_C_WFORMAT-- Performing Test HAVE_C_WFORMAT - Success-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success-- Performing Test HAVE_C_WMISSING_DECLARATIONS-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed-- Performing Test HAVE_C_WMISSING_PROTOTYPES-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed-- Performing Test HAVE_C_WSTRICT_PROTOTYPES-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success-- Performing Test HAVE_CXX_WUNDEF-- Performing Test HAVE_CXX_WUNDEF - Success-- Performing Test HAVE_C_WUNDEF-- Performing Test HAVE_C_WUNDEF - Success-- Performing Test HAVE_CXX_WINIT_SELF-- Performing Test HAVE_CXX_WINIT_SELF - Success-- Performing Test HAVE_C_WINIT_SELF-- Performing Test HAVE_C_WINIT_SELF - Success-- Performing Test HAVE_CXX_WPOINTER_ARITH-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success-- Performing Test HAVE_C_WPOINTER_ARITH-- Performing Test HAVE_C_WPOINTER_ARITH - Success-- Performing Test HAVE_CXX_WSHADOW-- Performing Test HAVE_CXX_WSHADOW - Success-- Performing Test HAVE_C_WSHADOW-- Performing Test HAVE_C_WSHADOW - Success-- Performing Test HAVE_CXX_WSIGN_PROMO-- Performing Test HAVE_CXX_WSIGN_PROMO - Success-- Performing Test HAVE_C_WSIGN_PROMO-- Performing Test HAVE_C_WSIGN_PROMO - Failed-- Performing Test HAVE_CXX_WNO_NARROWING-- Performing Test HAVE_CXX_WNO_NARROWING - Success-- Performing Test HAVE_C_WNO_NARROWING-- Performing Test HAVE_C_WNO_NARROWING - Success-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success-- Performing Test HAVE_CXX_WNO_LONG_LONG-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success-- Performing Test HAVE_C_WNO_LONG_LONG-- Performing Test HAVE_C_WNO_LONG_LONG - Success-- Performing Test HAVE_CXX_PTHREAD-- Performing Test HAVE_CXX_PTHREAD - Success-- Performing Test HAVE_C_PTHREAD-- Performing Test HAVE_C_PTHREAD - Success-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success-- Performing Test HAVE_C_FOMIT_FRAME_POINTER-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success-- Performing Test HAVE_CXX_MSSE-- Performing Test HAVE_CXX_MSSE - Success-- Performing Test HAVE_C_MSSE-- Performing Test HAVE_C_MSSE - Success-- Performing Test HAVE_CXX_MSSE2-- Performing Test HAVE_CXX_MSSE2 - Success-- Performing Test HAVE_C_MSSE2-- Performing Test HAVE_C_MSSE2 - Success-- Performing Test HAVE_CXX_MNO_AVX-- Performing Test HAVE_CXX_MNO_AVX - Success-- Performing Test HAVE_C_MNO_AVX-- Performing Test HAVE_C_MNO_AVX - Success-- Performing Test HAVE_CXX_MSSE3-- Performing Test HAVE_CXX_MSSE3 - Success-- Performing Test HAVE_C_MSSE3-- Performing Test HAVE_C_MSSE3 - Success-- Performing Test HAVE_CXX_MNO_SSSE3-- Performing Test HAVE_CXX_MNO_SSSE3 - Success-- Performing Test HAVE_C_MNO_SSSE3-- Performing Test HAVE_C_MNO_SSSE3 - Success-- Performing Test HAVE_CXX_MNO_SSE4_1-- Performing Test HAVE_CXX_MNO_SSE4_1 - Success-- Performing Test HAVE_C_MNO_SSE4_1-- Performing Test HAVE_C_MNO_SSE4_1 - Success-- Performing Test HAVE_CXX_MNO_SSE4_2-- Performing Test HAVE_CXX_MNO_SSE4_2 - Success-- Performing Test HAVE_C_MNO_SSE4_2-- Performing Test HAVE_C_MNO_SSE4_2 - Success-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success-- Performing Test HAVE_C_FFUNCTION_SECTIONS-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success-- Performing Test HAVE_C_FVISIBILITY_HIDDEN-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed-- Looking for pthread.h-- Looking for pthread.h - found-- Check if the system is big endian-- Searching 16 bit integer-- Looking for sys/types.h-- Looking for sys/types.h - found-- Looking for stdint.h-- Looking for stdint.h - found-- Looking for stddef.h-- Looking for stddef.h - found-- Check size of unsigned short-- Check size of unsigned short - done-- Using unsigned short-- Check if the system is big endian - little endian-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3")-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success-- Performing Test HAVE_C_WNO_SHADOW-- Performing Test HAVE_C_WNO_SHADOW - Success-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")-- Looking for /usr/include/libpng/png.h-- Looking for /usr/include/libpng/png.h - found-- Looking for semaphore.h-- Looking for semaphore.h - found-- Performing Test HAVE_CXX_WNO_SHADOW-- Performing Test HAVE_CXX_WNO_SHADOW - Success-- Performing Test HAVE_CXX_WNO_UNUSED-- Performing Test HAVE_CXX_WNO_UNUSED - Success-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success-- Performing Test HAVE_CXX_WNO_UNDEF-- Performing Test HAVE_CXX_WNO_UNDEF - Success-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success-- Performing Test HAVE_CXX_WNO_UNINITIALIZED-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success-- Performing Test HAVE_CXX_WNO_SWITCH-- Performing Test HAVE_CXX_WNO_SWITCH - Success-- Performing Test HAVE_CXX_WNO_PARENTHESES-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success-- Performing Test HAVE_CXX_WNO_EXTRA-- Performing Test HAVE_CXX_WNO_EXTRA - Success-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success-- checking for module 'gtk+-3.0'-- package 'gtk+-3.0' not found-- checking for module 'gtk+-2.0'-- found gtk+-2.0, version 2.24.23-- checking for module 'gthread-2.0'-- found gthread-2.0, version 2.40.2-- checking for module 'gstreamer-base-1.0'-- package 'gstreamer-base-1.0' not found-- checking for module 'gstreamer-video-1.0'-- package 'gstreamer-video-1.0' not found-- checking for module 'gstreamer-app-1.0'-- package 'gstreamer-app-1.0' not found-- checking for module 'gstreamer-riff-1.0'-- package 'gstreamer-riff-1.0' not found-- checking for module 'gstreamer-pbutils-1.0'-- package 'gstreamer-pbutils-1.0' not found-- checking for module 'gstreamer-base-0.10'-- package 'gstreamer-base-0.10' not found-- checking for module 'gstreamer-video-0.10'-- package 'gstreamer-video-0.10' not found-- checking for module 'gstreamer-app-0.10'-- package 'gstreamer-app-0.10' not found-- checking for module 'gstreamer-riff-0.10'-- package 'gstreamer-riff-0.10' not found-- checking for module 'gstreamer-pbutils-0.10'-- package 'gstreamer-pbutils-0.10' not found-- checking for module 'libdc1394-2'-- package 'libdc1394-2' not found-- checking for module 'libdc1394'-- package 'libdc1394' not found-- checking for module 'libv4l1'-- package 'libv4l1' not found-- checking for module 'libv4l2'-- package 'libv4l2' not found-- Looking for linux/videodev.h-- Looking for linux/videodev.h - not found-- Looking for linux/videodev2.h-- Looking for linux/videodev2.h - found-- Looking for sys/videoio.h-- Looking for sys/videoio.h - not found-- checking for module 'libavcodec'-- package 'libavcodec' not found-- checking for module 'libavformat'-- package 'libavformat' not found-- checking for module 'libavutil'-- package 'libavutil' not found-- checking for module 'libswscale'-- package 'libswscale' not found-- checking for module 'libavresample'-- package 'libavresample' not found-- Looking for libavformat/avformat.h-- Looking for libavformat/avformat.h - not found-- Looking for ffmpeg/avformat.h-- Looking for ffmpeg/avformat.h - not found-- checking for module 'libgphoto2'-- package 'libgphoto2' not found-- ICV: Removing previous unpacked package: /home/teddy/opencv/3rdparty/ippicv/unpack-- ICV: Unpacking ippicv_linux_20151201.tgz to /home/teddy/opencv/3rdparty/ippicv/unpack...-- ICV: Package successfully downloaded-- found IPP (ICV version): 9.0.1 [9.0.1]-- at: /home/teddy/opencv/3rdparty/ippicv/unpack/ippicv_lnx-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7")-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.6")Traceback (most recent call last):File "<string>", line 1, in <module>ImportError: No module named numpy.distutils-- Found PythonInterp: /home/teddy/.virtualenvs/opencv/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (found suitable exact version "3.4.3")-- Found apache ant 1.9.3: /usr/bin/ant-- Found JNI: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjawt.so-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file-- Caffe: NO-- Protobuf: NO-- Glog: NO-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)-- Checking SFM deps... FALSE-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags-- Tesseract: NO-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success-- Performing Test HAVE_CXX_WNO_SIGN_PROMO-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed-- Looking for include file pthread.h-- Looking for include file pthread.h - found-- Looking for pthread_create-- Looking for pthread_create - found-- Found Threads: TRUE-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)-- Build libprotobuf from sources:-- libprotobuf not found into system-- The protocol buffer compiler not found-- Looking for include file pthread.h-- Looking for include file pthread.h - found-- Looking for C++ include unordered_map-- Looking for C++ include unordered_map - found-- Looking for C++ include tr1/unordered_map-- Looking for C++ include tr1/unordered_map - found-- Looking for C++ include unordered_set-- Looking for C++ include unordered_set - found-- Looking for C++ include tr1/unordered_set-- Looking for C++ include tr1/unordered_set - found-- Performing Test HAVE_CXX_WNO_DEPRECATED-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed-- Tesseract: NO---- General configuration for OpenCV 3.1.0 =====================================-- Version control: 3.1.0---- Platform:-- Host: Linux 3.19.0-51-generic x86_64-- CMake: 2.8.12.2-- CMake generator: Unix Makefiles-- CMake build tool: /usr/bin/make-- Configuration: RELEASE---- C/C++:-- Built as dynamic libs?: YES-- C++ Compiler: /usr/bin/c++ (ver 4.8.4)-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG-- C Compiler: /usr/bin/cc-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG-- Linker flags (Release):-- Linker flags (Debug):-- Precompiled headers: YES-- Extra dependencies: /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so gtk-x11-2.0 gdk-x11-2.0 atk-1.0 gio-2.0 pangoft2-1.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo pango-1.0 fontconfig gobject-2.0 freetype gthread-2.0 glib-2.0 dl m pthread rt-- 3rdparty dependencies: libwebp IlmImf libprotobuf---- OpenCV modules:-- To be built: core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets java rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python3-- Disabled: world contrib_world-- Disabled by dependency: --- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 viz cvv hdf matlab sfm---- GUI:-- QT: NO-- GTK+ 2.x: YES (ver 2.24.23)-- GThread : YES (ver 2.40.2)-- GtkGlExt: NO-- OpenGL support: NO-- VTK support: NO---- Media I/O:-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )-- WEBP: build (ver 0.3.1)-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.50)-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3)-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)-- OpenEXR: build (ver 1.7.1)-- GDAL: NO---- Video I/O:-- DC1394 1.x: NO-- DC1394 2.x: NO-- FFMPEG: NO-- codec: NO-- format: NO-- util: NO-- swscale: NO-- resample: NO-- gentoo-style: NO-- GStreamer: NO-- OpenNI: NO-- OpenNI PrimeSensor Modules: NO-- OpenNI2: NO-- PvAPI: NO-- GigEVisionSDK: NO-- UniCap: NO-- UniCap ucil: NO-- V4L/V4L2: NO/YES-- XIMEA: NO-- Xine: NO-- gPhoto2: NO---- Parallel framework: pthreads---- Other third-party libraries:-- Use IPP: 9.0.1 [9.0.1]-- at: /home/teddy/opencv/3rdparty/ippicv/unpack/ippicv_lnx-- Use IPP Async: NO-- Use VA: NO-- Use Intel VA-API/OpenCL: NO-- Use Eigen: NO-- Use Cuda: NO-- Use OpenCL: YES-- Use custom HAL: NO---- OpenCL:-- Version: dynamic-- Include path: /home/teddy/opencv/3rdparty/include/opencl/1.2-- Use AMDFFT: NO-- Use AMDBLAS: NO---- Python 2:-- Interpreter: /usr/bin/python2.7 (ver 2.7.6)---- Python 3:-- Interpreter: /home/teddy/.virtualenvs/opencv/bin/python3.4 (ver 3.4.3)-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (ver 3.4.3)-- numpy: /home/teddy/.virtualenvs/opencv/lib/python3.4/site-packages/numpy/core/include (ver 1.10.4)-- packages path: lib/python3.4/site-packages---- Python (for build): /usr/bin/python2.7---- Java:-- ant: /usr/bin/ant (ver 1.9.3)-- JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include-- Java wrappers: YES-- Java tests: YES---- Matlab: Matlab not found or implicitly disabled---- Documentation:-- Doxygen: NO-- PlantUML: NO---- Tests and samples:-- Tests: YES-- Performance tests: YES-- C/C++ Examples: YES---- Install path: /usr/local---- cvconfig.h is in: /home/teddy/opencv/build-- --------------------------------------------------------------------- Configuring done-- Generating done-- Build files have been written to: /home/teddy/opencv/buildd.b Time to setup the build (USE virtualenv opencv BETTER BECAUSE WE NEED numpy!!!):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452(opencv) teddy@teddy-K43SJ:~$ cd opencv(opencv) teddy@teddy-K43SJ:~/opencv$ mkdir build(opencv) teddy@teddy-K43SJ:~/opencv$ cd build/(opencv) teddy@teddy-K43SJ:~/opencv/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE \> -D CMAKE_INSTALL_PREFIX=/usr/local \> -D INSTALL_C_EXAMPLES=OFF \> -D INSTALL_PYTHON_EXAMPLES=ON \> -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \> -D BUILD_EXAMPLES=ON ..-- The CXX compiler identification is GNU 4.8.4-- The C compiler identification is GNU 4.8.4-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detected version of GNU GCC: 48 (408)-- Performing Test HAVE_CXX_FSIGNED_CHAR-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success-- Performing Test HAVE_C_FSIGNED_CHAR-- Performing Test HAVE_C_FSIGNED_CHAR - Success-- Performing Test HAVE_CXX_W-- Performing Test HAVE_CXX_W - Success-- Performing Test HAVE_C_W-- Performing Test HAVE_C_W - Success-- Performing Test HAVE_CXX_WALL-- Performing Test HAVE_CXX_WALL - Success-- Performing Test HAVE_C_WALL-- Performing Test HAVE_C_WALL - Success-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success-- Performing Test HAVE_C_WERROR_RETURN_TYPE-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_CXX_WERROR_ADDRESS-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success-- Performing Test HAVE_C_WERROR_ADDRESS-- Performing Test HAVE_C_WERROR_ADDRESS - Success-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success-- Performing Test HAVE_CXX_WFORMAT-- Performing Test HAVE_CXX_WFORMAT - Success-- Performing Test HAVE_C_WFORMAT-- Performing Test HAVE_C_WFORMAT - Success-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success-- Performing Test HAVE_C_WMISSING_DECLARATIONS-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed-- Performing Test HAVE_C_WMISSING_PROTOTYPES-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed-- Performing Test HAVE_C_WSTRICT_PROTOTYPES-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success-- Performing Test HAVE_CXX_WUNDEF-- Performing Test HAVE_CXX_WUNDEF - Success-- Performing Test HAVE_C_WUNDEF-- Performing Test HAVE_C_WUNDEF - Success-- Performing Test HAVE_CXX_WINIT_SELF-- Performing Test HAVE_CXX_WINIT_SELF - Success-- Performing Test HAVE_C_WINIT_SELF-- Performing Test HAVE_C_WINIT_SELF - Success-- Performing Test HAVE_CXX_WPOINTER_ARITH-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success-- Performing Test HAVE_C_WPOINTER_ARITH-- Performing Test HAVE_C_WPOINTER_ARITH - Success-- Performing Test HAVE_CXX_WSHADOW-- Performing Test HAVE_CXX_WSHADOW - Success-- Performing Test HAVE_C_WSHADOW-- Performing Test HAVE_C_WSHADOW - Success-- Performing Test HAVE_CXX_WSIGN_PROMO-- Performing Test HAVE_CXX_WSIGN_PROMO - Success-- Performing Test HAVE_C_WSIGN_PROMO-- Performing Test HAVE_C_WSIGN_PROMO - Failed-- Performing Test HAVE_CXX_WNO_NARROWING-- Performing Test HAVE_CXX_WNO_NARROWING - Success-- Performing Test HAVE_C_WNO_NARROWING-- Performing Test HAVE_C_WNO_NARROWING - Success-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success-- Performing Test HAVE_CXX_WNO_LONG_LONG-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success-- Performing Test HAVE_C_WNO_LONG_LONG-- Performing Test HAVE_C_WNO_LONG_LONG - Success-- Performing Test HAVE_CXX_PTHREAD-- Performing Test HAVE_CXX_PTHREAD - Success-- Performing Test HAVE_C_PTHREAD-- Performing Test HAVE_C_PTHREAD - Success-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success-- Performing Test HAVE_C_FOMIT_FRAME_POINTER-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success-- Performing Test HAVE_CXX_MSSE-- Performing Test HAVE_CXX_MSSE - Success-- Performing Test HAVE_C_MSSE-- Performing Test HAVE_C_MSSE - Success-- Performing Test HAVE_CXX_MSSE2-- Performing Test HAVE_CXX_MSSE2 - Success-- Performing Test HAVE_C_MSSE2-- Performing Test HAVE_C_MSSE2 - Success-- Performing Test HAVE_CXX_MNO_AVX-- Performing Test HAVE_CXX_MNO_AVX - Success-- Performing Test HAVE_C_MNO_AVX-- Performing Test HAVE_C_MNO_AVX - Success-- Performing Test HAVE_CXX_MSSE3-- Performing Test HAVE_CXX_MSSE3 - Success-- Performing Test HAVE_C_MSSE3-- Performing Test HAVE_C_MSSE3 - Success-- Performing Test HAVE_CXX_MNO_SSSE3-- Performing Test HAVE_CXX_MNO_SSSE3 - Success-- Performing Test HAVE_C_MNO_SSSE3-- Performing Test HAVE_C_MNO_SSSE3 - Success-- Performing Test HAVE_CXX_MNO_SSE4_1-- Performing Test HAVE_CXX_MNO_SSE4_1 - Success-- Performing Test HAVE_C_MNO_SSE4_1-- Performing Test HAVE_C_MNO_SSE4_1 - Success-- Performing Test HAVE_CXX_MNO_SSE4_2-- Performing Test HAVE_CXX_MNO_SSE4_2 - Success-- Performing Test HAVE_C_MNO_SSE4_2-- Performing Test HAVE_C_MNO_SSE4_2 - Success-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success-- Performing Test HAVE_C_FFUNCTION_SECTIONS-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success-- Performing Test HAVE_C_FVISIBILITY_HIDDEN-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed-- Looking for pthread.h-- Looking for pthread.h - found-- Check if the system is big endian-- Searching 16 bit integer-- Looking for sys/types.h-- Looking for sys/types.h - found-- Looking for stdint.h-- Looking for stdint.h - found-- Looking for stddef.h-- Looking for stddef.h - found-- Check size of unsigned short-- Check size of unsigned short - done-- Using unsigned short-- Check if the system is big endian - little endian-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3")-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success-- Performing Test HAVE_C_WNO_SHADOW-- Performing Test HAVE_C_WNO_SHADOW - Success-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")-- Looking for /usr/include/libpng/png.h-- Looking for /usr/include/libpng/png.h - found-- Looking for semaphore.h-- Looking for semaphore.h - found-- Performing Test HAVE_CXX_WNO_SHADOW-- Performing Test HAVE_CXX_WNO_SHADOW - Success-- Performing Test HAVE_CXX_WNO_UNUSED-- Performing Test HAVE_CXX_WNO_UNUSED - Success-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success-- Performing Test HAVE_CXX_WNO_UNDEF-- Performing Test HAVE_CXX_WNO_UNDEF - Success-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success-- Performing Test HAVE_CXX_WNO_UNINITIALIZED-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success-- Performing Test HAVE_CXX_WNO_SWITCH-- Performing Test HAVE_CXX_WNO_SWITCH - Success-- Performing Test HAVE_CXX_WNO_PARENTHESES-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success-- Performing Test HAVE_CXX_WNO_EXTRA-- Performing Test HAVE_CXX_WNO_EXTRA - Success-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success-- checking for module 'gtk+-3.0'-- package 'gtk+-3.0' not found-- checking for module 'gtk+-2.0'-- found gtk+-2.0, version 2.24.23-- checking for module 'gthread-2.0'-- found gthread-2.0, version 2.40.2-- checking for module 'gstreamer-base-1.0'-- package 'gstreamer-base-1.0' not found-- checking for module 'gstreamer-video-1.0'-- package 'gstreamer-video-1.0' not found-- checking for module 'gstreamer-app-1.0'-- package 'gstreamer-app-1.0' not found-- checking for module 'gstreamer-riff-1.0'-- package 'gstreamer-riff-1.0' not found-- checking for module 'gstreamer-pbutils-1.0'-- package 'gstreamer-pbutils-1.0' not found-- checking for module 'gstreamer-base-0.10'-- package 'gstreamer-base-0.10' not found-- checking for module 'gstreamer-video-0.10'-- package 'gstreamer-video-0.10' not found-- checking for module 'gstreamer-app-0.10'-- package 'gstreamer-app-0.10' not found-- checking for module 'gstreamer-riff-0.10'-- package 'gstreamer-riff-0.10' not found-- checking for module 'gstreamer-pbutils-0.10'-- package 'gstreamer-pbutils-0.10' not found-- checking for module 'libdc1394-2'-- package 'libdc1394-2' not found-- checking for module 'libdc1394'-- package 'libdc1394' not found-- checking for module 'libv4l1'-- found libv4l1, version 1.0.1-- checking for module 'libv4l2'-- found libv4l2, version 1.0.1-- Looking for linux/videodev.h-- Looking for linux/videodev.h - not found-- Looking for linux/videodev2.h-- Looking for linux/videodev2.h - found-- Looking for sys/videoio.h-- Looking for sys/videoio.h - not found-- checking for module 'libavcodec'-- found libavcodec, version 54.35.0-- checking for module 'libavformat'-- found libavformat, version 54.20.4-- checking for module 'libavutil'-- found libavutil, version 52.3.0-- checking for module 'libswscale'-- found libswscale, version 2.1.1-- checking for module 'libavresample'-- package 'libavresample' not found-- Looking for libavformat/avformat.h-- Looking for libavformat/avformat.h - found-- Looking for ffmpeg/avformat.h-- Looking for ffmpeg/avformat.h - not found-- checking for module 'libgphoto2'-- package 'libgphoto2' not found-- ICV: Removing previous unpacked package: /home/teddy/opencv/3rdparty/ippicv/unpack-- ICV: Unpacking ippicv_linux_20151201.tgz to /home/teddy/opencv/3rdparty/ippicv/unpack...-- ICV: Package successfully downloaded-- found IPP (ICV version): 9.0.1 [9.0.1]-- at: /home/teddy/opencv/3rdparty/ippicv/unpack/ippicv_lnx-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7")-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.6")Traceback (most recent call last):File "<string>", line 1, in <module>ImportError: No module named numpy.distutils-- Found PythonInterp: /home/teddy/.virtualenvs/opencv/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (found suitable exact version "3.4.3")-- Found apache ant 1.9.3: /usr/bin/ant-- Found JNI: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjawt.so-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file-- Caffe: NO-- Protobuf: NO-- Glog: NO-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS)-- Checking SFM deps... FALSE-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags-- Tesseract: NO-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success-- Performing Test HAVE_CXX_WNO_SIGN_PROMO-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed-- Looking for include file pthread.h-- Looking for include file pthread.h - found-- Looking for pthread_create-- Looking for pthread_create - found-- Found Threads: TRUE-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)-- Build libprotobuf from sources:-- libprotobuf not found into system-- The protocol buffer compiler not found-- Looking for include file pthread.h-- Looking for include file pthread.h - found-- Looking for C++ include unordered_map-- Looking for C++ include unordered_map - found-- Looking for C++ include tr1/unordered_map-- Looking for C++ include tr1/unordered_map - found-- Looking for C++ include unordered_set-- Looking for C++ include unordered_set - found-- Looking for C++ include tr1/unordered_set-- Looking for C++ include tr1/unordered_set - found-- Performing Test HAVE_CXX_WNO_DEPRECATED-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed-- Tesseract: NO---- General configuration for OpenCV 3.1.0 =====================================-- Version control: 3.1.0---- Platform:-- Host: Linux 3.19.0-51-generic x86_64-- CMake: 2.8.12.2-- CMake generator: Unix Makefiles-- CMake build tool: /usr/bin/make-- Configuration: RELEASE---- C/C++:-- Built as dynamic libs?: YES-- C++ Compiler: /usr/bin/c++ (ver 4.8.4)-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG-- C Compiler: /usr/bin/cc-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG-- Linker flags (Release):-- Linker flags (Debug):-- Precompiled headers: YES-- Extra dependencies: /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so gtk-x11-2.0 gdk-x11-2.0 atk-1.0 gio-2.0 pangoft2-1.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo pango-1.0 fontconfig gobject-2.0 freetype gthread-2.0 glib-2.0 v4l1 v4l2 avcodec avformat avutil swscale dl m pthread rt-- 3rdparty dependencies: libwebp IlmImf libprotobuf---- OpenCV modules:-- To be built: core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets java rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching python3-- Disabled: world contrib_world-- Disabled by dependency: --- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 viz cvv hdf matlab sfm---- GUI:-- QT: NO-- GTK+ 2.x: YES (ver 2.24.23)-- GThread : YES (ver 2.40.2)-- GtkGlExt: NO-- OpenGL support: NO-- VTK support: NO---- Media I/O:-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )-- WEBP: build (ver 0.3.1)-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.50)-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3)-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)-- OpenEXR: build (ver 1.7.1)-- GDAL: NO---- Video I/O:-- DC1394 1.x: NO-- DC1394 2.x: NO-- FFMPEG: YES-- codec: YES (ver 54.35.0)-- format: YES (ver 54.20.4)-- util: YES (ver 52.3.0)-- swscale: YES (ver 2.1.1)-- resample: NO-- gentoo-style: YES-- GStreamer: NO-- OpenNI: NO-- OpenNI PrimeSensor Modules: NO-- OpenNI2: NO-- PvAPI: NO-- GigEVisionSDK: NO-- UniCap: NO-- UniCap ucil: NO-- V4L/V4L2: Using libv4l1 (ver 1.0.1) / libv4l2 (ver 1.0.1)-- XIMEA: NO-- Xine: NO-- gPhoto2: NO---- Parallel framework: pthreads---- Other third-party libraries:-- Use IPP: 9.0.1 [9.0.1]-- at: /home/teddy/opencv/3rdparty/ippicv/unpack/ippicv_lnx-- Use IPP Async: NO-- Use VA: NO-- Use Intel VA-API/OpenCL: NO-- Use Eigen: YES (ver 3.2.0)-- Use Cuda: NO-- Use OpenCL: YES-- Use custom HAL: NO---- OpenCL:-- Version: dynamic-- Include path: /home/teddy/opencv/3rdparty/include/opencl/1.2-- Use AMDFFT: NO-- Use AMDBLAS: NO---- Python 2:-- Interpreter: /usr/bin/python2.7 (ver 2.7.6)---- Python 3:-- Interpreter: /home/teddy/.virtualenvs/opencv/bin/python3.4 (ver 3.4.3)-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (ver 3.4.3)-- numpy: /home/teddy/.virtualenvs/opencv/lib/python3.4/site-packages/numpy/core/include (ver 1.10.4)-- packages path: lib/python3.4/site-packages---- Python (for build): /usr/bin/python2.7---- Java:-- ant: /usr/bin/ant (ver 1.9.3)-- JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include-- Java wrappers: YES-- Java tests: YES---- Matlab: Matlab not found or implicitly disabled---- Documentation:-- Doxygen: /usr/bin/doxygen (ver 1.8.6)-- PlantUML: NO---- Tests and samples:-- Tests: YES-- Performance tests: YES-- C/C++ Examples: YES---- Install path: /usr/local---- cvconfig.h is in: /home/teddy/opencv/build-- --------------------------------------------------------------------- Configuring done-- Generating done-- Build files have been written to: /home/teddy/opencv/builde. compile! (TAKE LONG TIME AND I GOT 5 GB DATA)
make -j4
Where the 4 can be replaced with the number of available cores on your processor to speedup the compilation time.
To find out how many core your computer has, pls do:
ref:http://www.howtogeek.com/howto/ubuntu/display-number-of-processors-on-linux/12(opencv) teddy@teddy-K43SJ:~/opencv/build$ cat /proc/cpuinfo | grep processor | wc -l41234567891011121314(opencv) teddy@teddy-K43SJ:~/opencv/build$ make -j4......[ 98%] Built target tutorial_objectDetection2Scanning dependencies of target tutorial_video-write[100%] Building CXX object samples/cpp/CMakeFiles/tutorial_video-write.dir/tutorial_code/HighGUI/video-write/video-write.cpp.oLinking CXX executable ../../bin/cpp-tutorial-pointPolygonTest_demo[100%] Built target tutorial_pointPolygonTest_demoLinking CXX executable ../../bin/cpp-tutorial-video-writeLinking CXX executable ../../bin/cpp-tutorial-video-input-psnr-ssim[100%] Built target tutorial_video-write[100%] Built target tutorial_video-input-psnr-ssimLinking CXX executable ../../bin/cpp-tutorial-planar_tracking[100%] Built target tutorial_planar_trackingf. Assuming OpenCV 3.1 compiled without error, you can now install it on your system:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556(opencv) teddy@teddy-K43SJ:~/opencv/build$ sudo make install....-- Installing: /usr/local/share/OpenCV/samples/python/lappyr.py-- Installing: /usr/local/share/OpenCV/samples/python/video_v4l2.py-- Installing: /usr/local/share/OpenCV/samples/python/_doc.py-- Installing: /usr/local/share/OpenCV/samples/python/letter_recog.py-- Installing: /usr/local/share/OpenCV/samples/python/watershed.py-- Installing: /usr/local/share/OpenCV/samples/python/gabor_threads.py-- Installing: /usr/local/share/OpenCV/samples/python/stereo_match.py-- Installing: /usr/local/share/OpenCV/samples/python/edge.py-- Installing: /usr/local/share/OpenCV/samples/python/lk_homography.py-- Installing: /usr/local/share/OpenCV/samples/python/dft.py-- Installing: /usr/local/share/OpenCV/samples/python/asift.py-- Installing: /usr/local/share/OpenCV/samples/python/feature_homography.py-- Installing: /usr/local/share/OpenCV/samples/python/deconvolution.py-- Installing: /usr/local/share/OpenCV/samples/python/coherence.py-- Installing: /usr/local/share/OpenCV/samples/python/plane_tracker.py-- Installing: /usr/local/share/OpenCV/samples/python/squares.py-- Installing: /usr/local/share/OpenCV/samples/python/facedetect.py-- Installing: /usr/local/share/OpenCV/samples/python/gaussian_mix.py-- Installing: /usr/local/share/OpenCV/samples/python/camshift.py-- Installing: /usr/local/share/OpenCV/samples/python/lk_track.py-- Installing: /usr/local/share/OpenCV/samples/python/kmeans.py-- Installing: /usr/local/share/OpenCV/samples/python/opencv_version.py-- Installing: /usr/local/share/OpenCV/samples/python/find_obj.py-- Installing: /usr/local/share/OpenCV/samples/python/morphology.py-- Installing: /usr/local/share/OpenCV/samples/python/contours.py-- Installing: /usr/local/share/OpenCV/samples/python/mouse_and_match.py-- Installing: /usr/local/share/OpenCV/samples/python/floodfill.py-- Installing: /usr/local/share/OpenCV/samples/python/digits.py-- Installing: /usr/local/share/OpenCV/samples/python/turing.py-- Installing: /usr/local/share/OpenCV/samples/python/common.py-- Installing: /usr/local/share/OpenCV/samples/python/logpolar.py-- Installing: /usr/local/share/OpenCV/samples/python/peopledetect.py-- Installing: /usr/local/share/OpenCV/samples/python/digits_video.py-- Installing: /usr/local/share/OpenCV/samples/python/fitline.py-- Installing: /usr/local/share/OpenCV/samples/python/grabcut.py-- Installing: /usr/local/share/OpenCV/samples/python/browse.py-- Installing: /usr/local/share/OpenCV/samples/python/_coverage.py-- Installing: /usr/local/share/OpenCV/samples/python/opt_flow.py-- Installing: /usr/local/share/OpenCV/samples/python/mosse.py-- Installing: /usr/local/share/OpenCV/samples/python/plane_ar.py-- Installing: /usr/local/share/OpenCV/samples/python/kalman.py-- Installing: /usr/local/share/OpenCV/samples/python/houghcircles.py-- Installing: /usr/local/share/OpenCV/samples/python/distrans.py-- Installing: /usr/local/share/OpenCV/samples/python/hist.py-- Installing: /usr/local/share/OpenCV/samples/python/video.py-- Installing: /usr/local/share/OpenCV/samples/python/texture_flow.py-- Installing: /usr/local/share/OpenCV/samples/python/mser.py-- Installing: /usr/local/share/OpenCV/samples/python/calibrate.py-- Installing: /usr/local/share/OpenCV/samples/python/digits_adjust.py-- Installing: /usr/local/share/OpenCV/samples/python/houghlines.py-- Installing: /usr/local/share/OpenCV/samples/python/color_histogram.py-- Installing: /usr/local/share/OpenCV/samples/python/demo.py-- Installing: /usr/local/share/OpenCV/samples/python/inpaint.py-- Installing: /usr/local/share/OpenCV/samples/python/video_threaded.pyg.
1(opencv) teddy@teddy-K43SJ:~/opencv/build$ sudo ldconfig - Sym-link OpenCV 3.1
If you’ve reached this step, OpenCV 3.1 should now be installed in /usr/local/lib/python3.4/site-packages/123(opencv) teddy@teddy-K43SJ:~/opencv/build$ ls -l /usr/local/lib/python3.4/site-packages/total 2092-rw-r--r-- 1 root staff 2138845 Mar 10 22:11 cv2.cpython-34m.soHere, our OpenCV bindings are stored under the name cv2.cpython-34m.so
Be sure to take note of this filename, you’ll need it in just a few seconds!
However, in order to use OpenCV 3.1 within our opencv virtual environment, we first need to sym-link OpenCV into the site-packages directory of the cv environment, like this:
12(opencv) teddy@teddy-K43SJ:~/opencv/build$ cd ~/.virtualenvs/opencv/lib/python3.4/site-packages/(opencv) teddy@teddy-K43SJ:~/.virtualenvs/opencv/lib/python3.4/site-packages$1(opencv) teddy@teddy-K43SJ:~/.virtualenvs/opencv/lib/python3.4/site-packages$ ln -s /usr/local/lib/python3.4/site-packages/cv2.cpython-34m.so cv2.soNotice how I am changing the name from cv2.cpython-34m.so to cv2.so — this is so Python can import our OpenCV bindings using the name cv2 .
So now when you list the contents of the opencv virtual environment’s site-packages directory, you’ll see our OpenCV 3.1 bindings (the cv2.so file):
12345(opencv) teddy@teddy-K43SJ:~/.virtualenvs/opencv/lib/python3.4/site-packages$ lscv2.so pip setuptoolseasy_install.py pip-8.1.0.dist-info setuptools-20.2.2.dist-infonumpy pkg_resources wheelnumpy-1.10.4.dist-info __pycache__ wheel-0.29.0.dist-infoAgain, this is a very important step, so be sure that you have the cv2.so file in your virtual environment, otherwise you will not be able to import OpenCV in your Python scripts!
5. Test out the OpenCV 3.0 and Python 3.4+ install
1234567(opencv) teddy@teddy-K43SJ:~$ pythonPython 3.4.3 (default, Oct 14 2015, 20:28:29)[GCC 4.8.4] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import cv2>>> cv2.__version__'3.1.0'As you can see, OpenCV 3.1 with Python 3.4+ bindings has been successfully installed on my Ubuntu system!
6. EXECUTE SOME OPENCV EXAMPLES (ref:http://milq.github.io/install-opencv-ubuntu-debian/)
a. Run this example (edge detect):12(opencv) teddy@teddy-K43SJ:~$ cd opencv/build/bin/(opencv) teddy@teddy-K43SJ:~/opencv/build/bin$ ./cpp-example-edge ../../samples/data/fruits.jpgWould open an image (fruit) with edge detect!
b. run python samples (video capture from my laptop camera):
12(opencv) teddy@teddy-K43SJ:~/opencv$ cd samples/python/(opencv) teddy@teddy-K43SJ:~/opencv/samples/python$ python video.py
12345678910111213141516171819202122232425Video capture sample.Sample shows how VideoCapture class can be used to acquire videoframes from a camera of a movie file. Also the sample providesan example of procedural video generation by an object, mimickingthe VideoCapture interface (see Chess class).'create_capture' is a convinience function for capture creation,falling back to procedural video in case of error.Usage:video.py [--shotdir <shot path>] [source0] [source1] ...'sourceN is an- integer number for camera capture- name of video file- synth:<params> for procedural videoSynth examples:synth:bg=../data/lena.jpg:noise=0.1synth:class=chess:bg=../data/lena.jpg:noise=0.1:size=640x480Keys:ESC - exitSPACE - save current frame to <shot path> directory
7. CREATE AN EXAMPLE DEMO
There is a sample code in /opencv/samples/cpp/example_cmake/
To compile example.cpp successfully, we need CMakeLists.txt and Makefile
run:
1mkdir build && cd build && cmake .. && make
RESULT:
1234567891011121314151617181920212223(opencv) teddy@teddy-K43SJ:~$ cd opencv/samples/cpp/example_cmake/(opencv) teddy@teddy-K43SJ:~/opencv/samples/cpp/example_cmake$ mkdir build && cd build && cmake .. && make-- The C compiler identification is GNU 4.8.4-- The CXX compiler identification is GNU 4.8.4-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- OpenCV library status:-- version: 3.1.0-- libraries: opencv_xphoto;opencv_xobjdetect;opencv_ximgproc;opencv_xfeatures2d;opencv_tracking;opencv_text;opencv_surface_matching;opencv_structured_light;opencv_stereo;opencv_saliency;opencv_rgbd;opencv_reg;opencv_plot;opencv_optflow;opencv_line_descriptor;opencv_fuzzy;opencv_face;opencv_dpm;opencv_dnn;opencv_datasets;opencv_ccalib;opencv_bioinspired;opencv_bgsegm;opencv_aruco;opencv_videostab;opencv_videoio;opencv_video;opencv_superres;opencv_stitching;opencv_shape;opencv_photo;opencv_objdetect;opencv_ml;opencv_imgproc;opencv_imgcodecs;opencv_highgui;opencv_flann;opencv_features2d;opencv_core;opencv_calib3d-- include path: /usr/local/include/opencv;/usr/local/include-- Configuring done-- Generating done-- Build files have been written to: /home/teddy/opencv/samples/cpp/example_cmake/buildScanning dependencies of target opencv_example[100%] Building CXX object CMakeFiles/opencv_example.dir/example.cpp.oLinking CXX executable opencv_example[100%] Built target opencv_example
TO EXECUTE THE FILE:
123(opencv) teddy@teddy-K43SJ:~/opencv/samples/cpp/example_cmake/build$ ./opencv_exampleBuilt with OpenCV 3.1.0Capture is opened
FOR MORE OPENCV TUTORIAL FOR PYTHON, PLS SEE /media/data/MASTER/opencv/opencv_python_tutorial.txt