简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM