Ask Your Question
0

Installation Open CV 2.4.9 on ubuntu 14.04 LTS

asked 2014-11-05 00:57:58 -0600

masfel gravatar image

updated 2014-11-05 06:39:33 -0600

-- The CXX compiler identification is GNU 4.8.2
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:56 (message):
  Could not find compiler set in environment variable CC:

  /usr/bin/colorgcc.
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)

Please, someone can help me, i m installing opencv2.4.9 on ubuntu. with this command :

cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON ./

I have this error :

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /home/jordan/opencv-2.4.9/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/jordan/opencv-2.4.9/build/CMakeFiles/CMakeOutput.log".
edit retag flag offensive close merge delete

Comments

Actually this error means that you do not have a C compiler installed on your system. Did you try a sudo apt-get install gcc g++?

StevenPuttemans gravatar imageStevenPuttemans ( 2014-11-05 06:47:19 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-05 01:24:56 -0600

use sudo as seen below:

sudo cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON ./

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-11-05 00:57:58 -0600

Seen: 964 times

Last updated: Nov 05 '14