Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
构建Gstreamer编辑服务失败_Gstreamer - Fatal编程技术网

构建Gstreamer编辑服务失败

构建Gstreamer编辑服务失败,gstreamer,Gstreamer,我在克隆的repo中运行了/autogen.sh,但它无法说出以下内容: configure: No package 'gstreamer-plugins-base-1.0' found configure: error: no gstreamer-plugins-base-1.0 >= 1.14.1 (GStreamer Base Plugins) found configure failed if test -z $GSTPB_PLUGINS_DIR; then GSTPB_

我在克隆的repo中运行了
/autogen.sh
,但它无法说出以下内容:

configure: No package 'gstreamer-plugins-base-1.0' found
configure: error: no gstreamer-plugins-base-1.0 >= 1.14.1 (GStreamer Base Plugins) found
  configure failed
if test -z $GSTPB_PLUGINS_DIR; then
  GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]`
  if test -z $GSTPB_PLUGINS_DIR; then
    AC_MSG_ERROR(
      [no pluginsdir set in GStreamer Base Plugins pkg-config file])
  fi
fi
(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_object_set: assertion 'G_IS_OBJECT (object)' failed
[1]    15606 segmentation fault (core dumped)  ./simple1 ~/Downloads/out.mp4
我的Ubuntu上安装了gstreamer(base、good、bad和丑恶)。构建脚本查找的包名是
gstreamer-plugins-base-1.0
,其中系统包的名称是
gstreamer-plugins-base

深入研究autoconf设置,我发现了以下内容:

configure: No package 'gstreamer-plugins-base-1.0' found
configure: error: no gstreamer-plugins-base-1.0 >= 1.14.1 (GStreamer Base Plugins) found
  configure failed
if test -z $GSTPB_PLUGINS_DIR; then
  GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]`
  if test -z $GSTPB_PLUGINS_DIR; then
    AC_MSG_ERROR(
      [no pluginsdir set in GStreamer Base Plugins pkg-config file])
  fi
fi
(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_object_set: assertion 'G_IS_OBJECT (object)' failed
[1]    15606 segmentation fault (core dumped)  ./simple1 ~/Downloads/out.mp4
它不应该是
gstreamer[$1]-插件库吗?我是不是遗漏了什么

更新: 通过安装
libgstreamer1.0-dev
libgstreamer-plugins-base1.0-dev
dev软件包修复了上述问题

sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
如果默认情况下未安装GIntrospection,请运行以下命令

sudo apt-get build-dep gstreamer1.0
Program received signal SIGSEGV, Segmentation fault.
ges_track_constructed (object=<optimized out>) at ../ges/ges-track.c:506
506         componame =
/autogen.sh
将完成,
make&&sudo make安装
也将正常运行

当前状态:示例不构建稳定的二进制文件。运行c示例segfault和python示例
simple.py
,会抱怨名称空间中缺少
GES

Traceback (most recent call last):
  File "simple.py", line 26, in <module>
    gi.require_version('GES', '1.0')
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 130, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GES not available
运行C示例simple1.C失败,原因如下:

configure: No package 'gstreamer-plugins-base-1.0' found
configure: error: no gstreamer-plugins-base-1.0 >= 1.14.1 (GStreamer Base Plugins) found
  configure failed
if test -z $GSTPB_PLUGINS_DIR; then
  GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]`
  if test -z $GSTPB_PLUGINS_DIR; then
    AC_MSG_ERROR(
      [no pluginsdir set in GStreamer Base Plugins pkg-config file])
  fi
fi
(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-WARNING **: 12:42:28.910: invalid (NULL) pointer instance

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(simple1:15606): GLib-GObject-CRITICAL **: 12:42:28.910: g_object_set: assertion 'G_IS_OBJECT (object)' failed
[1]    15606 segmentation fault (core dumped)  ./simple1 ~/Downloads/out.mp4
运行gdb

gst-editing-services/examples/c/simple1": not in executable format: File format not recognized
更新 使用介子构建系统重建示例。这使得在gdb中运行存储箱成为可能。得到以下信息

sudo apt-get build-dep gstreamer1.0
Program received signal SIGSEGV, Segmentation fault.
ges_track_constructed (object=<optimized out>) at ../ges/ges-track.c:506
506         componame =
一行一行地走进去。以下消息被披露

0x00007ffff701c2cd in __GI__dl_catch_exception (exception=exception@entry=0x7fffffffc980,
    operate=0x7ffff54530d0 <dlsym_doit>, args=0x7fffffffc9f0) at dl-error-skeleton.c:194
    194     dl-error-skeleton.c: No such file or directory.
0x00007FF701C2CD在捕获异常(异常)中=exception@entry=0x7FFFFFC980,
operate=0x7ffff54530d0,args=0x7FFFFFC9F0)在dl错误骨架处。c:194
194 dl error skeleton.c:没有这样的文件或目录。

看起来这与GES内部结构有关。在内部,glib对象没有正确创建,并且都为NULL。为什么会有
无效(NULL)指针实例

我能够在我的mac上运行这些示例。包不匹配似乎是这里的问题