title: Installing OpenCV in Raspberry Pi error while doing make
body: <p>I am getting the following errors after doing running 'make' command. </p>
  
  <pre><code>[  0%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.o
  c++: error: -pg and -fomit-frame-pointer are incompatible
  make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/matmul.o] Error 1
  make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>I am following the tutorial on <a href="http://mitchtech.net/raspberry-pi-opencv/" rel="nofollow">http://mitchtech.net/raspberry-pi-opencv/</a> link. </p>
  
  <p>Following were missing when i did cmake before doing make:</p>
  
  <pre><code>cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
  -- Detected version of GNU GCC: 46 (406)
  -- checking for module 'gstreamer-app-0.10'
  --   package 'gstreamer-app-0.10' not found
  -- checking for module 'gstreamer-video-0.10'
  --   package 'gstreamer-video-0.10' not found
  -- checking for module 'libswscale'
  --   package 'libswscale' not found
  -- Could NOT find Jasper (missing:  JASPER_LIBRARIES JASPER_INCLUDE_DIR) 
  --     Use NumPy headers from: /usr/lib/pymodules/python2.7/numpy/core/include
  Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  ImportError: No module named sphinx
  CUDA_TOOLKIT_ROOT_DIR not found or specified
  -- Could NOT find CUDA (missing:  CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.0")
  -- Parsing 'cvconfig.h.cmake'
  </code></pre>
  
  <p>Can somebody please explain what is happening and what is the solution to it ? I am new to both OpenCV and R-Pi.</p>