Clang port of GStreamer 1.12.4 to Android

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

Clang port of GStreamer 1.12.4 to Android

Stirling Westrup
As part of our development work on Android, we were forced to
cross-compile GStreamer 1.12.4 with clang for Android ARM v7a

We now have a set of bash scripts which accomplish this task, in case
anyone else is interested.

There are several caveats:

1) We've only tested the build scripts on Linux, specifically the
OpenSuse and Centos distros, as that's the environments we work in. We
don't support either Mac or Windows builds.

2) We don't build everything. In particular, we only ported the
minimal set of libraries needed to support all of the elements that we
use, but the framework is now in place for adding more libraries.

3) We've only tested cross compiling to ARM7, although it should be
relatively easy to change the target.

4) We have custom patches in place to support the conversion. Some fix
issues in the libraries, but others are unoffical bug fixes or new
features for some of the elements we rely on. You will probably want
to strip them out.

5) We only compile down to the individual libraries. Pulling them
altogether and linking them with gstreamer_android.c is something we
left up to Android Studio, for maximum flexibility, but we can supply
our Android.mk file for building the final library.

I don't know if these scripts will be of use to anyone else, but it
took a few months of development and testing to get them working, so
we're willing to release them, with minimal documentation or
handholding.

So, this is far from a final solution, but if someone needs a
quick-and-dirty clang conversion for gstreamer, here it is.

--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Clang port of GStreamer 1.12.4 to Android

Edward Hervey-4
Hi,

  You forgot to provide a link ?

    Edward

On Thu, 2018-06-07 at 12:56 -0400, Stirling Westrup wrote:

> As part of our development work on Android, we were forced to
> cross-compile GStreamer 1.12.4 with clang for Android ARM v7a
>
> We now have a set of bash scripts which accomplish this task, in case
> anyone else is interested.
>
> There are several caveats:
>
> 1) We've only tested the build scripts on Linux, specifically the
> OpenSuse and Centos distros, as that's the environments we work in.
> We
> don't support either Mac or Windows builds.
>
> 2) We don't build everything. In particular, we only ported the
> minimal set of libraries needed to support all of the elements that
> we
> use, but the framework is now in place for adding more libraries.
>
> 3) We've only tested cross compiling to ARM7, although it should be
> relatively easy to change the target.
>
> 4) We have custom patches in place to support the conversion. Some
> fix
> issues in the libraries, but others are unoffical bug fixes or new
> features for some of the elements we rely on. You will probably want
> to strip them out.
>
> 5) We only compile down to the individual libraries. Pulling them
> altogether and linking them with gstreamer_android.c is something we
> left up to Android Studio, for maximum flexibility, but we can supply
> our Android.mk file for building the final library.
>
> I don't know if these scripts will be of use to anyone else, but it
> took a few months of development and testing to get them working, so
> we're willing to release them, with minimal documentation or
> handholding.
>
> So, this is far from a final solution, but if someone needs a
> quick-and-dirty clang conversion for gstreamer, here it is.
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Clang port of GStreamer 1.12.4 to Android

Stirling Westrup
There isn't a public link yet. I was trying to judge if there was
enough interest that I should clean up what I have, create a new
github instance, and upload it.


On Fri, Jun 8, 2018 at 1:10 AM, Edward Hervey <[hidden email]> wrote:

> Hi,
>
>   You forgot to provide a link ?
>
>     Edward
>
> On Thu, 2018-06-07 at 12:56 -0400, Stirling Westrup wrote:
>> As part of our development work on Android, we were forced to
>> cross-compile GStreamer 1.12.4 with clang for Android ARM v7a
>>
>> We now have a set of bash scripts which accomplish this task, in case
>> anyone else is interested.
>>
>> There are several caveats:
>>
>> 1) We've only tested the build scripts on Linux, specifically the
>> OpenSuse and Centos distros, as that's the environments we work in.
>> We
>> don't support either Mac or Windows builds.
>>
>> 2) We don't build everything. In particular, we only ported the
>> minimal set of libraries needed to support all of the elements that
>> we
>> use, but the framework is now in place for adding more libraries.
>>
>> 3) We've only tested cross compiling to ARM7, although it should be
>> relatively easy to change the target.
>>
>> 4) We have custom patches in place to support the conversion. Some
>> fix
>> issues in the libraries, but others are unoffical bug fixes or new
>> features for some of the elements we rely on. You will probably want
>> to strip them out.
>>
>> 5) We only compile down to the individual libraries. Pulling them
>> altogether and linking them with gstreamer_android.c is something we
>> left up to Android Studio, for maximum flexibility, but we can supply
>> our Android.mk file for building the final library.
>>
>> I don't know if these scripts will be of use to anyone else, but it
>> took a few months of development and testing to get them working, so
>> we're willing to release them, with minimal documentation or
>> handholding.
>>
>> So, this is far from a final solution, but if someone needs a
>> quick-and-dirty clang conversion for gstreamer, here it is.
>>



--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Clang port of GStreamer 1.12.4 to Android

Sebastian Dröge-3
Hi Stirling,

On Fri, 2018-06-08 at 11:14 -0400, Stirling Westrup wrote:
> There isn't a public link yet. I was trying to judge if there was
> enough interest that I should clean up what I have, create a new
> github instance, and upload it.

There is, there's even a bug about that already:
  https://bugzilla.gnome.org/show_bug.cgi?id=759737

Can you link your results there too when you publish them? Would be
good to move forward with that and stop using gcc on Android.

--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

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

signature.asc (981 bytes) Download Attachment