Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-10 Thread Daniel Narvaez
On 10 June 2013 19:44, Peter Robinson  wrote:

> On Mon, Jun 10, 2013 at 6:11 PM, Daniel Narvaez 
> wrote:
> > Made some more progress on this. I built busybox from source, with "make
> > menuconfig", selecting static build option, then "CPPFLAGS=-m32
> LDFLAGS=-m32
> > make".
>
> -m32 isn't supported on ARM.
>

Yup, using the x86 emulator.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-10 Thread Peter Robinson
On Mon, Jun 10, 2013 at 6:11 PM, Daniel Narvaez  wrote:
> Made some more progress on this. I built busybox from source, with "make
> menuconfig", selecting static build option, then "CPPFLAGS=-m32 LDFLAGS=-m32
> make".

-m32 isn't supported on ARM.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-10 Thread Daniel Narvaez
Made some more progress on this. I built busybox from source, with "make
menuconfig", selecting static build option, then "CPPFLAGS=-m32
LDFLAGS=-m32 make".

I had to transfer the chroot to the image through
shell.sugarlabs.orgbecause adb push doesn't seem to like big files
(sigh).

That allowed me to step in the chroot and run wayland. I tried to run it on
the fbdev because I haven't yet tried to build libhybris and use
surfaceflinger. While wayland seems to be running, nothing appears on the
screen.

Probably not worth spending time down that path anyway, next step will be
building libhybris in the chroot.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-09 Thread Daniel Narvaez
On 9 June 2013 17:07, Daniel Narvaez  wrote:

> Busybox needs to be added to the stuff we build
>
> dnarvaez@dnarvaez:~/android$ cat .repo/local_manifests/busybox.xml
> 
> 
>  fetch="git://github.com/Gnurou/"/>
>   name="busybox-android"
>  remote="busybox-android"
>  revision="master"/>
> 
>

Bah, this is actually a binary, will have to find something better.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-09 Thread Daniel Narvaez
On 9 June 2013 17:07, Daniel Narvaez  wrote:

>
> Now ideally we would
>
> emulator -partition-size 4096
>

Heh 2048 seems to work, which should be enough. Now I can't adb shell for
some reason, perhaps just uncleaned state from the arm build I made before.
Rebuilding a clean clone... that will take a while :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-09 Thread Daniel Narvaez
I made some decent progress on this. I have a tool that will build an F19
chroot (tested on Fedora, but supposed to work on any distro where you have
yum packages).

https://github.com/dnarvaez/broot

Must be installed in system path. Then create a dir with a manifest like
this

dnarvaez@dnarvaez:~/android-sugar$ cat root.json
{"path": "root",
 "packages": ["weston"],
 "distro": "fedora"}
}

And run

sudo broot create

To step inside the chroot

sudo broot shell

On the android side there are good building instructions, make sure to
select the x86 build with launch.

http://source.android.com/source/building-running.html

Busybox needs to be added to the stuff we build

dnarvaez@dnarvaez:~/android$ cat .repo/local_manifests/busybox.xml






Now ideally we would

emulator -partition-size 4096

The option is necessary to have enough space to copy the fedora root.
Unfortunately while the option works fine for arm builds it seems to go in
some kind of lseek infinite cycle on x86 :/
So I'm a bit stuck there. I should probably figure out how to mount an usb
disk rather than making the system image bigger.

After that I would use

adb shell stop
adb push tar_of_the_root /system/

Unpack the tar and chroot into it. Got most of that working on arm, except
the x86 chroot wouldn't work there of course :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Peter Robinson
On Wed, Jun 5, 2013 at 7:38 PM, Daniel Narvaez  wrote:
> On Wednesday, 5 June 2013, Peter Robinson wrote:
>>
>>
>> On 5 Jun 2013 17:02, "Daniel Narvaez"  wrote:
>> >
>> > By the way, I think this should not be too difficult to try out.
>> > Building a Fedora 19 chroot with pygobject and weston should be easy.
>> > libhybris could be manually built inside the chroot.
>> >
>> > Then it should be possible to run it in the x86 emulator, ld preloading
>> > libhybris and enabling the gtk wayland backend. If a basic gtk test
>> > application works that way, then I think sugar can be made to work too.
>> >
>>
>> Still won't be possible on f19 as there's still too many bits missing but
>> it should be possible with f-20.
>
>
> Which bits are missing?

I don't know the full details but some of the gnome developers that
maintain gtk3 and associated dependencies on Fedora have blogged about
it. They've also blogged that they plan to have the first version of
gnome3 running on wayland with the 3.10 release in Fedora 20. Those
guys are the lead developers on a number of the core components so
they would know.

Peter
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Daniel Narvaez
On Wednesday, 5 June 2013, Peter Robinson wrote:

