caffe能否移植到arm平台( 七 )


问题原因:链接的问题
shunzhi@ubuntu:/opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/usr/local/lib$ arm-hisiv500-linux-readelf -d libopencv_shape.so
Dynamic section at offset 0x2f7c0 contains 30 entries: Tag Type Name/Value0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x00000001 (NEEDED) Shared library: 0x0000000c (INIT) 0x37a80x0000000d (FINI) 0x2b3880x00000019 (INIT_ARRAY) 0x3f0000x0000001b (INIT_ARRAYSZ) 32 (bytes)0x0000001a (FINI_ARRAY) 0x3f0200x0000001c (FINI_ARRAYSZ) 4 (bytes)0x00000004 (HASH) 0xd40x00000005 (STRTAB) 0x10bc0x00000006 (SYMTAB) 0x5ac0x0000000a (STRSZ) 5274 (bytes)0x0000000b (SYMENT) 16 (bytes)0x00000003 (PLTGOT) 0x3f8d00x00000002 (PLTRELSZ) 872 (bytes)0x00000014 (PLTREL) REL0x00000017 (JMPREL) 0x34400x00000011 (REL) 0x26d80x00000012 (RELSZ) 3432 (bytes)0x00000013 (RELENT) 8 (bytes)0x6ffffffe (VERNEED) 0x26b80x6fffffff (VERNEEDNUM) 10x6ffffff0 (VERSYM) 0x25560x6ffffffa (RELCOUNT) 2340x00000000 (NULL) 0x0
解决方案:在当前opencv库的位置新建一个相对路径的lib库mkdir ../../libcp libopencv* ../../lib
2.问题描述:
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp/opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/usr/local/lib/libboost_filesystem.so: warning: the use of OBSOLESCENT `utime\u0026#39; is discouraged, use `utimes\u0026#39;/opt/hisi-linux/x86-arm/arm-hisiv500-linux/bin/../lib/gcc/arm-hisiv500-linux-uclibcgnueabi/4.9.4/../../../../arm-hisiv500-linux-uclibcgnueabi/bin/ld: /opt/hisi-linux/x86-arm/arm-hisiv500-linux/bin/../target/lib/libpthread.so.0: undefined reference to symbol \u0026#39;dlclose\u0026#39;/opt/hisi-linux/x86-arm/arm-hisiv500-linux/bin/../target/lib/libdl.so.0: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusMakefile:606: recipe for target \u0026#39;.build_release/test/test_all.testbin\u0026#39; failedmake: *** Error 1
原因:缺少ptread,dl,rt库
解决方案:Makefile中添加这三个库。183 LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl-static hdf5-static pthread dl rt
问题描述:训练mnist模型时出现的错误。(未解决)
I0406 10:54:27.313168 722 net.cpp:242] This network produces output accuracy
I0406 10:54:27.313230 722 net.cpp:242] This network produces output loss


推荐阅读