OpenCV 2.4 - CMake fails on Ubuntu 11.10 (Bug #1903)
Description
Here is the error:
CMake Error at cmake/OpenCVUtils.cmake:5 (find_package):
find_package called with invalid argument "2.7.2+"
Call Stack (most recent call first):
cmake/OpenCVDetectPython.cmake:38 (find_host_package)
CMakeLists.txt:469 (include)
The problem is actually in OpenCVDetectPython.cmake that sets PYTHON_VERSION_FULL to 2.7.2+. Possible workaround: set(PYTHON_VERSION_FULL ${PYTHON_VERSION_MAJOR_MINOR})
Associated revisions
Fixed python version issue #1903
Merge pull request #1903 from ilya-lavrenov:tapi_warp
History
Updated by Vadim Pisarevsky almost 13 years ago
- Category set to build/install
- Assignee set to Andrey Kamaev
Updated by Andrey Kamaev almost 13 years ago
Federico, thanks for your report,
And could you provide a complete output of python --version
command from your system?
- Target version set to 2.4.1
Updated by Federico Perazzi almost 13 years ago
python --version: Python 2.7.2+
Updated by Andrey Kamaev almost 13 years ago
Could you test attached patch? Does it solve the problem?
- File OpenCVDetectPython.patch added
Updated by Michael Fang almost 13 years ago
Had the problem in Windows too. The Python version string contains other characters that find_host_package does not allow.
And yes Andrey your fix works!
Updated by Andrey Kamaev almost 13 years ago
Thanks all, the fix is committed to trunk.
- Status changed from Open to Done