编译OpenCV for iOS失败 – Cmake失败
我尝试为ios编译OpenCV。 我总是得到这些错误。 我尝试了不同版本的opencv,但结果是一样的。
我运行这个:python平台/ ios / build_framework.py ios_opencv_build
我安装了python,cmake和g ++编译器。 有没有人有一个想法这些错误是什么意思,我应该做什么编译成功?
-- 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) ...
这似乎是与旧版本的CMake的问题。 尝试更新到最新的CMake可从他们的网站(您使用的操作系统版本和CMake版本?)
另见: http : //answers.opencv.org/question/6789/problem-with-installation-opencv/和这个(我认为这个问题是相似的): https : //github.com/urho3d/Urho3D/issues/ 308