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

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

 

 

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页