tutorials and vs2017

David Ing ding at panopto.com
Mon Jul 1 15:31:56 UTC 2019


The last time I tried to use the VS property sheets was at gstreamer 1.12,
I'm not sure if they have changed since then.

At that time (I was using VS 2015), I determined that some of the property
sheets in here are broken:

%GSTREAMER_1_0_ROOT_X86_64%\x86_64\share\vs\2010\msvc

I believe this broken when Microsoft fractured their CRT into 4 different
libraries which are listed here:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features?view=vs-2019

I eventually determined that the default VS project setup was sufficient to
replace whatever is going on in this folder:

%GSTREAMER_1_0_ROOT_X86_64%\x86_64\share\vs\2010\msvc


Now I am using the 1.14.4 build for Windows (which is a mingw build), and I
mainly consume gst-editing-services and the GstDiscoverer API.  My property
sheet includes the following.

  <ItemDefinitionGroup>
    <ClCompile>

<AdditionalIncludeDirectories>$(GlibIncludeFolder);$(GstreamerIncludeFolder);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>

<AdditionalLibraryDirectories>$(GstreamerLibFolder);$(GstreamerDllFolder);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>
*ges-1.0.lib;glib-2.0.lib;gobject-2.0.lib;gstbase-1.0.lib;gstcontroller-1.0.lib;gstpbutils-1.0.lib;gstreamer-1.0.lib;intl.lib;*
%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>

One caveat is that I have repackaged the Gstreamer include, *.dll, and
*.lib files into my own folder structure .... but in any case the snippet
shows the set of libraries that I am using.

BTW, I found a windows application called HxD to be a useful tool for
searching the *.lib files for the symbols that I was missing.  It has a
feature where you can search an entire folder.


On Mon, Jul 1, 2019 at 1:39 AM David Vescovi <dvescovi at tampabay.rr.com>
wrote:

> I have installed windows 64bit  gstreamer 1.0 and gstreamer dev x86_64
> installers.
>
> I set the environment variable GSTREAMER_1_0_ROOT_X86_64 and added the
> C:\gstreamer\1.0\x86_64\bin to my PATH
>
> Then downloaded doc file to get tutorials.
>
> I opened solution file and it upgraded solution to vs 2019.
>
> Tried to build basic tutorial-1 and got the "Cannot open include file:
> 'gst/gst.h' file.
>
> Then went to Property Manager and did the ..Add existing properity
> sheet...
>
> added C:\gstreamer\1.0\x86_64\share\vs\2010\libs\gstreamer-1.0.props
>
> now it partly builds but I get 7 unresolved symbols:
>
> 1>basic-tutorial-1.c
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_object_unref referenced in function _main
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_mini_object_unref referenced in function _gst_message_unref
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_bus_timed_pop_filtered referenced in function _main
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_element_get_bus referenced in function _main
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_element_set_state referenced in function _main
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_parse_launch referenced in function _main
>
> 1>basic-tutorial-1.obj : error LNK2019: unresolved external symbol
> __imp__gst_init referenced in function _main
>
> 1>C:\gstreamer\1.0\x86_64\\lib\gstreamer-1.0.lib : warning LNK4272:
> library machine type 'x64' conflicts with target machine type 'x86'
>
> 1>C:\gstreamer\1.0\x86_64\\lib\gobject-2.0.lib : warning LNK4272: library
> machine type 'x64' conflicts with target machine type 'x86'
>
> 1>C:\gstreamer\1.0\x86_64\\lib\glib-2.0.lib : warning LNK4272: library
> machine type 'x64' conflicts with target machine type 'x86'
>
> 1>C:\gstreamer\1.0\x86_64\\lib\intl.lib : warning LNK4272: library machine
> type 'x64' conflicts with target machine type 'x86'
>
> 1>C:\temp\gst_projects\examples\tutorials\vs2010\Debug\basic-tutorial-1.exe
> : fatal error LNK1120: 7 unresolved externals
>
> 1>Done building project "basic-tutorial-1.vcxproj" -- FAILED.
>
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
>
>
>
>
> Just can't seem to get rid of these errors, what am I missing?
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190701/54225833/attachment-0001.html>


More information about the gstreamer-devel mailing list