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

相关推荐
iCxhust14 小时前
【无标题】8086/8088裸机对于学习微机原理的重要意义
汇编·单片机·嵌入式硬件·嵌入式·微机原理
左手厨刀右手茼蒿1 天前
Linux 内核中的设备驱动开发:从字符设备到网络设备
linux·嵌入式·系统内核
吃米饭1 天前
HC32L021C8UB 移植 FreeRTOS
stm32·嵌入式·freertos·rtos
2023自学中2 天前
make clean 与 make distclean
linux·嵌入式
栈时没有名字2 天前
git仓库管理,commit或push上传服务器失败问题
git·嵌入式
CodeQingqing2 天前
反汇编在嵌入式的使用
stm32·嵌入式·反汇编
济6173 天前
FreeRTOS 控制任务设计 (3)--- 闭环控制验证:仿真电机模型与软反馈实现
嵌入式·freertos
凉、介3 天前
C 语言类型强转引发的隐蔽内存破坏问题分析
c语言·开发语言·笔记·学习·嵌入式
嵌入式小企鹅3 天前
嵌入式面试宝典
学习·面试·嵌入式·嵌入式工程师·高薪offer
星瞳科技OpenMV3 天前
国家级高新技术企业星瞳科技,定义嵌入式机器视觉行业新标杆
人工智能·嵌入式·图像识别·机器视觉·openmv·星瞳科技·星瞳科技openmv