我尝试为ios编译OpenCV。我一直都会遇到这些错误。我尝试使用不同版本的opencv,但结果是一样的。
我运行这个: python platforms / 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)
...
答案 0 :(得分:2)
看起来像旧版CMake的问题。尝试从他们的网站更新到最新的CMake(你使用哪个操作系统版本和CMake版本?)
另见:http://answers.opencv.org/question/6789/problem-with-installation-opencv/ 这个(我认为这个问题很相似):https://github.com/urho3d/Urho3D/issues/308