libtool 链接时 cannot find the library "libstdc++.la" 40C

大家好,我在编译一个makefile时,出现:

/bin/sh ../libtool    --mode=link arm-himix200-linux-gcc  -I/home/HI3519AV100/Normal/4kapp/3rd-party/include -Wstrict-prototypes -pipe  -L/home/HI3519AV100/Normal/4kapp/3rd-party/lib -o scrnsaver scrnsaver.o custom_minigui.o  -L/home/HI3519AV100/Normal/4kapp/3rd-party/lib -lminigui_procs -ljpeg -lpng16 -lz -lm -lpthread -lfreetype -lharfbuzz -lharfbuzz-subset 
mkdir .libs
libtool: link: cannot find the library `/usr1/code/CODE_CCTD_V1R2C00/code/current/SDK_CPU_UNIFIED/build/script/arm-himix200-linux/arm_himix200_build_dir/install/arm-linux-gnueabi/lib/libstdc++.la'

我对libtool链接不是很了解,不太清楚如何确定

`/usr1/code/CODE_CCTD_V1R2C00/code/current/SDK_CPU_UNIFIED/build/script/arm-himix200-linux/arm_himix200_build_dir/install/arm-linux-gnueabi/lib/libstdc++.la'

这个奇怪的路径(usr1目录都没有),我在安装好的交叉编译链目录下倒是能找到libstdc++.la,是否可以修改什么环境变量让libtool能找到这个文件? 我尝试过手动创建上面那个奇怪的路径,并将libstdc++.la拷贝过去,发现这个问题能通过了,但是报了一堆找不到libc.so的错误:

/opt/hisi-linux/x86-arm/arm-himix200-linux/host_bin/../lib/gcc/arm-linux-gnueabi/6.3.0/../../../../arm-linux-gnueabi/bin/ld: warning: libc.so, needed by /opt/hisi-linux/x86-arm/arm-himix200-linux/arm-himix200-linux/lib/libstdc++.so, not found (try using -rpath or -rpath-link)
/opt/hisi-linux/x86-arm/arm-himix200-linux/arm-himix200-linux/lib/libstdc++.so: undefined reference to strtod@LIBC'
/opt/hisi-linux/x86-arm/arm-himix200-linux/arm-himix200-linux/lib/libstdc++.so: undefined reference to
towlower@LIBC'
/opt/hisi-linux/x86-arm/arm-himix200-linux/arm-himix200-linux/lib/libstdc++.so: undefined reference to __kernel_cmpxchg'
/opt/hisi-linux/x86-arm/arm-himix200-linux/arm-himix200-linux/lib/libstdc++.so: undefined reference to
tanh@LIBC'

有什么解决方法么?

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!