Compiling GES with GST 1.0 with Visual Studio 2010 on Windows

Kim Lam kim at redgiantsoftware.com
Mon May 27 13:30:47 PDT 2013


Hello Sabastian
When I remove the include I get the errors below, so I am not sure what the
file is using from unistd.h:


1>ClCompile:
1>  ges-pitivi-formatter.c
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(17): error C2054: expected '(' to follow
'_C_STD_BEGIN'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(17): error C2085: 'int8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(18): error C2085: 'int16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(19): error C2085: 'int32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(21): error C2085: 'uint8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(22): error C2085: 'uint16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(23): error C2085: 'uint32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(25): error C2085: 'int_least8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(26): error C2085: 'int_least16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(27): error C2085: 'int_least32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(29): error C2085: 'uint_least8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(30): error C2085: 'uint_least16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(31): error C2085: 'uint_least32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(33): error C2085: 'int_fast8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(34): error C2085: 'int_fast16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(35): error C2085: 'int_fast32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(37): error C2085: 'uint_fast8_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(38): error C2085: 'uint_fast16_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(39): error C2085: 'uint_fast32_t' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(59): error C2085: '_Longlong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(59): error C2146: syntax error : missing ','
before identifier 'int64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(60): error C2085: '_ULonglong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(60): error C2146: syntax error : missing ','
before identifier 'uint64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(62): error C2085: '_Longlong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(62): error C2146: syntax error : missing ','
before identifier 'int_least64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(63): error C2085: '_ULonglong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(63): error C2146: syntax error : missing ','
before identifier 'uint_least64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(65): error C2085: '_Longlong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(65): error C2146: syntax error : missing ','
before identifier 'int_fast64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(66): error C2085: '_ULonglong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(66): error C2146: syntax error : missing ','
before identifier 'uint_fast64_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(68): error C2085: '_Longlong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(68): error C2146: syntax error : missing ','
before identifier 'intmax_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(69): error C2085: '_ULonglong' : not in formal
parameter list
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(69): error C2146: syntax error : missing ','
before identifier 'uintmax_t'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(143): warning C4005: 'WCHAR_MIN' : macro
redefinition
1>          C:\WinDDK\7600.16385.1\inc\crt\wchar.h(43) : see previous
definition of 'WCHAR_MIN'
1>c:\program files (x86)\microsoft visual studio
10.0\vc\include\stdint.h(169): error C2061: syntax error : identifier
'_C_STD_END'
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2143: syntax error : missing '{'
before '__cdecl'
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2146: syntax error : missing ')'
before identifier 'numer'
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2061: syntax error : identifier
'numer'
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2059: syntax error : ';'
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2059: syntax error : ','
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\inttypes.h(280): error C2059: syntax error : ')'
1>


On Mon, May 27, 2013 at 1:24 PM, Sebastian Dröge <
sebastian.droege at collabora.co.uk> wrote:

> On Mo, 2013-05-27 at 13:13 -0700, Kim Lam wrote:
> > Hello
> >
> > I am trying to compile GES on Windows using GST 1.0 and visual studio.
> >
> > I am running into a problem with ges-pitivi-formatter.c,  VS2010 can't
> > find unistd.h.
> >
> > Is there a window equivalent to this file, conversely, is
> > ges-pitivi-formatter.c needed if I am not developing for Pitivi?
>
> Does it compile if you just remove the include? If not, what's missing?
>
> The best would be to implement the needed functionality from unistd.h
> with something platform independent.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130527/6a553252/attachment.html>


More information about the gstreamer-devel mailing list