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就可以了;

 

 

相关文章:

  • 2021-08-11
  • 2021-07-31
  • 2022-12-23
  • 2021-11-13
  • 2021-10-25
猜你喜欢
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案