问题
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