OpenWrt-Eclipse常见报错

0.背景

yaml 复制代码
Ubuntu 22
OpenWrt LEDE
Eclipse 2023.12

1. 安装四个重要插件

根据官网Using Eclipse for C/C++ Programming and Debugging的提示,eclipse中需要安装如下几个插件:

sql 复制代码
C/C++ Remote Launch Developer Resources
Remote System Explorer End-User Runtime
Remote Launch Targets Developer Resources
Terminal (Console) View Developer Resources

所以我们选择菜单 Help -> Install New Software ,然后取消勾选 Contact all update sites during install to find required software 否则在安装时会反复报错。

2. 新建C++项目

新建C++项目时,要选择到bin目录,官网提示你的目录应该长这样:<buildsystem root>/staging_dir/toolchain-<whatever>/bin,我这边是 lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/bin

再有就是前缀怎么填,前缀不能不填,官网有云:

For example, if you see a file named mips-openwrt-linux-musl-gcc, the toolchain prefix is mips-openwrt-linux-musl-.

对于我来说,就是移到刚才提到的bin目录下,找到mipsel-openwrt-linux-musl-gcc,那么前缀就是mipsel-openwrt-linux-musl-

3. Remote Absolute File Path for C/C++ Application

这一栏要填绝对路径,不能只到某个目录下。比如填写成 /root/hello

4. gdbserver: not found

这个错误是在 make menuconfig 时,忘记选上开发需要的 gdbserver 了。我们在 Development

相关推荐
嵌入式分享27 分钟前
嵌入式分享#22:嵌入式外设调试思路——MIPI CSI 调试篇
嵌入式
beluge1 天前
SPI通信
嵌入式
beluge1 天前
I2C通信
嵌入式
qq_456168282 天前
通信协议学习笔记汇总
嵌入式·开源协议
番茄灭世神2 天前
PN学堂GD32教程第12篇——SPI与Nor Flash
c语言·stm32·单片机·嵌入式·gd32·总线协议
潘潘的嵌入式日记3 天前
大彩串口屏型号怎么看?DC80480M070 命名拆解与选型
嵌入式·硬件·串口屏·选型·大彩·型号命名
蓝天居士3 天前
PY32F系列MCU在OTA时App区概率性跑不起来的根因分析(5)
mcu·嵌入式
Zwawa3 天前
传感器模块都在交出什么:从模拟电压到数字协议
c语言·单片机·嵌入式
会周易的程序员3 天前
STVM OSAL 层架构设计文档
c++·物联网·嵌入式·虚拟机·iot·软plc·iec61131
蓝天居士3 天前
PY32F系列MCU在OTA时App区概率性跑不起来的根因分析(6)
mcu·嵌入式