树莓派中安装QT
2014-10-29 10:18
369 查看
官方地址:
http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_PiTutorial : apt-get install Qt4 on the Rasperry Pi
Using the Raspbian imageapt-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 addChoose 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
- 树莓派----03_安装QT5
- 树莓派中安装QT
- 树莓派中安装QT
- 树莓派 安装qt
- 4、新手入手树莓派教程--安装Qt
- 树莓派安装QT
- 树莓派QT安装
- 树莓派中安装QT5
- 树莓派中安装QT
- 树莓派----03_安装QT5
- 树莓派 安装QT5
- 树莓派安装qt4.8.0和qtcreator 2.4.1。
- 安装与建立 Qt 桌面开发运行环境
- 学习笔记----图形界面程序Qt安装及其在2410-s上的移植
- Qt4.2.0的安装
- C++ GUI Programming with Qt 3安装说明
- Windows下的Qt环境安装
- QT4环境 MinGW 简单安装
- QT4.3.0在VC++ 6.0下安装指南