sách gpt4 ai đã đi

Biên dịch OpenCV cho iOS không thành công - Cmake không thành công

In lại 作者:行者123 更新时间:2023-11-28 02:50:42 27 4
mua khóa gpt4 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)
...

1 Câu trả lời

这似乎是旧版 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/

27 4 0
Bài viết được đề xuất: c++ - 使用 { } 的 Visual Studio 2012 C++ 数组初始化
Bài viết được đề xuất: c++ - map 初始化 map
Bài viết được đề xuất: c++ - 按名称调用(正常顺序评估)
Bài viết được đề xuất: c++ - 从 xlslib 构建 dll 文件
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com