Compilation of OpenCV for iOS fails - Cmake does not work

I am trying to compile OpenCV for ios. I get these errors all the time. I tried it with different versions of opencv, but the result is the same.

I run this: python platform / ios / build_framework.py ios_opencv_build

I have python, cmake, and g ++ compilers installed. Does anyone know what these errors mean and what should I do to successfully compile?

-- Setting up iPhoneOS toolchain -- iPhoneOS toolchain loaded -- Setting up iPhoneOS toolchain -- iPhoneOS toolchain loaded -- The CXX compiler identification is Clang 5.1.0 -- The C compiler identification is Clang 5.1.0 -- Performing Test HAVE_CXX_FSIGNED_CHAR CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed -- Performing Test HAVE_C_FSIGNED_CHAR CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Performing Test HAVE_C_FSIGNED_CHAR - Failed -- Performing Test HAVE_CXX_W CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) ... 
0
source share
1 answer

There seems to be a problem with the old version of CMake. Try upgrading to the latest CMake available from their website (which OS version and CMake version are you using?)

See also: http://answers.opencv.org/question/6789/problem-with-installation-opencv/ and this (I think this problem was similar): https://github.com/urho3d/Urho3D/issues / 308

+2
source

All Articles