gpt4 book ai didi

c++ - 为 iOS 编译 OpenCV 失败 - Cmake 失败

转载 作者:行者123 更新时间:2023-11-28 02:50:42 26 4
gpt4 key购买 nike

我尝试为 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

关于c++ - 为 iOS 编译 OpenCV 失败 - Cmake 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23131249/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com