Ubuntu安装Qt并编译

1. 下载QT

下载地址:

qt下载地址
http://download.qt.io/archive/qt/5.13/5.13.0/
选择[.run]的文件
默认安装即可

2. 安装gl libpasm

为防止编译出现问题: 
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lidpasm ==>这个是汇编用的,私有库
安装:
sudo apt-get install libx11-dev libxext-dev libxtst-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install nasm  ==>汇编代码使用

3. 打开pro

编译 即可

4. FFMpeg编译问题

静态库编译后,链接时会提示:
libavcodec.a(hevc_cabac.o): relocation R_X86_64_PC32 against 符号 `ff_h264_cabac_tables' can not be used when making a shared object; recompile with -fPIC
解决办法:
./configure --prefix=./build --disable-x86asm --disable-asm
make -j CFLAGS=-fPIC
make install
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值