Open ashgillman opened 9 years ago
Hi @ashgillman,
thank you for the info.
You are right, the CMakeLists.txt should be updated, because for OSX, UNIX is also set to true by CMake.
Same error on my Ubuntu 16.06 machine. I fixed the issue by modifying if statement in line 8 of the file /examples/CMakeLists.txt
:
if (${OpenCV_VERSION_MINOR} **LESS** 3)
to if (${OpenCV_VERSION_MINOR} **GREATER** 3)
, and of course corresponding endif statement in line 26. Both if (line 8) and else (line 17) statements were written for less than 3 case mistakenly and therefore, it enters into the if statement although my minor version is greater than 3. Need to fix this @uricamic.
I had an error compiling on OSX Yosemite
I was able to fix by modifying
/examples/CMakeLists.txt
and commenting out lines 10 and 11.Although, this would probably break the installation on other systems. I believe there may be some issue preventing the installer from setting the
UNIX
variable false.