rohini
Posts: 13
Joined: Tue Jul 24, 2018 2:28 pm

Open CV Cmake g++ does not work on Raspbian jessie

Tue Jul 24, 2018 2:31 pm

I am compiling Open CV library on Raspbian jessie. I get below error .

Code: Select all

Check for working CXX compiler: /usr/bin/g++ -- broken
>     CMake Error at /usr/share/cmake-3.6/Modules/CMakeTestCXXCompiler.cmake:54 (message):
>       The C++ compiler "/usr/bin/g++" is not able to compile a simple test
>       program.
]
I pointed it to g++-4.9 as well. Still I face the same issue. Any suggestions ?

rohini
Posts: 13
Joined: Tue Jul 24, 2018 2:28 pm

Re: Open CV Cmake g++ does not work on Raspbian jessie

Tue Jul 24, 2018 7:28 pm

Here is what I found. I had two versions g++ and g++-4.9. I uninstalled both of them .Just installed g++4.9 and changed the path to /usr/bin/g++4.9. It solved the problem!

Return to “C/C++”