Execute the following commands:
Now make sure everything worked and was found. If you get errors you need to fix them now or else you will have issues completing a successful install.
- mkdir opencv
- svn co https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary/trunk opencv
- cd opencv/opencv
- mkdir release
- cd release
- sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ../
Execute the following:
- sudo make
- sudo make install
If everything goes as planned OpenCV should compile successfully (100% during the make). If not check your libraries and if all else fails try getting the code from the SVN again.
There it is, you have installed OpenCV from source!
Update #1:
If you receive the error from cxcorr.hpp indicating that ptrdiff_t does not name a type, please add this line of code to cxcorr.hpp (as indicated by stackoverflow.com):
- #include <stddef.h>
No comments:
Post a Comment