>
> On 5 Jun 2013 17:02, "Daniel Narvaez"  'cvml', 'dwnarv...@gmail.com');>>
> wrote:
> >
> > By the way, I think this should not be too difficult to try out.
> Building a Fedora 19 chroot with pygobject and weston should be easy.
> libhybris could be manually built inside the chroot.
> >
> > Then it should be possible to run it in the x86 emulator, ld preloading
> libhybris and enabling the gtk wayland backend. If a basic gtk test
> application works that way, then I think sugar can be made to work too.
> >
>
> Still won't be possible on f19 as there's still too many bits missing but
> it should be possible with f-20.
>

Which bits are missing?


-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Peter Robinson
On 5 Jun 2013 17:02, "Daniel Narvaez"  wrote:
>
> By the way, I think this should not be too difficult to try out. Building
a Fedora 19 chroot with pygobject and weston should be easy. libhybris
could be manually built inside the chroot.
>
> Then it should be possible to run it in the x86 emulator, ld preloading
libhybris and enabling the gtk wayland backend. If a basic gtk test
application works that way, then I think sugar can be made to work too.
>

Still won't be possible on f19 as there's still too many bits missing but
it should be possible with f-20.

Peter
___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Daniel Narvaez
By the way, I think this should not be too difficult to try out. Building a
Fedora 19 chroot with pygobject and weston should be easy. libhybris could
be manually built inside the chroot.

Then it should be possible to run it in the x86 emulator, ld preloading
libhybris and enabling the gtk wayland backend. If a basic gtk test
application works that way, then I think sugar can be made to work too.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Daniel Narvaez
On 5 June 2013 14:43, Simon Schampijer  wrote:

> On 06/03/2013 01:15 PM, Daniel Narvaez wrote:
>
>> Hi,
>>
>> It seems like things are coming together pretty nicely for a port of gtk3
>> sugar on Android.
>>
>> * libhybris is making progress
>>
>> http://mer-project.blogspot.**fi/2013/05/wayland-utilizing-**
>> android-gpu-drivers.html
>>
>> * Gtk3 has been ported to wayland.
>>
>
> There is still work left to do for the wayland backend [1][2]. I gave it a
> quick try under F19 and the bits Matthias talks about (decorations) did not
> land yet. Sounds like quite bleeding edge still.
>

Yeah, the whole thing is very bleeding edge. But I don't see blockers to
get this working (I might if I actually tried :P)... And in X months you
can be pretty sure that these ports will be completed without us doing work
on them.

The more uncertain piece is libhybris, I'm not sure how much of a bad hack
it is. The fact that WebOS, Ubuntu and Sailfish OS are all going with that
approach gives me a bit more of confidence though.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-05 Thread Simon Schampijer

On 06/03/2013 01:15 PM, Daniel Narvaez wrote:

Hi,

It seems like things are coming together pretty nicely for a port of gtk3
sugar on Android.

* libhybris is making progress

http://mer-project.blogspot.fi/2013/05/wayland-utilizing-android-gpu-drivers.html

* Gtk3 has been ported to wayland.


There is still work left to do for the wayland backend [1][2]. I gave it 
a quick try under F19 and the bits Matthias talks about (decorations) 
did not land yet. Sounds like quite bleeding edge still.



* WebkitGtk have almost been ported to wayland.

https://bugs.webkit.org/show_bug.cgi?id=81456

The only missing part seems to be porting the Sugar window management bits
to wayland. Then it should be possible to build Sugar in a linux arm chroot
and run it with accelerated graphics on Android [3][4].


As discussed on irc, one of the downsides is that you can not integrate 
with the native Android apps that way. As well using intents would not 
be possible that way [5].


Regards,
   Simon

[1] http://blogs.gnome.org/mclasen/2013/03/26/adventures-in-wayland/
[2] https://live.gnome.org/Wayland/GTK+
[3] https://github.com/libhybris/libhybris
[4] https://www.yoctoproject.org/
[5] https://developer.android.com/guide/topics/media/camera.html#intents


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Gtk3 sugar on Android

2013-06-03 Thread Daniel Narvaez
Hi,

It seems like things are coming together pretty nicely for a port of gtk3
sugar on Android.

* libhybris is making progress

http://mer-project.blogspot.fi/2013/05/wayland-utilizing-android-gpu-drivers.html

* Gtk3 has been ported to wayland.

* WebkitGtk have almost been ported to wayland.

https://bugs.webkit.org/show_bug.cgi?id=81456

The only missing part seems to be porting the Sugar window management bits
to wayland. Then it should be possible to build Sugar in a linux arm chroot
and run it with accelerated graphics on Android.

I don't have time to work on this myself but if someone wants to give it a
try I'd be happy to mentor :)

-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel