如何使用monodevelop/xamarin构建gstreamer-sharp? [英] How to build gstreamer-sharp with monodevelop/xamarin?

查看:91
本文介绍了如何使用monodevelop/xamarin构建gstreamer-sharp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是AudioCuesheetEditor的开发人员,该应用程序用于编辑音频提示表.新版本应该能够播放声音,因此我想使用gstreamer作为后端.我在gstreamer中进行了一些调查,发现需要使用带有gstreamer-sharp 0.99.x绑定的1.x版本.没问题,下载了gstreamer-sharp 0.99.0,使用monodevelop(在Linux上)或xamarin(在Windows上)打开了解决方案,并尝试构建dll,但这没有用.我收到未找到错误命名空间Gst.GLib".

i'm developer of AudioCuesheetEditor, an application for editing audio cuesheets. The new Version should be able to play back sound, so I would like to use gstreamer as backend. I investigated a bit in gstreamer and found out, that I need to use version 1.x with gstreamer-sharp 0.99.x binding. No problem, downloaded gstreamer-sharp 0.99.0, opened the solution with monodevelop (on linux) or xamarin (on windows) and tried to build the dll, but that didn't work. I get the error "namespace Gst.GLib" not found.

我正在使用xamarin/monodevelop进行开发,并且需要一个可移植的应用程序(与mono/.net一起使用).

I'm developing with xamarin/monodevelop and need to have a portable app (working with mono/.net).

有人可以帮助我,获得gstreamer-sharp版本吗?

Can anyone help me, get gstreamer-sharp build?

提前谢谢!

推荐答案

gstreamer-sharp当前在Windows上不受支持,但是您可以在Linux上编译受管部件,并在Windows上使用Visual Studio编译胶水:

gstreamer-sharp is currently not supported on Windows, however you can compile the managed parts on linux and compile the glue on Windows using Visual Studio:

  1. https://github.com/mono/gtk-sharp
  2. 使用./autogen.sh&&做
  3. 从source/glue/
  4. 中获取已编译的glib-sharp和gstreamer-sharp二进制文件以及所有.c文件
  5. http://gstreamer.freedesktop.org下载并安装gstreamer二进制文件. /data/pkg/windows/1.2.2/并为要编译的体系结构安装开发和二进制软件包.您可以使用gstreamer 1.0或1.2.
  6. 使用gstreamer-devel包中的Visual Studio模板,并将项目类型更改为库.添加从sources/glue文件夹中获取的c文件,并编译glue库.该库应名为libgstreamersharpglue-1.0.0.dll
  7. 将被管理部件与本机符号一起放置.
  1. Install gtk-sharp 3.0 from https://github.com/mono/gtk-sharp
  2. Compile gstreamer-sharp using ./autogen.sh && make
  3. Take the compiled glib-sharp and gstreamer-sharp binary and all .c files from sources/glue/
  4. Download and install gstreamer binaries from http://gstreamer.freedesktop.org/data/pkg/windows/1.2.2/ and install the development and binary packages for the architecture you want to compile for. You can use gstreamer 1.0 or 1.2.
  5. Use the Visual Studio template from the gstreamer-devel package and change the project type to library. Add the c files taken from the sources/glue folder and compile the glue library. The library should be called libgstreamersharpglue-1.0.0.dll
  6. Put the managed parts together with the native symbols.

现在,在Windows上编译胶水变得更加容易!有人设置了一个项目,该项目可以使用Windows上的Visual Studio编译胶水.我有一个叉子,该叉子在 https://github.com/xDarkice/libgstreamersharpglue

Compiling the glue is now easier on Windows! Someone set up a project which can compile the glue using Visual Studio on Windows. I have a fork which has binaries at https://github.com/xDarkice/libgstreamersharpglue

这篇关于如何使用monodevelop/xamarin构建gstreamer-sharp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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