Table of Contents

new OpenCV & video4linux RPi camera support

Finally, it happened: as of 2014, May, the new 2.4.9 OpenCV release features support for Raspberry Pi camera module :)
This will leverage the needs for a seamless usage of our camera within openCV code.

openCV install

Finally, you're now ready to launch the longuest part of this tutorial: lastest openCV installation.
Some of the information below have been borrowed over the Internet and adapted to the available software at the time of writing (2014, June).

[4] build options
After having launched ncurse version of the cmake gui, press c to configure with the following options:

ANT_EXECUTABLE ANT_EXECUTABLE-NOTFOUND
BUILD_DOCS OFF
BUILD_EXAMPLES OFF
BUILD_JASPER ON
BUILD_JPEG ON
BUILD_OPENEXR ON
BUILD_PACKAGE ON
BUILD_PERF_TESTS ON
BUILD_PNG ON
BUILD_SHARED_LIBS ON
BUILD_TBB OFF
BUILD_TESTS ON
BUILD_TIFF ON
BUILD_WITH_DEBUG_INFO ON
BUILD_ZLIB ON
BUILD_opencv_apps ON
BUILD_opencv_calib3d ON
BUILD_opencv_contrib ON
BUILD_opencv_core ON
BUILD_opencv_features2d ON
BUILD_opencv_flann ON
BUILD_opencv_gpu ON
BUILD_opencv_highgui ON
BUILD_opencv_imgproc ON
BUILD_opencv_legacy ON
BUILD_opencv_ml ON
BUILD_opencv_nonfree ON
BUILD_opencv_objdetect ON
BUILD_opencv_ocl ON
BUILD_opencv_photo ON
BUILD_opencv_python ON
BUILD_opencv_stitching ON
BUILD_opencv_superres ON
BUILD_opencv_ts ON
BUILD_opencv_video ON
BUILD_opencv_videostab ON
BUILD_opencv_world OFF
CLAMDBLAS_INCLUDE_DIR CLAMDBLAS_INCLUDE_DIR-NOTFOUND
CLAMDBLAS_ROOT_DIR CLAMDBLAS_ROOT_DIR-NOTFOUND
CLAMDFFT_INCLUDE_DIR CLAMDFFT_INCLUDE_DIR-NOTFOUND
CLAMDFFT_ROOT_DIR CLAMDFFT_ROOT_DIR-NOTFOUND
CMAKE_BUILD_TYPE Release
CMAKE_CONFIGURATION_TYPES Debug;Release
CMAKE_INSTALL_PREFIX /usr/local
CMAKE_VERBOSE OFF
CUDA_BUILD_CUBIN OFF
CUDA_BUILD_EMULATION OFF
CUDA_HOST_COMPILER /usr/bin/gcc
CUDA_SDK_ROOT_DIR CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_SEPARABLE_COMPILATION OFF
CUDA_TOOLKIT_ROOT_DIR CUDA_TOOLKIT_ROOT_DIR-NOTFOUND
CUDA_VERBOSE_BUILD OFF
EIGEN_INCLUDE_PATH /usr/include/eigen3
ENABLE_COVERAGE OFF
ENABLE_NEON OFF
ENABLE_NOISY_WARNINGS OFF
ENABLE_OMIT_FRAME_POINTER ON
ENABLE_PRECOMPILED_HEADERS ON
ENABLE_PROFILING OFF
ENABLE_SOLUTION_FOLDERS OFF
ENABLE_VFPV3 OFF
EXECUTABLE_OUTPUT_PATH /root/opencv-2.4.9/release/bin
GIGEAPI_INCLUDE_PATH GIGEAPI_INCLUDE_PATH-NOTFOUND
GIGEAPI_LIBRARIES GIGEAPI_LIBRARIES-NOTFOUND
INSTALL_CREATE_DISTRIB OFF
INSTALL_C_EXAMPLES OFF
INSTALL_PYTHON_EXAMPLES OFF
INSTALL_TESTS OFF
INSTALL_TO_MANGLED_PATHS OFF
OPENCV_CONFIG_FILE_INCLUDE_DIR /root/opencv-2.4.9/release
OPENCV_EXTRA_MODULES_PATH
OPENCV_WARNINGS_ARE_ERRORS OFF
OPENEXR_INCLUDE_PATH OPENEXR_INCLUDE_PATH-NOTFOUND
PVAPI_INCLUDE_PATH PVAPI_INCLUDE_PATH-NOTFOUND
PYTHON_NUMPY_INCLUDE_DIR /usr/lib/pymodules/python2.7/numpy/core/include
PYTHON_PACKAGES_PATH lib/python2.7/dist-packages
SPHINX_BUILD SPHINX_BUILD-NOTFOUND
WITH_1394 OFF
WITH_CUBLAS OFF
WITH_CUDA OFF
WITH_CUFFT OFF
WITH_EIGEN ON
WITH_FFMPEG ON
WITH_GIGEAPI OFF
WITH_GSTREAMER ON
WITH_GTK ON
WITH_JASPER ON
WITH_JPEG ON
WITH_LIBV4L ON
WITH_NVCUVID OFF
WITH_OPENCL OFF
WITH_OPENCLAMDBLAS OFF
WITH_OPENCLAMDFFT OFF
WITH_OPENEXR ON
WITH_OPENGL ON
WITH_OPENMP OFF
WITH_OPENNI OFF
WITH_PNG ON
WITH_PVAPI ON
WITH_QT OFF
WITH_TBB OFF
WITH_TIFF ON
WITH_UNICAP OFF
WITH_V4L ON
WITH_VTK OFF
WITH_XIMEA OFF
WITH_XINE OFF

… then press 'g' to generate the various makefiles.

[5] build | the 10 hours step!
In order to ease this process, best is to launch it within a tmux session: