首页 > 解决方案 > 如果 gstreamer-1.16 构建为静态库,则 gst-inspect-1.0 失败并显示“g_once_init_leave: assertion 'result != 0' failed”

问题描述

我已经用选项构建了 gstreamer-1.16 及其插件(基础、好、坏和丑)--enable-static --disable-shared --enable-static-plugins。看起来构建已经成功,但是当我运行./gst-inspect-1.0(从我的自定义构建目录)时,我收到以下错误:

(gst-plugin-scanner:2271): GLib-CRITICAL **: 09:48:43.035: g_once_init_leave: assertion 'result != 0' failed
(gst-plugin-scanner:2271): GLib-GObject-CRITICAL **: 09:48:43.035: g_type_register_static: assertion 'parent_type > 0' failed
(gst-plugin-scanner:2271): GLib-CRITICAL **: 09:48:43.035: g_once_init_leave: assertion 'result != 0' failed
(gst-plugin-scanner:2271): GLib-GObject-CRITICAL **: 09:48:43.035: g_type_register_static: assertion 'parent_type > 0' failed
(gst-plugin-scanner:2271): GLib-CRITICAL **: 09:48:43.035: g_once_init_leave: assertion 'result != 0' failed
(gst-plugin-scanner:2271): GLib-GObject-CRITICAL **: 09:48:43.035: g_type_register_static: assertion 'parent_type > 0' failed
(gst-plugin-scanner:2271): GLib-CRITICAL **: 09:48:43.035: g_once_init_leave: assertion 'result != 0' failed
(gst-plugin-scanner:2271): GLib-GObject-CRITICAL **: 09:48:43.035: g_type_register_static: assertion 'parent_type > 0' failed
(gst-plugin-scanner:2271): GLib-CRITICAL **: 09:48:43.035: g_once_init_leave: assertion 'result != 0' failed

并且 gst-inspect 挂起。我错过了什么?

标签: staticgstreamer-1.0

解决方案


推荐阅读