Visual Slam 14 speaks of opencv3.1, and opencv3.3 adds to the application of deep learning, so compiling both for the next step of learning and research.
1. Installing opencv3.1
Installation Reference Link: https://docs.opencv.org/3.1.0/d7/d9f/tutorial_linux_install.html
Brief steps:
1.1 Required Packages[compiler] sudo apt-get install build-essential[Required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev Libswscale-dev
[Optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-d EV Libdc1394-22-dev
1.2 Downloads opencv3.1package Download: Https://github.com/opencv/opencv/archive/3.1.0.zipYou can also download GitHub source code:CD ~/<my_working_directory>git clone https://github.com/Itseez/opencv.gitgit clone https://github.com/Itseez/opencv_contrib.git1.3 Compiling the installationCD ~/OPENCVmkdir BuildCD Buildcmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local.(You can also cmake ...) Make-j7sudo make install1.4 may encounter problems-icv:downloading ippicv_linux_20151201.tgz ... CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file): File DOWNLOAD HASH mismatch for file: [/home/huicanlin/dow Nloads/software/opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/ippicv_linux_ 20151201.TGZ] Expected hash: [808B791A6EAC9ED78D32A7666804320E] actual hash: [f13eaae8a6fdcdd119ee111515313781 ] Workaround: Manually download the file, put it in the appropriate path, and recompile. Download Link: (1) http://www.linuxfromscratch.org/blfs/view/7.9/general/opencv.html (2) https://pan.baidu.com/s/1gfgYnDp password : 242j Proper path:/OPENCV-3.1.0/3RDPARTY/IPPICV/DOWNLOADS/LINUX-808B791A6EAC9ED78D32A7666804320E/2 installation opencv3.3
Installation Reference Link: https://docs.opencv.org/3.3.0/d7/d9f/tutorial_linux_install.html
Brief steps:
2.1 Required Package [compiler] sudo apt-get install build-essential[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config l Ibavcodec-dev Libavformat-dev libswscale-dev[optional] sudo apt-get install python-dev python-numpy libtbb2 Libtbb-dev Libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev2.2 download opencv3.3 download link: https://github.com/opencv/ Opencv/archive/3.3.0.zip, of course, can also download the source code 2.3 compiled and installed on GitHubCD ~/OPENCVmkdir BuildCD Buildcmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local.(You can also cmake ...) Make-j7sudo make install2.4 may encounter problems
In CMake. Step, an error occurred while downloading the ippicv_2017u2_lnx_intel64_20170418.tgz file.
The workaround is also manually downloaded and put to the appropriate path, the solution for the problem Reference link: https://github.com/opencv/opencv/issues/8641.
Link Brief content:
> $ cat CMakeDownloadLog.txt use_cache "/home/alalek/projects/opencv/dev/.cache"do_unpack "ippicv_2017u2_lnx_intel64_20170418.tgz" "87cbdeb627415d8e4bc811156289fa3a" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz" "/home/alalek/projects/opencv/build/opencv/3rdparty/ippicv"#cmake_download "/home/alalek/projects/opencv/dev/.cache/ippicv/87cbdeb627415d8e4bc811156289fa3a-ippicv_2017u2_lnx_intel64_20170418.tgz" "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz"
Take a look on #cmake_download
line.
Download Link:
(1) http://linuxfromscratch.org/blfs/view/svn/general/opencv.html
(2) Https://pan.baidu.com/s/1bR9wdS Password: maj4
Appropriate path: ~/downloads/software/opencv-3.3.0/.cache/ippicv/
Rename the downloaded file to: 87cbdeb627415d8e4bc811156289fa3a-ippicv_2017u2_lnx_intel64_20170418.tgz
Recompile the installation.
Ubuntu14.04 Installing opencv3.1 and opencv3.3