用clang交叉编译

时间:2017-07-21 20:53:57

标签: c++ linux arm

我试图将程序从x86_64 linux机器交叉编译为arm 64位(aarch64)格式。我尝试交叉编译的文件使用OpenCV。我能够成功交叉编译不包含外部库的程序,但是当我包含OpenCV时,我收到以下错误:

/usr/local/lib/libopencv_shape.so.3.2.0: error adding symbols: File in wrong format
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [helloworld] Error 1
make[1]: *** [CMakeFiles/helloworld.dir/all] Error 2
make: *** [all] Error 2

非常感谢任何帮助!

0 个答案:

没有答案