RT-Thread / userapps

user applications for rt-smart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smart-env.sh配置工具链路径错误

60999 opened this issue · comments

commented

ubuntu系统,在userapps\tools目录下运行get_toolchain.py的脚本

:~/userapps/tools$ python3 get_toolchain.py riscv64

之后

:~/userapps/tools$ cd ..
:~/userapps$ ./smart-env.sh riscv64
Arch      => riscv64
CC        => gcc
PREFIX    => riscv64-unknown-linux-musl-
EXEC_PATH => /home/auser/userapps/tools/gnu_gcc/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin

这里就不对吧?
之后
使用set命令检查RTT_EXEC_PATH是否设置成功 用什么具体命令呢?

再编译,总是如下错误

:~/userapps$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
CC apps/webclient/packages/webclient-v2.1.2/src/webclient.o
sh: 1: riscv64-unknown-linux-musl-gcc: not found
scons: *** [apps/webclient/packages/webclient-v2.1.2/src/webclient.o] Error 127
scons: building terminated because of errors.

请问该如何处理?

userapps 已经使用xmake进行构建,scons已经不适用了