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

1 篇文章 0 订阅

安装环境:

host:ubuntu 1404

交叉编译器: arm-linux-gnueabihf-gcc 

target borad :am335x

QT版本:qt5.9.3 

1、ubuntu下安装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 /qtchooser vim 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

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值