Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Ubuntu
在 Ubuntu 平台开发 RT-Thread 这个官方示例
发布于 2023-12-15 15:20:46 浏览:534
订阅该版
在 Ubuntu 平台开发 RT-Thread https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/application-note/setup/qemu/ubuntu/an0005-qemu-ubuntu 流程按照文档一步一步走,再最后编译的时候报错找不到结构体,求解? ``` scons: Reading SConscript files ... Newlib version: 2.4.0 scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build/kernel/components/dfs/dfs_v2/filesystems/devfs/devfs.o /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c: In function 'dfs_devfs_stat': /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:479:15: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'? st->st_mtim.tv_nsec = vnode->mtime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:480:15: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'? st->st_mtim.tv_sec = vnode->mtime.tv_sec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:481:15: error: 'struct stat' has no member named 'st_ctim'; did you mean 'st_ctime'? st->st_ctim.tv_nsec = vnode->ctime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:482:15: error: 'struct stat' has no member named 'st_ctim'; did you mean 'st_ctime'? st->st_ctim.tv_sec = vnode->ctime.tv_sec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:483:15: error: 'struct stat' has no member named 'st_atim'; did you mean 'st_atime'? st->st_atim.tv_nsec = vnode->atime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:484:15: error: 'struct stat' has no member named 'st_atim'; did you mean 'st_atime'? st->st_atim.tv_sec = vnode->atime.tv_sec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:500:19: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'? st->st_mtim.tv_nsec = vnode->mtime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:501:19: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'? st->st_mtim.tv_sec = vnode->mtime.tv_sec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:502:19: error: 'struct stat' has no member named 'st_ctim'; did you mean 'st_ctime'? st->st_ctim.tv_nsec = vnode->ctime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:503:19: error: 'struct stat' has no member named 'st_ctim'; did you mean 'st_ctime'? st->st_ctim.tv_sec = vnode->ctime.tv_sec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:504:19: error: 'struct stat' has no member named 'st_atim'; did you mean 'st_atime'? st->st_atim.tv_nsec = vnode->atime.tv_nsec; ^~ /home/maosql/work/rtos/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:505:19: error: 'struct stat' has no member named 'st_atim'; did you mean 'st_atime'? st->st_atim.tv_sec = vnode->atime.tv_sec; ^~ scons: *** [build/kernel/components/dfs/dfs_v2/filesystems/devfs/devfs.o] Error 1 scons: building terminated because of errors. ```
查看更多
2
个回答
默认排序
按发布时间排序
KunYi
2023-12-15
这家伙很懒,什么也没写!
試試看 git clone 完後 check out 到特定 release 版本譬如 git checkout v5.0.2 這樣
a1012112796
2023-12-19
这家伙很懒,什么也没写!
可以参考github 的 workflow 是如何编译的 https://github.com/RT-Thread/rt-thread/actions/runs/7248072749/workflow
撰写答案
登录
注册新账号
关注者
0
被浏览
534
关于作者
maosql
这家伙很懒,什么也没写!
提问
6
回答
4
被采纳
0
关注TA
发私信
相关问题
1
ubuntu下使用RT-Thread时安装的python为什么是2.7的呢?
2
ubuntu 下 mbedtls 编译失败
3
启动失败:qemu-system-arm: command not found
4
请问有没有一种板子可以让ubuntu系统和rt-thread同时运行在上面
5
ubuntu20.04 如何使用pkgs 来更新软件包
6
关于linux scons 命令scons --menuconfig 在之前是好的,隔一段时间没有用,报如下错误?
7
在bsp/x86中编译出来的rt-thread.bin文件可以在ubuntu上运行吗?
8
在pc上,将rt-thread编译到可执行文件中启动,结果发现文件系统没有完成初始化,请教该如何手动去初始化文件系统,完成挂载
9
在pc机上将rt-thread编译到可执行程序中,希望能够访问串口设备文件,请教下该做一些什么配置
10
在x86上运行rt-thread,该如何完成dfs的初始化和挂载,很难找到这方面的资料
推荐文章
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
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
2
RT-Thread EtherKit开源以太网硬件正式发布
3
如何在master上的BSP中添加配置yml文件
4
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
5
RT-Thread 发布 EtherKit开源以太网硬件!
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
MicroPython
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
15
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部