How to use GStreamer in Visual Studio 2010?

久未见 提交于 2019-11-30 04:07:31

问题


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.


回答1:


This links gives a complete method to compile GStreamer using Visual Studio and this one is to compile QtGstreamer.




回答2:


  • 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 e.g. 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! :)




回答3:


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.



来源:https://stackoverflow.com/questions/8334811/how-to-use-gstreamer-in-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!