树莓派中安装QT
来源:互联网 发布:贵州中标数据网 编辑:程序博客网 时间:2024/06/05 21:03
官方地址:
http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi
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
Tools/Options > build & run > tab tool chains > 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.
0 0
- 树莓派中安装QT
- 树莓派中安装QT
- QT安装--VC&QT
- qt/QT安装指导
- Qt安装
- Qt安装
- QT安装
- qt安装
- 安装QT
- 安装QT
- QT安装
- Qt安装
- qt 安装
- QT安装
- QT安装
- Qt安装
- Qt 安装
- 安装qt
- C282例 编程日志(1)
- Java学习笔记(七)
- C++实现平衡二叉树
- eclipse找不到glib.h的做法
- JAVA句柄是什么?
- 树莓派中安装QT
- 【Unity3d】【项目学习心得】从资源服务器下载资源(二)
- svn分目录权限
- ios 应用内购买 In-App Purchase
- 游戏资源
- Android(Lollipop/5.0) Material Design(二) 入门指南
- 解决Oracle in 超过1000个问题 C#拼接字符串
- Servlet理解
- IOS小知识点7之IOS静态库打包、工作区关联多个工程、一个工程下关联多个Target、c代码打包