Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Env
如何新建rt-thread 工程
发布于 2018-05-24 14:34:42 浏览:4634
订阅该版
* 本帖最后由 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.6k
关于作者
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
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
国产MCU移植系列教程汇总,欢迎查看!
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
[RA8D1-Vision Board] sd卡实践
2
FRDM-MCXN947开发板之RGB LED驱动
3
NXP MCXN947 测评(2)基于GPIO 控制实现DHT11 温湿度采集
4
RT-Thread Vision Board - Bare Metal Project with VSCode/PyOCD/Cortex-Debug
5
【学习分享】libc切换 -- 从newlib切换到mlibc
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
Hardfault
CAN总线
FinSH
USB
文件系统
DMA
RT-Thread
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
编译报错
socket
keil_MDK
GD32
MicroPython
msh
Debug
ulog
SFUD
flashDB
SDIO总线
rt_mq_消息队列_msg_queue
本月问答贡献
用户名由3_15位
19
个答案
3
次被采纳
踩姑娘的小蘑菇
16
个答案
3
次被采纳
xiaorui
7
个答案
3
次被采纳
sakumisu
5
个答案
3
次被采纳
三世执戟
32
个答案
1
次被采纳
本月文章贡献
比特饼干
3
篇文章
10
次点赞
Z_Y
2
篇文章
5
次点赞
xusiwei1236
2
篇文章
3
次点赞
yinxiangxv
2
篇文章
3
次点赞
Alipay
2
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部