79man / v4lsink

Automatically exported from code.google.com/p/v4lsink
0 stars 0 forks source link

patched vapi files don't work with valac 0.8.1 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. use a system with valac 0.8.1 or newer 
1. download svn rev 36 
2. make -> error

What is the expected output? What do you see instead?

valac --output=v4lsink --vapidir=. --pkg posix --pkg v4l2 --pkg gstreamer-0.10 
--pkg gtk+-2.0 --pkg gdk-x11-2.0 --pkg gstreamer-interfaces-0.10 --pkg 
gstreamer-video-0.10 gst-app.vala gst-v4lsink-loopback.vala
gstreamer-0.10.vapi:1970.30-1970.41: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void DebugFuncPtr ();
                                ^^^^^^^^^^^^
gstreamer-0.10.vapi:1980.30-1980.52: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void IteratorDisposeFunction (void* owner);
                                ^^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1984.30-1984.49: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void IteratorFreeFunction (Gst.Iterator it);
                                ^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1986.42-1986.61: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.IteratorItem IteratorItemFunction (Gst.Iterator it, void* item);
                                            ^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1988.44-1988.63: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.IteratorResult IteratorNextFunction (Gst.Iterator it, void* result);
                                              ^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1990.30-1990.51: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void IteratorResyncFunction (Gst.Iterator it);
                                ^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1994.48-1994.69: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate unowned Gst.MiniObject MiniObjectCopyFunction (Gst.MiniObject obj);
                                                  ^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1996.30-1996.55: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void MiniObjectFinalizeFunction (Gst.MiniObject obj);
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:1998.30-1998.50: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadAcceptCapsFunction (Gst.Pad pad, Gst.Caps caps);
                                ^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2000.30-2000.48: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadActivateFunction (Gst.Pad pad);
                                ^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2002.30-2002.52: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadActivateModeFunction (Gst.Pad pad, bool active);
                                ^^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2006.40-2006.61: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.FlowReturn PadBufferAllocFunction (Gst.Pad pad, uint64 offset, uint size, Gst.Caps caps, out unowned Gst.Buffer buf);
                                          ^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2008.40-2008.55: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.FlowReturn PadChainFunction (Gst.Pad pad, Gst.Buffer buffer);
                                          ^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2010.30-2010.53: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadCheckGetRangeFunction (Gst.Pad pad);
                                ^^^^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2014.30-2014.45: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadEventFunction (Gst.Pad pad, Gst.Event event);
                                ^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2016.30-2016.50: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void PadFixateCapsFunction (Gst.Pad pad, Gst.Caps caps);
                                ^^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2018.42-2018.59: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate unowned Gst.Caps PadGetCapsFunction (Gst.Pad pad);
                                            ^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2020.40-2020.58: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.FlowReturn PadGetRangeFunction (Gst.Pad pad, uint64 offset, uint length, out unowned Gst.Buffer buffer);
                                          ^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2022.43-2022.60: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate unowned GLib.List PadIntLinkFunction (Gst.Pad pad);
                                             ^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2024.43-2024.57: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.PadLinkReturn PadLinkFunction (Gst.Pad pad, Gst.Pad peer);
                                             ^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2026.30-2026.45: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadQueryFunction (Gst.Pad pad, Gst.Query query);
                                ^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2028.39-2028.58: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate Gst.QueryType PadQueryTypeFunction (Gst.Pad pad);
                                         ^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2030.30-2030.47: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PadSetCapsFunction (Gst.Pad pad, Gst.Caps caps);
                                ^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2032.30-2032.46: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void PadUnlinkFunction (Gst.Pad pad);
                                ^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2038.30-2038.43: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool PluginInitFunc (Gst.Plugin plugin);
                                ^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2046.30-2046.41: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate void TagMergeFunc (Gst.Value dest, Gst.Value src);
                                ^^^^^^^^^^^^
