这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » DIY与开源设计 » 电子DIY » zxk236350893的进程贴(网络串口服务器,一期工程结束,二期zigbee

共19条 2/2 1 2 跳转至
高工
2014-01-17 18:00:10     打赏
11楼

实际不用,不一定要买32G的,经实测,2G就够了,我只是担心以后不够用,避免重复投资


高工
2014-01-17 21:15:47     打赏
12楼

我理解的是任意返回类型


高工
2014-01-20 22:25:12     打赏
13楼
对于键盘不能输入#,还有键位不对的情况,多是设置键盘类型时没有设置正确,我们平时用的比较多的就是美式键盘,而树莓派默认是英式键盘,如何设置,且听我细细道来。

高工
2014-01-22 01:40:40     打赏
14楼

到手玩了几天,差不多熟悉了,不过想想用什么写程序呢?记事本?打死我也不干了,现在看到记事本还恶心呢,稍微靠谱点的一个是安卓,一个就是QT4了,安卓到目前为止还没有可用的镜像,那就只有QT4了,还等什么,开始干吧。

参考此链接http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi


Using the Raspbian image

apt-get

Firstly I got the development tools needed by Qt Creator in the hope it would be less heavy for the Pi to download separately.

  1. sudo apt-get install qt4-dev-tools


Then I went for Qt Creator

  1. sudo apt-get install Qtcreator


I also installed


  1. sudo apt-get install gcc
  2. sudo apt-get install xterm
  3. sudo apt-get install git-core
  4. sudo apt-get install subversion



this gives as a result Qt Creator 2.5 with Qt 4.8.1 32 bit


Problem : no toolchain.

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


Qt Creator seems to detect that we are going to deploy on a remote target.

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里面大小写是严格区分的)


高工
2014-01-22 09:18:04     打赏
15楼
只要敢想就行了,没有什么是做不到的

高工
2014-01-23 11:18:50     打赏
16楼
实现在命令行下面读写GPIO,正在进行用QT读写的尝试,稍晚些时候补充整个过程,敬请关注!

高工
2014-08-29 13:34:10     打赏
17楼
不公平,凭什么你们都在我前面

高工
2014-10-13 11:01:24     打赏
18楼
bui,顶一下,没别的意思

高工
2014-10-20 15:16:19     打赏
19楼

下一次更新是zigbee扩展模块,正在搞,目前没有可更新的内容,树莓派一期工程完了



共19条 2/2 1 2 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]