#在CMakeLists.txt上添加如下
SET(CMAKE_C_COMPILER "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-uclibc-gcc")
SET(CMAKE_CXX_COMPILER "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-uclibc-g++")
SET(CMAKE_AR "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-uclibc-ar")
SET(CMAKE_LINKER "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-uclibc-ld")
SET(CMAKE_RANLIB "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-ranlib")
SET(CMAKE_NM "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-nm")
SET(CMAKE_OBJDUMP "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-objdump")
SET(CMAKE_OBJCOPY "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-objcopy")
SET(CMAKE_STRIP "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-strip")

#我的openwrt的toolchain地址是:/home/test/openwrt/Toolchain/toolchain

相关文章:

  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2021-11-12
  • 2021-08-31
  • 2022-02-18
  • 2021-07-28
相关资源
相似解决方案