树莓派中安装QT
来源:互联网 发布:学号 姓名 性别 sql 编辑:程序博客网 时间:2024/06/07 12:09
树莓派中安装QT
本文博客链接:http://blog.csdn.net/jdh99,作者:jdh,转载请注明.
环境:
主机:WIN7
硬件:树莓派
步骤:
参考链接:http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi
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
如果出现问题:e: unable to locate package qt creator,则输入以下命令更新
sudo apt-get update && sudo apt-get upgrade
如果还是有问题,尝试sudo apt-get install qtcreator
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.
- 树莓派中安装QT
- 树莓派中安装QT
- QT安装--VC&QT
- qt/QT安装指导
- Qt安装
- Qt安装
- QT安装
- qt安装
- 安装QT
- 安装QT
- QT安装
- Qt安装
- qt 安装
- QT安装
- QT安装
- Qt安装
- Qt 安装
- 安装qt
- Grep学习笔记
- Codeforces Beta Round #99 (Div. 1) C Mushroom Gnomes - 2(单点查询)
- HDU 4530 小Q系列故事——大笨钟 2013腾讯编程马拉松复赛第一场第一题
- windows系统上安装与使用Android NDK r5
- Poj 2352 Stars
- 树莓派中安装QT
- LDA学习笔记---来自《Parameter estimation for text analysis》
- GB28181 视频监控系统
- Android--Failed to allocate memory: 1455
- COCOS2D-X学习记录0
- 一个学习sed和awk的网站(非常好)
- linux下懒人打造自己的IDE
- applicationContext.xml无错有红叉,Error occured processing XML 'Provider org.apache.xerces.parsers.解决方案
- Linux服务器漏洞修复处理办法