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

相关推荐
大聪明-PLUS9 小时前
6 个 Docker 高级功能
linux·嵌入式·arm·smarc
华清远见IT开放实验室1 天前
STM32学习路线!软硬件兼修:裸机+RTOS+LVGL+硬件设计+项目实战 (STM32多核心开发板)
stm32·嵌入式·开发板·rtos·课程·软硬件·裸机开发
做一道光1 天前
2、SVPWM原理及实现学习笔记
笔记·学习·嵌入式·电机控制
华清远见成都中心2 天前
嵌入式需要掌握哪些核心技能?
物联网·学习·嵌入式·华清远见
DIY机器人工房2 天前
要解决 ESP32 与 STM32 之间 LoRa 通信无应答的问题,可从以下硬件、软件、参数匹配三个维度逐一排查:
stm32·单片机·嵌入式硬件·lora·嵌入式·diy机器人工房
大聪明-PLUS2 天前
Linux 中的 DNS 工作原理(二):各级 DNS 缓存
linux·嵌入式·arm·smarc
冷凝雨3 天前
FreeRTOS源码学习(一)内存管理heap_1、heap_3
嵌入式·c·freertos·内存管理·源码分析
Y unes3 天前
《i.MX6ULL LED 驱动实战:内核模块开发与 GPIO 控制》
linux·c语言·驱动开发·vscode·ubuntu·嵌入式
优信电子3 天前
电脑控制DFPlayer Mini MP3播放音乐
单片机·串口·嵌入式·mp3·语音播报·串口语音·mp3播报
北京迅为4 天前
【北京迅为】iTOP-4412精英版使用手册-第六十七章 USB鼠标驱动详解
linux·人工智能·嵌入式·4412