代码源ARM工具链下的OpenCV 3.1.0交叉编译错误

时间:2016-07-14 08:38:49

标签: c++ opencv arm codesourcery

为了编译arm v9的opencv 3.1.0,我在Ubuntu下使用了交叉编译代码源 arm-xilinx-linux-gnueabi-gcc的版本是“gcc版本4.6.1(Sourcery CodeBench Lite 2011.09-50)”

参考,我尝试了两个不同的cmake文件来配置

cmake -DCMAKE_TOOLCHAIN_FILE = .. / opencv-3.1.0 / platforms / linux / arm-gnueabi.toolchain.cmake ../ opencv-3.1.0

cmake -DCMAKE_TOOLCHAIN_FILE = toolchain.cmake ../ opencv-3.1.0

这两个将导致以下错误:

linuxuser@linuxuser:~/build$ make
[  2%] Built target zlib
[  7%] Built target libtiff
[ 12%] Built target libjpeg
[ 17%] Built target libwebp
[ 20%] Built target libjasper
[ 20%] Built target opencv_core_pch_dephelp
[ 20%] Built target pch_Generate_opencv_core
[ 20%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o
/home/linuxuser/nfs/opencv-3.1.0/modules/core/src/split.cpp: In function 'void cv::hal::split8u(const uchar*, uchar**, int, int)':
/home/linuxuser/nfs/opencv-3.1.0/modules/core/src/split.cpp:408:1: internal compiler error: in neon_disambiguate_copy, at config/arm/arm.c:20874
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://support.codesourcery.com/GNUToolchain/> for instructions.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2

有人可以帮我解决这个问题吗? 非常感谢

EDITS,

在使用了codeourcery的新版本(2013)后,我现在可以编译3.1.0。谢谢

0 个答案:

没有答案