您的位置:首页 > 运维架构 > Linux

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 )
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: