【发布时间】:2018-03-13 15:25:27
【问题描述】:
我需要使用 gstreamer 构建一个静态 Linux 可执行文件,并使用 coreelements 插件中的队列工厂。我所做的是:
- 配置 gstreamer(版本 1.12.4):
./configure --enable-static --disable-shared --enable-static-plugins - 构建它和 gst-plugin-base
- 在我的代码中添加:
GST_PLUGIN_STATIC_DECLARE(coreelements); GST_PLUGIN_STATIC_REGISTER(coreelements); - 将我的应用与 libgstcoreelements.a 相关联(连同 gstreamer-1.0、gstbase-1.0 和 gstapp-1.0)
链接失败:
undefined reference to gst_plugin_coreelements_register()
我可以验证gst_plugin_coreelements_register 在静态库文件中:
$ nm libgstcoreelements.a |grep gst_plugin_coreelements_register
00000000000002c0 T gst_plugin_coreelements_register
你知道我做错了吗?
【问题讨论】:
标签: static-libraries gstreamer