The goal of efficiency is more slack.

Sunday, October 13, 2019

Installing GStreamer Development for Visual Studio 2019

Install and create template.
  1. Browse to https://gstreamer.freedesktop.org/ > Downloads.
  2. Download and install both MinGW 64-bit runtime installer and development installer.
  3. In Visual Studio 2019, open \gstreamer\1.0\x86_64\share\vs\2010\gst-template\gst-template.vcxproj
  4. Project > Export Template.
 Run example.
  1. Download https://gitlab.freedesktop.org/gstreamer/gst-docs/
  2. Expand tutorials folder.
  3. Open tutorials.sln.
  4. Set solution platform to x64.
  5. Solution Explorer > Solution ''tutorials' > basic-tutorial-1 > Properties
    1. Debugging > Working Directory: $(GSTREAMER_1_0_ROOT_X86_64)\bin
      Note: To get the variable name, in cmd.exe, enter: set gstreamer
    2. Linker > Input > Ignore All Default Libraries > No (or delete setting)
    3. For Debug configuration, Ignore Specific Default Libraries: msvcrtd.lib
      Note: The gstreamer libraries were apparently built with /MD and not /MDd.

3 comments:

Anonymous said...

Thanks a lot!!!
This is not good enough for dummies like me. but its the best I found and at the end - worked!
I will try from memory to elaborate so ones that fallow will have a bit less pain (I do not remember all tweaks I did to get it working)
1. Install and create template. 1.a Browse to https://gstreamer.freedesktop.org/ > Downloads. -Enter a version directory, I got the Last version from https://gstreamer.freedesktop.org/data/pkg/windows/1.16.2/
1.b Download and install both MinGW 64-bit runtime installer and development installer.- in the directory you have files for msvc and minGW some say to use msvc files but here he said to use the minGW files. MinGW (Minimalist GNU for Windows) in the directory there are files marked 86 for 32 bit and 86_64 for 32 bit. Use the 86_64. Download the *-mingw-x86_64-1.16.2.msi files. After downloading run the both *.msi installers.
1.c (open ) Visual Studio 2019. Open project \gstreamer\1.0\x86_64\share\vs\2010\gst-template\gst-template.vcxproj
1.d Project > Export Template. –there are a few steps there do common sense  and save it.
2. Run example.
2.a Download https://gitlab.freedesktop.org/gstreamer/gst-docs/ - and unzip the file
2.b From within vs2019 open solution Go to gstreamer\gst-docs-master\examples\tutorials\ tutorials.sln.
2.c Set solution platform to x64. - both in the solution configuration and at the top bar of vs2019
2.d (from the right side of vs2019 right click on ) Solution Explorer > Solution ''tutorials' > basic-tutorial-1 and choose Properties
2.e from within property go to Debugging > Working Directory: $(GSTREAMER_1_0_ROOT_X86_64)\bin
Note: To get the variable name, in cmd.exe, enter: set gstreamer –did not understand what to do and did on do this (probably set in environment variables)
2.e from within property go to Linker > Input > Ignore All Default Libraries > No
2.f from within property go to Linker > Input > Ignore Specific Default Libraries enter msvcrtd.lib and save –very important! (will not work if not)

Unknown said...

Hi Im doing a project using C++,BRF(Beyond Face Reality) and VS2017.I did all these but the project dont seem to be able to find the library.

Anonymous said...

I have been trying for the last week and a bit to get the GStreamer tutorials to build. Everything I have tried has failed - up until now.

Many many thanks and kudos to Anonymous and the original postee for thier work and for posting these notes. It has made me a very happy bunny :)

Jessica

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Powered by Blogger.
Scroll To Top