The main steps have been listed in the guidance page:
But my cmake options were as the follows:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON
-D BUILD_NEW_PYTHO-D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=O
N -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_IPP=OFF
Note that the WITH_IPP option had been disabled or there would be errors (which I didn't have time to tackle).
I also used lscpu to view my CPU information. Actually I didn't know anything about ``number of hardware threads,'' and I assumed it just equal to the number of CPU multiplied by ``Thread(s) per core.'' I typed ``make -j16'' during the installation.
After the installation, I check the installed version by typing
pkg-config --modversion opencvand it returned
3.0.0Also, in ipython, typed the following command to check the installed version:
In : import cv2But after installing the new version, I couldn't run the python example of generating stereo image because there was no module named createStereoBM... O__Oa
In : print cv2.__version__
That's out of my expectation. I thought the example was under the location of OpenCV 3.0.0, so it should had no problem for me to run the sample code. Another bad news was that the old StereoBM module was also failed.
I just tried the ORB example, but the module was also disappeared from the 3.0.0 version.
After reinstall OpenCV 2.4.9, everything was okay. So now I just have no idea where are the missing modules in OpenCV 3.0.0.