gstreamer-0.10.vapi:2052.29-2052.44: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate int ValueCompareFunc (Gst.Value value1, Gst.Value value2);
                               ^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2054.30-2054.49: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool ValueDeserializeFunc (Gst.Value dest, string s);
                                ^^^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2056.30-2056.47: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool ValueIntersectFunc (Gst.Value dest, Gst.Value value1, Gst.Value value2);
                                ^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2058.40-2058.57: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate unowned string ValueSerializeFunc (Gst.Value value1);
                                          ^^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2060.30-2060.46: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool ValueSubtractFunc (Gst.Value dest, Gst.Value minuend, Gst.Value subtrahend);
                                ^^^^^^^^^^^^^^^^^
gstreamer-0.10.vapi:2062.30-2062.43: warning: deprecated syntax, use [CCode 
(has_target = false)]
    public static delegate bool ValueUnionFunc (Gst.Value dest, Gst.Value value1, Gst.Value value2);
                                ^^^^^^^^^^^^^^
gstreamer-base-0.10.vapi:74.46-74.59: error: The type name `Gst.BufferList' 
could not be found
        public virtual Gst.FlowReturn render_list (Gst.BufferList buffer_list);
                                                   ^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 32 warning(s)
make: *** [all] Fehler 1

What version of the product are you using? On what operating system?
see above

Please provide any additional information below.
delete the patched vapi files -> compile works, once gst-v4lsink-loopback.vala 
is fixed

Original issue reported on code.google.com by streu...@gmail.com on 14 Jun 2010 at 4:31

GoogleCodeExporter commented 9 years ago
Could you post a patch? It might be obvious, but I am playing extreme catch-up 
on valac-issues.  I tried rm tweaked vapi headers (and ignoring warnings), but 
valac generates c code wanting stropts.h, which is itself deprecated.  I 
suspect you may have avoided this problem when you fixed 
gst-v4lsink-loopback.vala.

Thanks in advance,

-SM

Original comment by smai...@alaya.com on 14 Jun 2010 at 9:49

GoogleCodeExporter commented 9 years ago
Just switched repo to mercurial, co you can just clone repo and commit your 
changes.

Original comment by gorinich...@gmail.com on 15 Jun 2010 at 4:50

GoogleCodeExporter commented 9 years ago
Are you still using Subversion?  Will I see streumix's changes via Subversion? 
Why is there still an extra '}' in the HEAD revision of 
gst-v4lsink-loopback.vala? 

Original comment by smai...@alaya.com on 15 Jun 2010 at 10:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry no more subversion here, and do not wait fix for extra '}' from me 
anytime soon, unless someone commit fix, that is the reason to switch to 
mercurial, now committing fixes is easy.

Original comment by gorinich...@gmail.com on 15 Jun 2010 at 11:12

GoogleCodeExporter commented 9 years ago
Could anyone commit a fix please?

Original comment by nag...@gmail.com on 1 Jul 2010 at 4:17

GoogleCodeExporter commented 9 years ago
extra } removal is already there.

Original comment by gorinich...@gmail.com on 1 Jul 2010 at 5:31

GoogleCodeExporter commented 9 years ago
I mean I'm looking for a solution for the following problem
"The type name `Gst.BufferList' could not be found"
I'm still getting this error message when compiling.

thank you

Original comment by nag...@gmail.com on 2 Jul 2010 at 7:15

GoogleCodeExporter commented 9 years ago
Downgraded to valac 0.7.6 and it compiles.

Original comment by nag...@gmail.com on 4 Jul 2010 at 1:48

GoogleCodeExporter commented 9 years ago
After fixing the extra }, removing the two patched vapi headers did the trick 
to compile with 0.8.1 . I'm not sure, if there are problems with the system 
headers of 0.8.1, but at least valac didn't complain and v4lsink is running.

Original comment by streu...@gmail.com on 11 Aug 2010 at 12:17

GoogleCodeExporter commented 9 years ago

Original comment by gorinich...@gmail.com on 11 Aug 2010 at 12:21