1、有时候明明指定了交叉编译的动态库搜索路径,但有些库提示还是搜索不到,而且提示的搜索路径有点奇怪,不是指定的路径,比如:

 

/opt/mips-4.4/bin/../lib/gcc/mips-linux-gnu/4.4.1/../../../../mips-linux-gnu/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status


在makefile中指定--sysroot=/opt/sdk/staging就可以了;

 

 

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3