OpenCV 2.4.5 - Compilind form source - CMakeLists: CMAKE_MINIMUM_REQUIRED (Bug #3062)
Description
My linux distribution is: SLE 11 SP2
CMake 2.6 patch 2 installed from zypper:
sudo zypper in cmake
I get this error when compiling opencv from source:
.../opencv-2.4.5/CMakeLists.txt:113:
Parse error. Function missing ending ")". Instead found left paren
with text "(".
This thread pointed out same error on CMAKE_MINIMUM_REQUIRED version for other software:
http://www.ogre3d.org/forums/viewtopic.php?f=4&t=56103
I downloaded the latest cmake and compiled it from source (cmake 2.8.11). That fixed it.
I contacted Jose Luis Blanco (originial CMakeLists author) and he pointed me out cmake 2.6.x has support for parethesis so he thinks this needs a closer look.
Associated revisions
Merge pull request #3062 from alalek:fix_ios_framework
History
Updated by Daniil Osokin almost 12 years ago
Hi, Martin!
Thank you for attention. Could you please submit a pull request with bugfix (http://code.opencv.org/projects/opencv/wiki/How_to_contribute)?
- Category set to build/install
- Target version set to 2.4.6
- Assignee set to Martin Etchart
Updated by Martin Etchart almost 12 years ago
Should the bugfix change the CMAKE_MINIMUM_REQUIRED to 2.8 in CMakeLists.txt?
This would be a bit drastic and I'm not sure if this is necessary as Jose Luis Blanco pointed me out...
Updated by Martin Etchart almost 12 years ago
Should the bugfix change the CMAKE_MINIMUM_REQUIRED to 2.8 in CMakeLists.txt?
This would be a bit drastic and I'm not sure if this is necessary as Jose Luis Blanco pointed me out...
Updated by Daniil Osokin almost 12 years ago
I can be wrong, but OpenCV's developers will maintain this question, when you pull request this.
Updated by Vladislav Vinogradov over 11 years ago
I checked 2.4 branch with CMake version 2.6-patch 4 and it works.
So I'm closing this issue, because it probably appears only with old cmake version.
- Status changed from Open to Cancelled