obs在ubuntu18.04下的编译

由于要用到obs的某些功能,在linux下编译了一下,其实这篇文档足够了,

https://github.com/obsproject/obs-studio/wiki/Install-Instructions#debian-based-build-directions

照步骤走完,基本上能够成功。但我碰到一个问题,打不开obs,于是用文件路径打开:/usr/bin/obs

结果报错:

obs: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by obs)

这个安装后的obs文件的依赖库错了,ldd /usr/bin/obs可以看出,它依赖的Qt库在/usr/lib/x86_64-linux-gnu/下面,比如:

libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

这是不对的,应该是Qt安装目录下面的,libQt5Widgets.so.5 => /home/daniel/Qt5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5。

而且它被瘦身了,file /usr/bin/obs,打印出:

/usr/bin/obs: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9f90610469c32a2c4ada2b6cb75765d319b11c98, stripped

而在另外两个目录下的obs文件却很大,可以正常打开。

./UI/obs

./rundir/RelWithDebInfo/bin/64bit/obs

file ./rundir/RelWithDebInfo/bin/64bit/obs,打印出:

./rundir/RelWithDebInfo/bin/64bit/obs: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9f90610469c32a2c4ada2b6cb75765d319b11c98, with debug_info, not stripped

应该说编译是正常的,安装过程出了问题。

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值