使用cerbero在Windows中从源代码构建gstreamer ....生成gst-libav-1.0的问题 [英] Building gstreamer from source in windows using cerbero .... issues with building gst-libav-1.0

查看:396
本文介绍了使用cerbero在Windows中从源代码构建gstreamer ....生成gst-libav-1.0的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次从源代码编译gstreamer,我正面临着 在Windows中构建gst-libav-1.0的困难.

I am first time compiling gstreamer from source code and I am facing difficulty in building gst-libav-1.0 in windows.

我点击了gstreamer网站上给出的链接.仅创建 避免使用.cerbero.cbc(因为它会带来更多问题,但默认情况下会 在网站上说) 从源代码编译gstreamer-gstreamer网站

I followed link given in the gstreamer website. only creation of .cerbero.cbc is avoided (as it gives lots more problems ,but default will work it say in site) compiling gstreamer from source code-- gstreamer website

问题

1)运行构建命令后,出现

1) After running build command I am getting error of

"/w32pthreads.h:137:1:错误:未知类型名称'INIT_ONCE'" 更详细的错误,请参见error.txt文件 C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ Python.exe ./cerbero-uninstalled buildone gst-libav-1.0

"/w32pthreads.h:137:1: error: unknown type name 'INIT_ONCE'" For more detailed error see error.txt file C:\Users\Admin\AppData\Local\Programs\Python\Python36\Python.exe ./cerbero-uninstalled buildone gst-libav-1.0

2)当我设置enable nvenc,cuda ... etc时显示:

2) when I set the enable nvenc , cuda ...etc its showing :

配置:警告:无法识别的选项:--enable-hwaccels --enable-devices --enable-nvenc --enable-omx --enable-omx-rpi --enable-cuda --enable-cuvid --enable-libnpp --enable-ffmpeg

configure: WAARNING: unrecognized options: --enable-hwaccels --enable-devices --enable-nvenc --enable-omx --enable-omx-rpi --enable-cuda --enable-cuvid --enable-libnpp --enable-ffmpeg

我在下面提到的文件"gst-libav-1.0.recipe"中添加了上述选项

I have added above option in file "gst-libav-1.0.recipe" at below mentioned place

class Recipe(custom.GStreamer): 
    name = 'gst-libav-1.0' 
    # TODO - check license - plugin is certainly LGPLv2+, but need to check 
    #        the linked libs 
    licenses = [License.LGPLv2Plus] 
    config_sh = 'sh ./autogen.sh --noconfigure && ./configure' 
    configure_options = "--enable-lgpl --disable-examples --enable-static " 

如何在libav的构建中启用此选项?

How can I enable this option in the build of libav ?

注意: 我已添加在构建

Note: I have added logs generated while building

"Python.exe ./cerbero-uninstalled 
buildone gst-libav-1.0 "

a)gst-libav-1.0-compile.log gst-libav-1.0-compile.log

a) gst-libav-1.0-compile.log gst-libav-1.0-compile.log

b)error.txt error.log

b) error.txt error.log

推荐答案

您必须使用Python 2.7来编译GStreamer-看起来您正在使用Python3

You have to use Python 2.7 to compile GStreamer - it looks like you're using Python3

这篇关于使用cerbero在Windows中从源代码构建gstreamer ....生成gst-libav-1.0的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