ubuntu 安装qt5.9.3 for arm-linux am335x qt开发1
2017-12-08 16:33
615 查看
安装环境:
host:ubuntu 1404
交叉编译器: arm-linux-gnueabihf-gcc
target borad :am335x
QT版本:qt5.9.3
1、ubuntu下安装qt
qt下载:http://download.qt.io/archive/qt/
下载包为qt-opensource-linux-x64-5.9.3.run
./qt-opensource-linux-x64-5.9.3.run //在ubuntu终端下运行,在crt下错误
Install g++
Open a terminal and execute the following command to install g++:
sudo
apt-get
install
build-essential
Install generic font configuration library - runtime
Open a terminal and execute the following command to install the full runtime files for the generic font configuration library:
sudo
apt-get
install
libfontconfig1
Configure a compiler
Launch Qt Creator.
Go to Tools > Options.
Click Build & Run and
select tab Kit.
Configure a compiler if it is not automatically detected.
Install OpenGL libraries
Execute the following command to install OpenGL libraries:
sudo
apt-get
install
mesa-common-dev
Note: Just installing the above-mentioned mesa-common-dev kit is not sufficient for more recent Ubuntu versions. Based on a comment in the Qt forum[1] an
additional package needs installation. Execute following command:
sudo
apt-get
install
libglu1-mesa-dev
-y
linux下安装Qt5.7后添加qmake环境变量后出现错误
执行
qmake
-v
1
出现错误:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
分析:
qtchooser默认选择路径中没有指向qmake路径
解决方法:
cd
/usr/lib/x86_64-linux-gnu/qt-default/qtchooservim
default.conf
1
2
将第一行中的/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
替代为qmake的路径(我的安装路径/home/yqa1404/Qt5.9.3/5.9.3/gcc_64/bin )
host:ubuntu 1404
交叉编译器: arm-linux-gnueabihf-gcc
target borad :am335x
QT版本:qt5.9.3
1、ubuntu下安装qt
qt下载:http://download.qt.io/archive/qt/
下载包为qt-opensource-linux-x64-5.9.3.run
./qt-opensource-linux-x64-5.9.3.run //在ubuntu终端下运行,在crt下错误
Install g++
Open a terminal and execute the following command to install g++:
sudo
apt-get
install
build-essential
Install generic font configuration library - runtime
Open a terminal and execute the following command to install the full runtime files for the generic font configuration library:
sudo
apt-get
install
libfontconfig1
Configure a compiler
Launch Qt Creator.
Go to Tools > Options.
Click Build & Run and
select tab Kit.
Configure a compiler if it is not automatically detected.
Install OpenGL libraries
Execute the following command to install OpenGL libraries:
sudo
apt-get
install
mesa-common-dev
Note: Just installing the above-mentioned mesa-common-dev kit is not sufficient for more recent Ubuntu versions. Based on a comment in the Qt forum[1] an
additional package needs installation. Execute following command:
sudo
apt-get
install
libglu1-mesa-dev
-y
linux下安装Qt5.7后添加qmake环境变量后出现错误
执行
qmake
-v
1
出现错误:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
分析:
qtchooser默认选择路径中没有指向qmake路径
解决方法:
cd
/usr/lib/x86_64-linux-gnu/qt-default/qtchooservim
default.conf
1
2
将第一行中的/usr/lib/x86_64-linux-gnu/qt4/bin/qmake
替代为qmake的路径(我的安装路径/home/yqa1404/Qt5.9.3/5.9.3/gcc_64/bin )
相关文章推荐
- ubuntu 安装qt5.9.3 for arm-linux am335x qt开发2
- Ubuntu安装arm版本的Qt遇到error: thread-local storage not supported for this target
- 在Ubuntu下安装QT开发环境
- Ubuntu 下安装 QT 开发环境
- 【ARM-Linux开发】wubi.exe安装Ubuntu14.04出现为/检查磁盘时发生严重错误的解决方法
- Ubuntu下安装嵌入式开发交叉工具链 arm-linux-gcc
- Ubuntu16.04.3安装OpenCV并配置QT环境进行开发
- QTCreator + QTEmbedded 在Ubuntu上创建嵌入式ARM开发环境
- Ubuntu10.10下安装Qt环境及Qt Creator开发工具
- 在 Ubuntu 下安装 QT 开发环境
- 教你Ubuntu下安装QT开发环境
- 【计算机视觉】【ARM-Linux开发】Ubuntu14.04下安装opencv3(anaconda3 Python3.6)
- Ubuntu14 Qt for Android Device on Qt Creator 开发环境搭建
- Ubuntu 安装 Qt 开发环境(转)
- 转贴:Ubuntu10.04下安装QT开发环境
- ubuntu14.04安装QT及相关开发环境
- s3c2410上搭建QT/Embedded4.8.5开发环境(二)--安装arm平台qt库qt-everywhere-opensource-src-4.8.5
- arm-linux安装Ubuntu12.4开发环境(三)安装nfs server
- Ubuntu下安装eclipse开发环境for Hive(mysql)
- [置顶] ubuntu下Qt for Android的安装及环境配置