CMake Error at cmake/OpenCVDetectCXXCompiler.cmake
Hello everyone! This is my first post. I'm having trouble with compiling OpenCV in openSUSE Tumbleweed. I get an error when I try to configure with both cmake-gui and cmake. Error is:
CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:85 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:109 (include)
CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:86 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:109 (include)
CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:89 (math):
math cannot parse the expression: "*100 + ": syntax error, unexpected
exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (1)
Call Stack (most recent call first):
CMakeLists.txt:109 (include)
Following line after the error is that:
Detected version of GNU GCC: ()
Is it meaning that something is wrong with the GCC, because there should be version written inside the brackets?
I don't know much about cmake to solve this problem, so unfortunately I'm stuck.
cmake version 3.2.3 gcc version 5.1.1 20150622 [gcc-5-branch revision 224722] (SUSE Linux) Itried both opencv-3.0.0 and opencv-master but got same error.