无法在ubuntu 12.04上编译gst-plugin-bad-0.10

时间:2012-08-28 14:44:57

标签: makefile gstreamer

我为gstraemer来源提供了目录结构

/home/dev/cerbero/sources/linux_x86_64/gst-plugins-bad-0.10.23

当我运行.autogen.sh时运行正常

但当我做“制造”时 它给出了以下错误

gst-plugins_bad_compile_error

更具体地说

Making all in gst
make[2]: Entering directory `/home/dev/cerbero/sources/linux_x86_64/gst-plugins-  bad-0.10.23/gst'
make -C adpcmdec
make[3]: Entering directory `/home/dev/cerbero/sources/linux_x86_64/gst-plugins-bad-0.10.23/gst/adpcmdec'
  CC     libgstadpcmdec_la-adpcmdec.lo
adpcmdec.c:586:21: error: expected declaration specifiers or '...' before '(' token
adpcmdec.c:586:40: error: expected declaration specifiers or '...' before '(' token
adpcmdec.c:586:59: error: unknown type name 'adpcmdec'
adpcmdec.c:587:5: error: expected declaration specifiers or '...' before string constant
adpcmdec.c:587:22: error: expected declaration specifiers or '...' before 'plugin_init'
adpcmdec.c:587:35: error: expected declaration specifiers or '...' before string constant
adpcmdec.c:587:44: error: expected declaration specifiers or '...' before string constant
adpcmdec.c:587:52: error: expected declaration specifiers or '...' before string constant
adpcmdec.c:588:5: error: expected declaration specifiers or '...' before string constant
adpcmdec.c:576:1: warning: 'plugin_init' defined but not used [-Wunused-function]
make[3]: *** [libgstadpcmdec_la-adpcmdec.lo] Error 1
make[3]: Leaving directory `/home/dev/cerbero/sources/linux_x86_64/gst-plugins-    bad-0.10.23/gst/adpcmdec'
make[2]: *** [adpcmdec] Error 2
make[2]: Leaving directory `/home/dev/cerbero/sources/linux_x86_64/gst-plugins-bad-0.10.23/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dev/cerbero/sources/linux_x86_64/gst-plugins-bad-0.10.23'
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:0)

构建之前的一些事情

您安装了liboil和orc编译器吗?

如果你这样做的话,运行./configure --enable-orc 如果你没有

,请运行./configure

然后做一个make

在执行上述步骤之前,请记住做一个make distclean或者只是获得干净的来源。不要直接在“脏半建”文件夹中执行此操作。

虽然我对此表示怀疑,但这也可能是一个错误的问题。

编辑:我的建议是安装orc,因为这会加速gstreamer!