OpenCV 2.4 - CMake fails on Ubuntu 11.10 (Bug #1903)


Added by Federico Perazzi almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-05-08
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.1
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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})


OpenCVDetectPython.patch (575 Bytes) Andrey Kamaev, 2012-05-10 11:03 am


Associated revisions

Revision 78915e01
Added by Andrey Kamaev almost 13 years ago

Fixed python version issue #1903

Revision e585f145
Added by Andrey Pavlenko over 11 years ago

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

Also available in: Atom PDF