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

查看:30
本文介绍了如何使用 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 && 编译 gstreamer-sharp制作
  3. 从sources/glue/获取编译好的glib-sharp 和gstreamer-sharp 二进制文件和所有.c 文件
  4. http://gstreamer.freedesktop.org 下载并安装 gstreamer 二进制文件/data/pkg/windows/1.2.2/ 并为要编译的体系结构安装开发和二进制包.您可以使用 gstreamer 1.0 或 1.2.
  5. 使用 gstreamer-devel 包中的 Visual Studio 模板并将项目类型更改为库.添加从sources/glue 文件夹中获取的c 文件并编译glue 库.该库应命名为 libgstreamersharpglue-1.0.0.dll
  6. 将托管部分与本机符号放在一起.
  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天全站免登陆