ubuntu 安装qt5.9.3 for arm-linux am335x qt开发1

来源:互联网 发布:ios项目源码下载 编辑:程序博客网 时间:2024/06/01 10:34

安装环境:

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++:
sudoapt-getinstallbuild-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:
sudoapt-getinstalllibfontconfig1
  • 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:
sudoapt-getinstallmesa-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-getinstall 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/qtchooservimdefault.conf
1
2
将第一行中的/usr/lib/x86_64-linux-gnu/qt4/bin/qmake 
替代为qmake的路径(我的安装路径/home/yqa1404/Qt5.9.3/5.9.3/gcc_64/bin

原创粉丝点击