查看: 2287|回复: 1
收起左侧

apt-get install Qt4 on the Rasperry Pi

2013-4-4 11:34:43 | 显示全部楼层 |阅读模式
Tutorial : apt-get install Qt4 on the Rasperry 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.

  • 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
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

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.


回复

使用道具 举报

2015-1-21 15:19:49 | 显示全部楼层
Qt Creator安装后,一打开就提示plugin错误,并且没有这个“Options > build & run > tab tool chain > button add”菜单。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部