Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-12 Thread Johan Vos
The changes for the new mesa-driver are in a branch (
https://bitbucket.org/javafxports/8u-dev-rt/branch/mesa) and we don't
distribute binaries from the Gluon download yet, as the new driver is still
experimental.
I am told, though, that it will soon become the default driver, and then
those changes are needed and we will update the binary SDK on
http://gluonhq.com/labs/javafxports/get/

Meanwhile, if you want to test, there is a build of the JavaFX SDK for
armv6hf that works with X11 and OpenGL here:
http://download.gluonhq.com/tmp/armv6hf-sdk.tar.bz2
You can get a very simple JavaFX app here:
http://download.gluonhq.com/tmp/HelloPi.jar

When the tar.bz2 is unpacked in /opt, you can run the sample app as follows:

java -Djava.ext.dirs=/opt/armv6hf-sdk/rt/lib/ext/
-Dmonocle.platform.traceConfig=true -Djavafx.verbose=true
-Dx11.geometry=400x200 -Dx11.input=true -jar HelloPi.jar

Make sure the java.ext.dirs points to the directory where you unpacked the
JavaFX SDK/rt/lib/ext .

One final thing, I removed the /opt/vc dir on my Pi, as somehow the
eglGetDisplay was still retrieved from a lib in /opt/vc instead of the mesa
library.

- Johan

On Sat, Feb 11, 2017 at 5:38 AM Scott Palmer  wrote:

> Hi Johan,
>
> Excellent! Do you have a build or instructions somewhere?
>
> Thanks,
>
> Scott
>
> On Feb 10, 2017, at 4:03 AM, Johan Vos  wrote:
>
> Hi Scott,
>
> I actually have this working, leveraging the new mesa driver for the Pi.
> It is using monocle and ES2 and it integrates very well with the X11
> system on the Raspberry Pi.
>
> - Johan
>
> On Thu, Feb 9, 2017 at 8:19 PM Scott Palmer  wrote:
>
> Just wondering if there are some options for building OpenJFX for
> embedded ARM such that it behaves like it does on x86 Linux with X11.
> I mean with actual decorated windows instead of just  lumping
> everything onto the frame buffer or a single window.
>
> Is this currently possible?
>
>
> Scott
>
>
>


Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-12 Thread Chris Newland
Hi Scott,

I run windowed JavaFX desktop apps on the Raspberry Pi 3 (Latest Raspbian
+ PIXEL desktop without experimental driver) using the GTK platform and
software pipeline with an OpenJFX build from my server at
https://chriswhocodes.com/

Just download an ARM nightly:

wget
https://chriswhocodes.com/downloads/openjfx-8-sdk-overlay-linux-armv6hf.zip

and unzip it over your JDK

unzip openjfx-8-sdk-overlay-linux-armv6hf.zip -d /home/pi/jdk1.8.0_121

and then add the switches -Dprism.platform=gtk -Dprism.order=sw to your
java command.

Cheers,

Chris

On Thu, February 9, 2017 19:08, Scott Palmer wrote:
> Just wondering if there are some options for building OpenJFX for
> embedded ARM such that it behaves like it does on x86 Linux with X11. I
> mean with actual decorated windows instead of just  lumping everything
> onto the frame buffer or a single window.
>
> Is this currently possible?
>
>
>
> Scott
>
>



Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-10 Thread Scott Palmer
Hi Johan,

Excellent! Do you have a build or instructions somewhere?

Thanks,

Scott

> On Feb 10, 2017, at 4:03 AM, Johan Vos  wrote:
> 
> Hi Scott,
> 
> I actually have this working, leveraging the new mesa driver for the Pi.
> It is using monocle and ES2 and it integrates very well with the X11 system 
> on the Raspberry Pi.
> 
> - Johan
> 
> On Thu, Feb 9, 2017 at 8:19 PM Scott Palmer  > wrote:
> Just wondering if there are some options for building OpenJFX for
> embedded ARM such that it behaves like it does on x86 Linux with X11.
> I mean with actual decorated windows instead of just  lumping
> everything onto the frame buffer or a single window.
> 
> Is this currently possible?
> 
> 
> Scott



Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-10 Thread Johan Vos
Hi Scott,

I actually have this working, leveraging the new mesa driver for the Pi.
It is using monocle and ES2 and it integrates very well with the X11 system
on the Raspberry Pi.

- Johan

On Thu, Feb 9, 2017 at 8:19 PM Scott Palmer  wrote:

> Just wondering if there are some options for building OpenJFX for
> embedded ARM such that it behaves like it does on x86 Linux with X11.
> I mean with actual decorated windows instead of just  lumping
> everything onto the frame buffer or a single window.
>
> Is this currently possible?
>
>
> Scott
>


Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-09 Thread Mattias Eliasson
It depends on the platform. On Raspberry Pi x11 doesn't support hardware 
acceleration. That's an x11 issue not a JFX issue. I'm currently gonna 
implement a very limited desktop environment for this platform specifically, 
although it should work on any ARM platform that can run JFX.

To make x11 and OpenGL mix well you need a good backed renderer for x11. If you 
can't get windows decoration on OpenGL windows that's probably because your 
platform doesn't use OpenGL for the window manager. That used to be a problem 
on x86 before they made x11 render everything using OpenGL. But the problem is 
that ARM usually has EGL which is not yet fully supported by x11. There may be 
support for some GPU:s but don't count on yours being supported. 

David Hill  skrev: (9 februari 2017 21:02:43 CET)
>On 2/9/17, 2:08 PM, Scott Palmer wrote:
>> Just wondering if there are some options for building OpenJFX for
>> embedded ARM such that it behaves like it does on x86 Linux with X11.
>> I mean with actual decorated windows instead of just  lumping
>> everything onto the frame buffer or a single window.
>>
>> Is this currently possible?
>It should be possible, I just have not done it in a while so would not
>be surprised if there is some bit rot.
>
>In short, you want the GTK base glass plugin, instead of Monocle. We
>were building both before I stopped building ARM.
>
>after that, it should be a simple command line toggle, or a small edit
>to the created platform properties file.
>
>-Djavafx.platform=gtk
>
>-Dprism.verbose=true
>
>Note that there is a good chance that this will not be hardware
>accelerated because of differences in GL setup.
>
>Dave
>>
>>
>> Scott
>
>
>-- 
>David Hill
>Java Embedded Development
>
>"A man's feet should be planted in his country, but his eyes should
>survey the world."
>-- George Santayana (1863 - 1952)


Re: Is a Desktop Experience on ARM with X11 Possible?

2017-02-09 Thread David Hill

On 2/9/17, 2:08 PM, Scott Palmer wrote:

Just wondering if there are some options for building OpenJFX for
embedded ARM such that it behaves like it does on x86 Linux with X11.
I mean with actual decorated windows instead of just  lumping
everything onto the frame buffer or a single window.

Is this currently possible?

It should be possible, I just have not done it in a while so would not be 
surprised if there is some bit rot.

In short, you want the GTK base glass plugin, instead of Monocle. We were 
building both before I stopped building ARM.

after that, it should be a simple command line toggle, or a small edit to the 
created platform properties file.

-Djavafx.platform=gtk

-Dprism.verbose=true

Note that there is a good chance that this will not be hardware accelerated 
because of differences in GL setup.

Dave



Scott



--
David Hill
Java Embedded Development

"A man's feet should be planted in his country, but his eyes should survey the 
world."
-- George Santayana (1863 - 1952)



Is a Desktop Experience on ARM with X11 Possible?

2017-02-09 Thread Scott Palmer
Just wondering if there are some options for building OpenJFX for
embedded ARM such that it behaves like it does on x86 Linux with X11.
I mean with actual decorated windows instead of just  lumping
everything onto the frame buffer or a single window.

Is this currently possible?


Scott