Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Env
如何新建rt-thread 工程
发布于 2018-05-24 14:34:42 浏览:4897
订阅该版
* 本帖最后由 zhanxiaozhang 于 2018-5-24 14:51 编辑 * 各位高手,我在新增项目的时候,把bsp下的工程copy一份到我的工程位置(不在rt-thread 目录下) 系统变量换了RTT_ROOT 为rt-thread 的根目录 编译的时候出现错误: ImportError: No module named building: File "F:\Workspace\2018\Stm32_rt_thread_demo\first_demo\code\SConstruct", line 13: from building import * F:\Workspace\tools t-thread-master\这个是rtt的root F:\Workspace\2018\Stm32_rt_thread_demo\first_demo\code这个是bsp 下copy过来的 请指教。 一般我们的工程不可能在rt-thread的bsp下面建工程,都是在其他地方建立自己的工程和code,其他component和kernel source 等都放在rt-thread 的地方。 还请指教。
查看更多
3
个回答
默认排序
按发布时间排序
zhanxiaozhang
2018-05-24
这家伙很懒,什么也没写!
[i=s] 本帖最后由 zhanxiaozhang 于 2018-5-24 15:50 编辑 [/i] 找到问题了,‘\’是转义字符,需要‘\\’ 但是,env找不到RTT_ROOT ,实际已经设置到了系统环境变量 menuconfig menuconfig command should be used in a bsp root path with a Kconfig file, you should check if there is a Kconfig file in your bsp root first. And then you can check Kconfig file and modify the default option below to your rtthread root path. config $RTT_DIR string option env="RTT_ROOT" default "../.." example: default "F:/git_repositories/rt-thread" using command 'set RTT_ROOT=your_rtthread_root_path' to set RTT_ROOT is ok too. you can ignore debug messages below. Kconfig:3:warning: ignoring unsupported character '$' Kconfig:3:warning: environment variable BSP_ROOT undefined Kconfig:8:warning: ignoring unsupported character '$' Kconfig:8:warning: environment variable RTT_ROOT undefined Kconfig:13:warning: ignoring unsupported character '$' Kconfig:18: can't open file "../../Kconfig" Try the command
Enable the auto update option,env will auto update the packages you select. All the selected packages have been downloaded successfully. Operation completed successfully. Auto update packages done Select the project type your bsp support and then env will create a new mdk/iar project.
nicole.088
2018-06-01
这家伙很懒,什么也没写!
也遇到此问题,怎么破?
haisen668
2018-11-30
这家伙很懒,什么也没写!
set RTT_ROOT=D:\\你的路劲\\rt-thread 是用 \\ 区分
撰写答案
登录
注册新账号
关注者
0
被浏览
4.9k
关于作者
zhanxiaozhang
这家伙很懒,什么也没写!
提问
2
回答
10
被采纳
0
关注TA
发私信
相关问题
1
用scons构建代码出现问题
2
求助用scons生成不了mdk工程
3
关于使用scons编译的问题
4
关于scons 编译CPP问题求教
5
scons编译出现警告信息
6
SCons生成MDK5工程出错
7
realtouch的scons问题
8
SCons的PreAction能用吗?
9
scons 编译时出错。
10
求教:关于scons构建rtt时的两个问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
基于RT-Thread的STM32F4开发第三讲——DAC
2
Wireshark抓包EtherCAT报文
3
RISC-V hardfault分析工具,RTTHREAD-RVBACKTRACE 原理讲解
4
基于RT-Thread的STM32G4开发第二讲第二篇——ADC
5
基于RT-Thread的STM32F4开发第二讲第一篇——ADC
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
cubemx
UART
ESP8266
WIZnet_W5500
BSP
ota在线升级
PWM
flash
packages_软件包
freemodbus
潘多拉开发板_Pandora
ADC
GD32
定时器
编译报错
flashDB
keil_MDK
socket
中断
rt_mq_消息队列_msg_queue
Debug
ulog
SFUD
msh
C++_cpp
at_device
本月问答贡献
出出啊
1524
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
818
个答案
179
次被采纳
crystal266
555
个答案
162
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
1
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
2
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部