调试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里面大小写是严格区分的)
回复
有奖活动 | |
---|---|
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! |
打赏帖 | |
---|---|
如何实现基于NXPiMX.RT1021的BH1730采集被打赏50分 | |
【换取手持数字示波器】AHT10温度检测分享被打赏40分 | |
【换取手持数字示波器】ACM32F070开发板点亮LCD屏和触控按键,串口,ADC被打赏40分 | |
【换取手持数字示波器】ACM32F070LCD屏和触控按键功驱动蜂鸣器分享被打赏40分 | |
【换取手持数字示波器】国民技术PWM功能知识分享被打赏40分 | |
【换取手持数字示波器】放大器运放知识分享被打赏40分 | |
【分享评测,赢取加热台】+开关电源AC输入知识分享被打赏30分 | |
【换取手持数字示波器】N32G430点亮数码管与串口打印、ADC被打赏40分 | |
老胖子聊电路--分析一个反馈电路被打赏50分 | |
【换取手持数字示波器】+点亮WS2812RGB灯被打赏50分 |