Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Make issue

Hi All,

I want to install openCV2.1 for my ubuntu 10.04 LTS. I tried the steps provided in this url http://subsumption.blogspot.in/2010/05/opencv-21-on-ubuntu-1004.html?q=opencv

But during the cmake phase, I am getting the following error;

-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/usr/bin/gcc -Wall -Wextra -Werror -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTryCompileExec

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

/usr/bin/gcc -Wall -Wextra -Werror
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec -rdynamic

/usr/bin/ld: cannot find /usr/lib/libc_nonshared.a

collect2: ld returned 1 exit status

make[1]: * [cmTryCompileExec] Error 1

make[1]: Leaving directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

make: * [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first):
CMakeLists.txt:39 (project)

-- Configuring incomplete, errors occurred! nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ clear nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/usr/bin/gcc -Wall -Wextra -Werror -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTryCompileExec

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

/usr/bin/gcc -Wall -Wextra -Werror
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec -rdynamic

/usr/bin/ld: cannot find /usr/lib/libc_nonshared.a

collect2: ld returned 1 exit status

make[1]: * [cmTryCompileExec] Error 1

make[1]: Leaving directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

make: * [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first):
CMakeLists.txt:39 (project)

-- Configuring incomplete, errors occurred!

I need to install OpenCV as it is a dependency to my Sikuli. Can any one help to resolve this issue ? Thanks in Advance.

OpenCV Make issue

Hi All,

I want to install openCV2.1 for my ubuntu 10.04 LTS. I tried the steps provided in this url http://subsumption.blogspot.in/2010/05/opencv-21-on-ubuntu-1004.html?q=opencv

But during the cmake phase, I am getting the following error;

-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/usr/bin/gcc -Wall -Wextra -Werror -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTryCompileExec

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

/usr/bin/gcc -Wall -Wextra -Werror
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec -rdynamic

/usr/bin/ld: cannot find /usr/lib/libc_nonshared.a

collect2: ld returned 1 exit status

make[1]: * [cmTryCompileExec] Error 1

make[1]: Leaving directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

make: * [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first):
CMakeLists.txt:39 (project)

-- Configuring incomplete, errors occurred! nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ clear nga@ccp-sint:~/OpenCV-2.1.0/opencv.build$ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

/usr/bin/gcc -Wall -Wextra -Werror -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c /home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTryCompileExec

/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

/usr/bin/gcc -Wall -Wextra -Werror
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec -rdynamic

/usr/bin/ld: cannot find /usr/lib/libc_nonshared.a

collect2: ld returned 1 exit status

make[1]: * [cmTryCompileExec] Error 1

make[1]: Leaving directory `/home/nga/OpenCV-2.1.0/CMakeFiles/CMakeTmp'

make: * [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project. Call Stack (most recent call first):
CMakeLists.txt:39 (project)

-- Configuring incomplete, errors occurred!

I need to install OpenCV as it is a dependency to my Sikuli. Can any one help to resolve this issue ? Thanks in Advance.