【问题标题】:Failed to load plugin GStreamer无法加载插件 GStreamer
【发布时间】:2022-08-10 14:23:00
【问题描述】:

在 gstreamer 中有一个插件。 当我尝试使用 gst-inpect plugin_name 时,我收到消息:

(gst-inspect-1.0:6840): GStreamer-WARNING **: 08:35:23.841: Failed to load plugin \'C:\\msys64\\usr\\local\\lib\\gstreamer-1.0\\plugin_name.dll\' 
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct. 
You can run \'dumpbin -dependents\' (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.

还有一些第三方 GUI 可以递归地列出和调试 DLL 依赖项。

我检查 dll 使用 ldd 和 dumpbin。还要检查递归依赖。经过研究,我发现 g_module_open 返回 NULL,而 %errorlevel% 为空。

如何找到加载插件失败的原因?

    标签: mingw gstreamer glib msys2


    【解决方案1】:

    检查使用Dependency Walker 打开C:\msys64\usr\local\lib\gstreamer-1.0\plugin_name.dll 是否报告任何问题,并确保您没有混合架构(Windows 32 位和 64 位)。

    【讨论】:

      【解决方案2】:

      使用dumpbin -dependents C:\msys64\usr\local\lib\gstreamer-1.0\plugin_name.dll 命令检查依赖关系
      并检查所有依赖文件是否存在C:\gstreamer\1.0\x86_64\bin

      如果未正确安装 GStreamer,也可能出现此类错误。
      确保在安装 GStreamer 后在环境变量中添加所有 3 个路径。
      C:\gstreamer\1.0\x86_64\bin、C:\gstreamer\1.0\x86_64\lib 和 C:\gstreamer\1.0\x86_64\include

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-03-27
        • 2017-06-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多