The wiki guide to use cmake didn’t quite work, I went ahead with ccmake (the command-line GUI equivalent):
ccmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/ianozsvald -D BUILD_PYTHON_SUPPORT=ON ..
Next I moved through the menu to set:
- BUILD_EXAMPLES ON
- INSTALL_C_EXAMPLES ON
- INSTALL_PYTHON_EXAMPLES ON
Next I used ‘t’ to turn on advanced options and configued:
To finish I used ‘c’ to create settings and ‘g’ to generate setup files. Now ‘make’ and ‘make install’ did their job (it took 10 minutes to compile). In ‘~/bin’ I saw ‘opencv_createsamples’ which shows that openCV built ok.
Finally I copied the build directory’s lib/cv.so to ‘~/lib/’ and then in python2.5 I tried ‘import cv’ and it worked. In the build directory’s ‘~/bin’ I ran ‘./cxcoretest’ and all tests passed.