调试OK,开始运行后先输入一个端口号,网络设备连接到树莓派的IP地址上的这个端口上,就会提示有新的客户端连接进来,网络和串口发送的信息会同步显示到LX终端上,支持多客户端接入,只支持一个串口,既ttyAMA0,115200-n-8-1
代码回复可见
——回复可见内容——
下载地址
到手玩了几天,差不多熟悉了,不过想想用什么写程序呢?记事本?打死我也不干了,现在看到记事本还恶心呢,稍微靠谱点的一个是安卓,一个就是QT4了,安卓到目前为止还没有可用的镜像,那就只有QT4了,还等什么,开始干吧。
参考此链接http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi
Using the Raspbian image
apt-getFirstly I got the development tools needed by Qt Creator in the hope it would be less heavy for the Pi to download separately.
- sudo apt-get install qt4-dev-tools
Then I went for Qt Creator
- sudo apt-get install Qtcreator
I also installed
- sudo apt-get install gcc
- sudo apt-get install xterm
- sudo apt-get install git-core
-
sudo apt-get install subversion
this gives as a result Qt Creator 2.5 with Qt 4.8.1 32 bit
We can only compile for remote embedded devices and this is not the case here, because we are on the Pi and not remotely accessing it.
添加工具链
I added a gcc toolchain
tools>Options > build & run > tab tool chain > button add
Choose GCC
- Then set compiler path : /usr/bin/arm-linux-gnueabihf-gcc-4.6
- Debugger : /usr/bin/gdb
- Mkspec : default

To fix this :
- Go to menu help > about plugins
- Uncheck device support > remote linux
- Restart Qt Creator
- Go to tools > options TAB > build & run > Qt versions > add “/usr/bin/qmake-qt4”
It will then show up as a desktop project in the project wizard instead of embedded.
如果出现e: unable to locate package qt creator或E:者未发现软件包qt creator,请尝试sudo apt-get update 和 sudo apt-get upgrade
如果还是有问题,尝试sudo apt-get install qtcreator(小写,因为Linux里面大小写是严格区分的)
回复
| 有奖活动 | |
|---|---|
| 2026年“我要开发板活动”第三季,开始了! | |
| 硬核工程师专属补给计划——填盲盒 | |
| “我踩过的那些坑”主题活动——第002期 | |
| 【EEPW电子工程师创研计划】技术变现通道已开启~ | |
| 发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
| 【EEPW在线】E起听工程师的声音! | |
| 高校联络员开始招募啦!有惊喜!! | |
| 【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
我要赚赏金打赏帖 |
|
|---|---|
| 以启明云端ESP32P4开发板实现TF卡读写功能被打赏¥28元 | |
| 【分享开发笔记,赚取电动螺丝刀】树莓派5串口UART0配置被打赏¥25元 | |
| 【STM32F103ZET6】17:分享在Rtos项目中断管理的使用经验被打赏¥23元 | |
| 【STM32F103ZET6】16:分享在中断中恢复串口任务,遇到的问题被打赏¥31元 | |
| 在FireBeetle2ESP32-C5上实现温度大气压检测及显示被打赏¥21元 | |
| 【分享开发笔记,赚取电动螺丝刀】SAME51双串口收发配置被打赏¥27元 | |
| Chaos-nano操作系统在手持式VOC检测设备上的应用被打赏¥37元 | |
| 【分享开发笔记,赚取电动螺丝刀】关于在导入第三方库lib时,wchart类型冲突的原因及解决方案被打赏¥30元 | |
| 在FireBeetle2ESP32-C5上实现温湿度检测和显示被打赏¥20元 | |
| 在FireBeetle2ESP32-C5上实现光照强度检测及显示被打赏¥21元 | |
我要赚赏金
