<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I did some preliminary plugin development on VS 2015, so I can probably help you out with that.<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><br></blockquote>After VS 2010 the MSVC Runtime was fractured into a bunch of separate libs, so things have changed which prevents the VS 2010 property sheets from working properly.  If you are using VS 2015 then you want to avoid all of the property sheets in the installation folder ...<br></div><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div>%GSTREAMER_1_0_ROOT_X86_64%\share\vs\2010\msvc<br></div><div><br></div></div></blockquote><div dir="ltr"><div><div>... where my environment variables are:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>GSTREAMER_1_0_ROOT_X86_64=C:\dev\gstreamer\%GST_VERSION%\x86_64</div><div>GST_VERSION=1.14.3</div></div><br></blockquote>Fortunately, all of the property sheets in the following folder work fine:</div></div><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>%GSTREAMER_1_0_ROOT_X86_64%\share\vs\2010\libs</div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div dir="ltr"><div> <br></div><div>Here is an example of a property sheet that works with VS 2015 (where I am consuming gst-editing-services):</div><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><a href="https://github.com/adaviding/gstreamer-playground/blob/master/ges-slide-composition/props/x86_64.props">https://github.com/adaviding/gstreamer-playground/blob/master/ges-slide-composition/props/x86_64.props</a></div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I'm not sure if the following clauses are really necessary if you simply allow visual studio to include the default property sheets for a given build.</div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div>Under Debug:  <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><</span><span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">AdditionalDependencies</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">>libucrtd.lib;libcmtd.lib;libvcruntimed.lib;libcpmtd.lib;msvcprtd.lib;%(AdditionalDependencies)</</span><span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">AdditionalDependencies</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">></span></div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div>Under Release:  <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><</span><span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">AdditionalDependencies</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">>libucrt.lib;libcmt.lib;libvcruntime.lib;libcpmt.lib;msvcprt.lib;iphlpapi.lib;%(AdditionalDependencies)</</span><span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">AdditionalDependencies</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">></span></div></div></div></div></blockquote></blockquote><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>In the example above, I made the mistake of starting from the VS 2010 property sheets under the "msvc" folder and then I fixed what was broken (it wasn't easy).  If I were to do it over, I would just start with a normal VS 2015 C++ project and include at least the following property sheets (for plugin development):</div><div><br></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>gstreamer-1.0.props</div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>gstreamer-base-1.0.props</div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>gstreamer-pbutils-1.0.props</div><div><br></div></div></div></div></blockquote><div>I believe that by including the property sheets above, you will resolve the error regarding GST_PLUGIN_DEFINE and VERSION.</div><div><br></div><div>If you run into linker errors (can't find a particular symbol) then try searching the *.lib files for that symbol (perhaps I was using a hex editor, or perhaps I was using the `grep` command from GitBash ... I can't remember).  Once you figure out which *.lib file defines the given symbol then you can find the property sheet that goes with that *.lib file, and include it into your project.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 28, 2018 at 3:12 AM Sharden <<a href="mailto:vickarchuck@yandex.ru">vickarchuck@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone!<br>
I am trying to create a plugin from official Plugins Writer's Guide -<br>
<a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/pwg.pdf" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/pwg.pdf</a> .<br>
I cannot use make_element for creating my own plugin from gstplugin.c/h<br>
files (from<br>
<a href="https://cgit.freedesktop.org/gstreamer/gst-template/tree/gst-plugin/src" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/gstreamer/gst-template/tree/gst-plugin/src</a>) but<br>
I saw what it does on Linux machine and replaced everything myself. I<br>
replaced all "gstplugin" entries with "mynewplugin". I also tried to use<br>
gsttransform files from the same page.<br>
I added proprties included in the gstreamer sdk - gstreamer-1.0.props and<br>
tried to build the dll file. It showed me an error in macros<br>
GST_PLUGIN_DEFINE: VERSION - undeclared identifier. <br>
Also Visual Stufio itself starts to behave strangely - intellisene always<br>
parses something and I am not able to close VS as it does nothing when I try<br>
to close it. Looks like the prop files which were designed for VS 2010 does<br>
not work for 2015.<br>
Does anyone has an experience of writing plugin via Windows on VS 2015? Any<br>
help will do!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>