Gstreamer编译

在Ubuntu18.04上,由于默认的GStreamer1.14版本导致QGC的rtsp视频显示出现问题。为解决此问题,博主选择手动编译安装GStreamer1.19。在编译过程中遇到meson版本过低的错误,通过删除旧版本并使用pip3安装最新版meson,最终成功将meson升级到0.61.4,编译过程得以继续。尽管过程中出现警告,但编译和orc子项目运行成功。
摘要由CSDN通过智能技术生成

由于Ubuntu18.04中安装gstreamer的版本默认为1.14,在QGC的rtsp视频显示中有问题,所以需要对gstreamer进行升级,查询后:

在Linux(UButun)和Windows编译GStreamer 过程 - 知乎

可以直接下载1.19版本的进行编译安装,meson build后出现提示:

The Meson build system
Version: 0.45.1
Source dir: /home/cubar/code/gstreamer/gst-build
Build dir: /home/cubar/code/gstreamer/gst-build/build
Build type: native build

meson.build:87:15: ERROR: lexer
  ['gstreamer', {'build-hotdoc': true}],

网上查询没有结果,最后 考虑是不是版本问题,通过meson -v查看

meson -v
0.45.1

由于我使用的是sudo apt-get install meson命令进行安装的,版本太低了,删除后使用 pip3 install meson安装,结果:

meson -v
0.61.4

这个时候,再meson build就正常了!

meson build
The Meson build system
Version: 0.61.4
Source dir: /home/***/code/gstreamer/gst-build
Build dir: /home/***/code/gstreamer/gst-build/build
Build type: native build
Project name: All GStreamer modules
Project version: 1.19.2
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: cc ld.bfd 2.30
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:9: WARNING: 

======================================================================================================

  gst-build is now obsolete and has now been moved into the GStreamer monorepo, see

    https://gstreamer.freedesktop.org/documentation/frequently-asked-questions/mono-repository.html

  for more details.

======================================================================================================


Program python3 found: YES (/usr/bin/python3)
WARNING: Python files installed by Meson might not be found by python interpreter.
 This warning can be avoided by setting "python.platlibdir" option.
WARNING: Python files installed by Meson might not be found by python interpreter.
 This warning can be avoided by setting "python.purelibdir" option.
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300

Executing subproject orc 

orc| Project name: orc
orc| Project version: 0.4.32
orc| C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
orc| C linker for the host machine: cc ld.bfd 2.30
orc| Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
orc| Compiler for C supports arguments -fvisibility=hidden: YES
orc| Run-time dependency threads found: YES
orc| Library m found: YES
orc| Checking for function "clock_gettime" : YES
orc| Header <android/log.h> has symbol "__android_log_print" : NO
orc| Checking for function "gettimeofday" : YES
orc| Checking for function "posix_memalign" : YES
orc| Checking for function "mmap" : YES
orc| Checking for function "pthread_jit_write_protect_np" : NO
orc| Has header "sys/time.h" : YES
orc| Has header "unistd.h" : YES
orc| Has header "valgrind/valgrind.h" : NO
...................

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值