linux so needed by not found,库的编译问题
我司采用dueros的sdk发现编译出问题
其中有两个地方有错误
第一个是链接的库都是libdl.so.0, libm.so.0 , libc.so.0。这些库都是不存在的。
第二个是链接使用的函数都是fstat64等,我们嵌入式设备的都是32位,不知道为啥要用这样的函数,另外也是编译不过去。
$ mips-linux-gnu-g++ main_demo.o -D_FILE_OFFSET_BITS=32 -L./../deps_libs/ -lcharset -lcrypto -lcurl -lssl -lz -liconv -lpthread -lduersdk -ljsoncpp
/opt/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: warning: libdl.so.0, needed by ./../deps_libs//libduersdk.so, not found (try using -rpath or -rpath-link)
/opt/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: warning: libm.so.0, needed by ./../deps_libs//libduersdk.so, not found (try using -rpath or -rpath-link)
/opt/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: warning: libc.so.0, needed by ./../deps_libs//libduersdk.so, not found (try using -rpath or -rpath-link)
/opt/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: a.out: hidden symbol `fstat64' in /opt/mips-gcc472-glibc216-64bit/bin/../mips-linux-gnu/libc/usr/lib/libc_nonshared.a(fstat64.oS) is referenced by DSO
/opt/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)