参考:linux交叉编译时报错:file not recognized: File format not recognized
/home/zhenglf/Documents/VIP/drivers/driver_810/6.3.1.9/build/sdk/drivers/libOpenVX.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'resnet50cambicon' failed
zhenglf@hwlnx01:~/Documents/byhl_vip/TrainerScripts/script/script/resnet50_1015/for_ovxlib/dyn_int8_4_hardware$ file /home/zhenglf/Documents/VIP/drivers/driver_810/6.3.1.9/build/sdk/drivers/libOpenVX.so
/home/zhenglf/Documents/VIP/drivers/driver_810/6.3.1.9/build/sdk/drivers/libOpenVX.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a398ce52eaf91e377bbe4f93203efe7df0b54a9e, not stripped
zhenglf@hwlnx01:~/Documents/byhl_vip/TrainerScripts/script/script/resnet50_1015/for_ovxlib/dyn_int8_4_hardware$
手动删除所有.o, .so等编译生成的文件,不要用make clean,因为可能make clean删除不到一些中间文件
使用新的编译器,重新编译新版本
zhenglf@hwlnx01:/nfs-share/nfs/VIP/ck810/sdk/drivers$ file libOpenVX.so
libOpenVX.so: ELF 32-bit LSB shared object, Motorola RCE, version 1 (SYSV), dynamically linked, not stripped
zhenglf@hwlnx01:/nfs-share/nfs/VIP/ck810/sdk/drivers$