iOS framework that includes GStreamer framework

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

iOS framework that includes GStreamer framework

Mailing List SVR
Hi,

I want to distribute an iOS Framework that links and uses GStreamer iOS
Framework,

I created a Cocoa Touch Framework, added my code (a GObject/GStreamer
based library) and I built my framework.

In an objective-c project I add my framework as embedded binary,

the objective-c project does not compile and it gives the error

"Include of non-modular header inside framework module",

this error is caused by the following includes:

#include <glib-object.h>

and

#include <gst/gst.h>

I need them in my .h files since my library is GObject/GStreamer based,
so the common suggestion to move these imports in .c files is not
applicable in my case.

Now in the objective c project in "Build Settings" -> "Target" I set
"Allow Non-modular Includes in Framework Modules" to "Yes" and the
project compiles and works.

In swift projects, after adding my framework as embedded binary, I have
the same error but the above setting has no effect there, so I'm unable
to use my framework in swift projects.

Do you have any suggestions? Is there something GStreamer side that can
be done to improve this use case?

thanks!

Nicola
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: iOS framework that includes GStreamer framework

Mailing List SVR
Solved myself using a wrapper that references the headers that include
gst.h ecc only in the .m,

thanks anyway,

Nicola

Il 09/05/2018 14:51, Mailing List SVR ha scritto:

> Hi,
>
> I want to distribute an iOS Framework that links and uses GStreamer
> iOS Framework,
>
> I created a Cocoa Touch Framework, added my code (a GObject/GStreamer
> based library) and I built my framework.
>
> In an objective-c project I add my framework as embedded binary,
>
> the objective-c project does not compile and it gives the error
>
> "Include of non-modular header inside framework module",
>
> this error is caused by the following includes:
>
> #include <glib-object.h>
>
> and
>
> #include <gst/gst.h>
>
> I need them in my .h files since my library is GObject/GStreamer
> based, so the common suggestion to move these imports in .c files is
> not applicable in my case.
>
> Now in the objective c project in "Build Settings" -> "Target" I set
> "Allow Non-modular Includes in Framework Modules" to "Yes" and the
> project compiles and works.
>
> In swift projects, after adding my framework as embedded binary, I
> have the same error but the above setting has no effect there, so I'm
> unable to use my framework in swift projects.
>
> Do you have any suggestions? Is there something GStreamer side that
> can be done to improve this use case?
>
> thanks!
>
> Nicola
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel