交叉编译设置后不生效
#5681
Replies: 2 comments 2 replies
-
交叉编译通常不需要自定义 Toolchain,直接 如果非要自定义 toolchain,一般也只需要设置 sdkdir 。。而你直接设置 cc 。。那么得先确保这些 编译器 已经存在于你的 PATH 中。 可以加 -vD 看下完整 logs 。。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
打印的问题,这样子不能正常获取到当前cc的 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
toolchain("T41")
set_kind("standalone")
set_toolset("cc", "mips-linux-gnu-gcc")
set_toolset("cxx", "mips-linux-gnu-g++")
set_toolset("ld", "mips-linux-gnu-ld")
set_toolset("ar", "mips-linux-gnu-ar")
set_toolset("ex", "mips-linux-gnu-execstack")
set_toolset("strip", "mips-linux-gnu-strip")
set_toolset("as", "mips-linux-gnu-as")
toolchain_end()
-- 设置编译器
set_languages("c++11")
-- 定义目标 sample-Encoder-video
target("sample-Encoder-video")
set_toolchains("T41")
set_kind("binary")
add_links("pthread", "m", "rt")
-- add_packages("T41")
打印出来是找不到cc
Toolchain for cc not found
Beta Was this translation helpful? Give feedback.
All reactions