How to use GStreamer in Visual Studio 2010?

Do I have to compile GStreamer on my own? Can I do it using Visual Studio 2010?

I'm struggling to find a good step-by-step guide with instructions on how to do this. Is there a good one?

My objective is to build applications using QtGstreamer on VS2010.


这个链接提供了一个使用Visual Studio编译GStreamer的完整方法,这个是编译QtGstreamer。


  • Download the GStreamer libraries and headers for windows.
  • Put them in a folder.
  • Add the folder's path to your Include Directories and Library Directories. (Project Properties->Configuration Properties->VC++ Directories)
  • Add the library to your linker's list of libraries to link to (woah!).
  • Ok... that last one isn't so bad: Project Properties->Configuration Properties->Linker->Input->Additional Dependancies (add the name of the library eg gstreamer.lib or gstreamer.dll)

  • #include < gstreamer.h > (or whatever the header you need to include is called)
  • if your using QtGstreamer, ignore the previous step and #include < QtGstreamer.h >
  • Note: you may have to do the same setup for the QtGstreamer libraries and headers as the one for Gstreamer, and yes, QtGstreamer relies on Gstreamer so you need to setup for both.

    Happy coding! :)


    You could try out build from OSSBuild. You should use svn client to checkout address

    http://ossbuild.googlecode.com/svn/trunk/Shared/Build/Windows/Win32

    Then it is only matter of configuring VS2010 to know where to look for it. It contains all thet one needs already compiled. Since i run linux i have no possibility of checking how to configure it correctly.

    链接地址: http://www.djcxy.com/p/10164.html

    上一篇: 未能安装生产供应配置文件

    下一篇: 如何在Visual Studio 2010中使用GStreamer?