<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-11 9:46 GMT+02:00 Lasse Laursen <span dir="ltr"><<a href="mailto:gazoo@42.dk" target="_blank">gazoo@42.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Dear GStreamer-devel,<br>
<br>
I've recently found a need to start compiling a 64-bit version of my
GStreamer app. I'd prefer not having to give up my 32-bit version
though, so I set about to have my cake and eat it too.<br>
<br>
But I'm left with a few questions, to which I may, or may not
already have the answers. I could do with some input regardless.<br>
<br>
So the two big challenges I see that need resolving are as follows:<br>
<br>
1. GST_PLUGIN_PATH defined as an environment variable. This can - of
course - only point to either the 32 or 64 bit collection of
plug-ins. My assumption is that plug-ins are also compiled in either
a 32 or 64 bit fashion and should be used with the respective
version of the GStreamer library. An earlier message on this mailing
list indicated that Gstreamer automatically scans this place:<br>
<br>
DIR/lib/gstreamer-1.0/ where DIR is<br>
<pre>g_win32_get_package_installation_directory_of_module()</pre>
here I'm already a bit curious as whether that changes the directory
it points at if you're running a 64-bit version of an application
dynamically linked with 64-bit GStreamer...?<br>
<br>
Another helpful user pointed out the option of using 'putenv' to
modify the environment variables during runtime, which would then
fairly easily let me point the GST_PLUGIN_PATH to the right
directory.<br>
<br>
2. The PATH environment variable has the same issue - pointing only
to the 32 or 64 binaries. I'm guessing 'putenv' could solve this
too, unless someone else has some other cool and easier ways to fix
this?<br>
<br>
------------------<br>
<br>
With both these approaches one thing I worry about it having to
remove the default environment variables, as using GStreamers
executables separately is quite useful for testing a lot of stuff.
But having to continuously add and remove them is quite the hassle.
Apart from creating a custom batch file that launches a cmd window
and adds these env. variables, I'm also a little at a loss as to how
to solve this...<br>
<br>
Any and all thoughts/comments are welcome. I will test this soon,
but I am keen to hear existing experience!<br></div></blockquote><div><br></div><div>Hi Lasse, <br><br></div><div>On Windows GStreamer can be installed in parallel for both architectures and you can work with both archs without having to do anything else on your side.<br>
Your x64 application will link against the gstreamer library in c:\gstreamer\1.0\x86_64\bin and therefore loads deps and plugins from this prefix, while the x86 one will link against the gstreamer library in c:\gstreamer\1.0\x86\bin and use this different prefix.<br>
</div><div>And in case you need to set PATH the installer adds 2 env variables that you can use GSTREAMER_1_0_ROOT_X86 and GSTREAMER_1_0_ROOT_X86_64<br><br></div><div>Cheers,<br>Andoni<br></div><div><br></div><div>Cheers,<br>
Andoni<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<br>
Regards,<br>
Lasse<span class=""><font color="#888888"><br>
<br>
<div>-- <br>
Lasse Farnung Laursen<br>
Post.doc at the University of Tokyo<br>
<a href="http://www.lasselaursen.com" target="_blank">www.lasselaursen.com</a><br>
FB: <a href="https://www.facebook.com/lasse.laursen" target="_blank">lasse.laursen
</a><br>
Twitter: <a href="https://twitter.com/PMP_J" target="_blank">@PMP_J</a></div>
</font></span></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a>
</div></div>