gpt4 book ai didi

android - 关于移植VXL到android的错误

转载 作者:行者123 更新时间:2023-11-30 04:00:10 24 4
gpt4 key购买 nike

我想把VXL(the Vision-something-Libraries)移植到android平台,我用的交叉编译器是android-cmake。你可以从 url http://vxl.sourceforge.net/ 获取 VXL .我使用的版本是vxl-1.14.0你可以从 url http://code.google.com/p/android-cmake/ 获取 android-camke

当我为 cmake 正确设置我的 NDK,并指定独立工具链作为 android-camke 的引入。然后,我使用 andriod-camke 编译 VXL。但是我遇到了很多错误。它无法生成 Makefile .有人知道为什么吗?

接下来是错误日志。

l00138375@l00138375:/home/hm/build-vxl$ android-cmake ../vxl-1.14.0
CMake Warning at /home/hm/android/android-cmake/toolchain/android.toolchain.cmake:281 (message):
Using value of obsolete variable ANDROID_NDK_TOOLCHAIN_ROOT as initial
value for ANDROID_STANDALONE_TOOLCHAIN. Please note, that
ANDROID_NDK_TOOLCHAIN_ROOT can be completely removed in future versions of
the toolchain.
Call Stack (most recent call first):
/home/hm/android/android-cmake/toolchain/android.toolchain.cmake:376 (__INIT_VARIABLE)
/usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89 (INCLUDE)
CMakeLists.txt:13 (PROJECT)

........

-- Check if the system is big endian - little endian
-- Performing Test VCL_CHAR_IS_SIGNED
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
VCL_CHAR_IS_SIGNED (advanced)
VCL_CHAR_IS_SIGNED__TRYRUN_OUTPUT (advanced)
For details see /home/hm/build-vxl/TryRunResults.cmake
-- Performing Test VCL_CHAR_IS_SIGNED - Failed
-- Looking for 8-bit int. [Checking char...]
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
RUN_RESULT (advanced)
RUN_RESULT__TRYRUN_OUTPUT (advanced)
For details see /home/hm/build-vxl/TryRunResults.cmake
.........
-- Performing Test VCL_NUMERIC_LIMITS_HAS_INFINITY
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
VCL_NUMERIC_LIMITS_HAS_INFINITY (advanced)
VCL_NUMERIC_LIMITS_HAS_INFINITY__TRYRUN_OUTPUT (advanced)
For details see /home/hm/build-vxl/TryRunResults.cmake
-- Performing Test VCL_NUMERIC_LIMITS_HAS_INFINITY - Failed
-- Performing Test VCL_PROCESSOR_HAS_INFINITY
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
VCL_PROCESSOR_HAS_INFINITY (advanced)
VCL_PROCESSOR_HAS_INFINITY__TRYRUN_OUTPUT (advanced)
For details see /home/hm/build-vxl/TryRunResults.cmake
-- Performing Test VCL_PROCESSOR_HAS_INFINITY - Failed
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Could NOT find DC1394 (missing: DC1394_LIBRARIES DC1394_INCLUDE_DIR)
-- Performing Test DIRECTSHOW_SOURCE_COMPILES
-- Performing Test DIRECTSHOW_SOURCE_COMPILES - Failed
CMake Error at config/cmake/Modules/NewCMake/FindDirectShow.cmake:101 (MESSAGE):
Uncomment code below: FindPackageHandleStandardArgs is now available.
Call Stack (most recent call first):
core/vidl/CMakeLists.txt:13 (INCLUDE)

最佳答案

正如 Andrey 的评论所提到的,VXL 使用 CMake 的方式阻止了交叉编译。然而,还有另一种选择。其中一位维护者维护包含核心库的替代构建系统的分支。 vxl-build-makefiles 分支应该是修改以使用交叉编译器的良好起点。

http://sourceforge.net/p/vxl/svn/36716/tree/branches/vxl-build-makefiles/

如果您对使用该分支有任何疑问,或者对 VXL 有任何其他疑问 - vxl 邮件列表可能更有用。 vxl-users@lists.sourceforge.net

关于android - 关于移植VXL到android的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12632506/

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