GStreamer in Visual Studio 2010

Sau Ming Chau @ Red Giant Software LLC sauming at redgiantsoftware.com
Thu Sep 26 11:12:23 PDT 2013


Regarding files like lex.priv_gst_parse_yy.c, flex/bison is required (link
here <http://sourceforge.net/projects/winflexbison/>).

   1. Add win_bison/win_flex bin path to PATH environment variable.
   2. Modify {root}\win32\vs10\generated\generated.vcxproj bison/flex to
   win_bison/winflex


   <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
   win_bison -d -v -ppriv_gst_parse_yy $(GstProjectRoot)gst\parse\grammar.y
   -o $(GstProjectRoot)gst\parse\grammar.tab.c

   win_flex  -Ppriv_gst_parse_yy
   -o$(GstProjectRoot)gst\parse\lex.priv_gst_parse_yy.c
   $(GstProjectRoot)gst\parse\parse.l

   </Command>

    <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   win_bison -d -v -ppriv_gst_parse_yy $(GstProjectRoot)gst\parse\grammar.y
   -o $(GstProjectRoot)gst\parse\grammar.tab.c

   win_flex  -Ppriv_gst_parse_yy
   -o$(GstProjectRoot)gst\parse\lex.priv_gst_parse_yy.c
   $(GstProjectRoot)gst\parse\parse.l
   </Command>
   3. In Common.props, modify GstProjectRoot and GstPrefix to absolute path
   for now. Flex/bison on relative path does not work in my case.
   <GstProjectRoot>C:\src\gstreamer\gstreamer\</GstProjectRoot>
   <GstPrefix>$(GstProjectRoot)$(PlatformName)\vs10\</GstPrefix>

Best regards,
Sau Ming


On 24 September 2013 14:23, Hugo MACHEFER <hugo.machefer at gmail.com> wrote:

> I am extremely interested by what your team managed to do across Visual
> Studio 2010. Indeed: when I start to build .sln projects by VC++, compiler
> immediately starts to complain about missing /source/ files :
>
> 2>------ Build started: Project: gstreamer, Configuration: Debug Win32
> ------
> 2> lex.priv_gst_parse_yy.c
> 2>c1 : fatal error C1083: Cannot open source file:
> '..\..\..\gst\parse\lex.priv_gst_parse_yy.c': No such file or directory
> 2> grammar.tab.c
> 2>c1 : fatal error C1083: Cannot open source file:
> '..\..\..\gst\parse\grammar.tab.c': No such file or directory
> ...
> This kind of file: <lex.priv_gst_parse_yy.c> can't be furnished AS IS,
> manifestly They can't have been generated by Visual Studio (2010) either.
> You confirm ? So how to get hold ot it. Probably "made" by LEX parser (but
> out of Visual C++) ... But which way exactly ?
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/GStreamer-in-Visual-Studio-2010-tp4662160p4662189.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> --
> Best regards,
> Sau Ming
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130926/13a67b58/attachment.html>


More information about the gstreamer-devel mailing list