[Bug 777528] XCode Template does not work

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jan 30 16:10:31 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=777528

--- Comment #4 from Nick Kallen <socialmediamaster9000 at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #3)

> That's indeed needed and was forgotten to be added also to the template (the
> example applications all go it). Want to provide a patch?

I think over the next few weeks I will try to get up to speed with your
codebase enough that I can make patches. I would like to make the changes
specified in bug 771860, comment 6 , as well as some other changes to the
generated framework so it can be used with Carthage. This requires me to get
familiar with your cerbero recipes which have a steep learning curve. If I can
succeed at this, it should make it much easier to install the framework and no
longer require the template at all. I would appreciate any advice.

> > FWIW, I have created a Objective-C/Swift bridge and module.map that allows
> > me to use the library from Swift -- if anyone wants them.
> 
> That would indeed be interesting. Did you base it on the
> GObject-Introspection information to also get information about how to do
> memory management?

For now I've hand-coded it (it's just a hack/proof of concept). I'm sure I've
made errors with the memory management as I'm neither an Objective C programmer
nor a C programmer so I'm fumbling around a bit. Over the next few weeks I'd
like to migrate to a code-gen approach using the GIR file, similar to how the
C# bindings work. Here, for example, is the Objective-C header file:

https://gist.github.com/nkallen/6e3f5cf4e174a9d4f9d915fa9ca7a1a3#file-gst-h

And here is a swift translation of one of your ios demos (although I've changed
the launch string):

https://gist.github.com/nkallen/6e3f5cf4e174a9d4f9d915fa9ca7a1a3#file-gstreamerservice-swift

The above actually works.

I'd like to make this a public package in some way. Do you have any advice
Sebastian?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list