JavaFX8: Multittouch support under Linux
Daniel Blaukopf
daniel.blaukopf at oracle.com
Mon Apr 7 12:28:40 UTC 2014
Tracked at https://javafx-jira.kenai.com/browse/RT-36462
It's targeted at 9, but there will be a patch soon.
Thanks,
Daniel
On 4/4/14, 10:40 AM, Stefan Schwandter wrote:
> Hi,
>
>
> thanks! I’ve tried to compile on a current Ubuntu 13.10. A default build (gradle 1.8 without parameters) works fine. With
>
> gradle -PCOMPILE_TARGETS=x86egl sdk
>
> however, I get the following build error:
>
> stefan at stefan-OptiPlex-GX620:~/src/openjfx/rt$ gradle -PCOMPILE_TARGETS=x86egl sdk
> :buildSrc:generateGrammarSource UP-TO-DATE
> :buildSrc:compileJava UP-TO-DATE
> :buildSrc:compileGroovy UP-TO-DATE
> :buildSrc:processResources UP-TO-DATE
> :buildSrc:classes UP-TO-DATE
> :buildSrc:jar UP-TO-DATE
> :buildSrc:assemble UP-TO-DATE
> :buildSrc:compileTestJava UP-TO-DATE
> :buildSrc:compileTestGroovy UP-TO-DATE
> :buildSrc:processTestResources UP-TO-DATE
> :buildSrc:testClasses UP-TO-DATE
> :buildSrc:test UP-TO-DATE
> :buildSrc:check UP-TO-DATE
> :buildSrc:build UP-TO-DATE
> Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
> Deprecated dynamic property: "compilePrefix" on "root project 'rt'", value: "".
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Script '/home/stefan/src/openjfx/rt/buildSrc/x86egl.gradle' line: 59
>
> * What went wrong:
> A problem occurred evaluating script.
>> No signature of method: java.lang.String.exists() is applicable for argument types: () values: []
> Possible solutions: wait(), toList(), expand(), execute(), toList(), next()
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 9.536 secs
>
>
> Best,
> Stefan
>
>
> Am 02.04.2014 um 10:19 schrieb Daniel Blaukopf <daniel.blaukopf at oracle.com>:
>
>> Hi Stefan,
>>
>> You have it exactly right. The touch support on the Raspberry Pi and similar devices gets events from the Linux device drivers, not from X11 or GTK. We don’t provide a binary of this configuration for x86, but if you are able to build OpenJFX then you could easily create a binary yourself (“gradle -PCOMPILE_TARGETS=x86egl sdk”). This is a hybrid binary that uses EGL/X11 for full-screen output but gets input directly from device nodes in /dev/input.
>>
>> Thanks,
>> Daniel
>>
>> On Apr 2, 2014, at 11:10 AM, Stefan Schwandter <s.schwandter at me.com> wrote:
>>
>>> Hi Anthony,
>>>
>>>
>>> thanks for your quick reply.
>>>
>>> I wonder though: it seems there’s at least preliminary touch support for OpenJFX on the Raspberry Pi - is this because it does not use X11 and/or GTK there? Is it possible to do the same on an X86-based Linux device?
>>>
>>>
>>> Cheers,
>>> Stefan
>>>
>>> Am 01.04.2014 um 14:02 schrieb Anthony Petrov <anthony.petrov at oracle.com>:
>>>
>>>> Hi Stefan,
>>>>
>>>> No, currently it's not. Here's a JIRA that you may want to watch:
>>>>
>>>> https://javafx-jira.kenai.com/browse/RT-25079
>>>>
>>>> --
>>>> best regards,
>>>> Anthony
>>>>
>>>> On 4/1/2014 3:52 PM, Stefan Schwandter wrote:
>>>>> Hello all!
>>>>>
>>>>>
>>>>> Is multitouch-input supposed to be supported on Java 8 SE running on Linux? I use a capacitive touch screen, with a DMC controller, connected to a Ubuntu 13.10 PC via USB, and none of the sample code that I've tried seems to recognize any touch events. Under Windows 7, touch events are recognized, I can swipe, zoom, etc.
>>>>>
>>>>> So I wonder, if multitouch input is simply not supported under Linux with JavaFX 8, or I have another problem.
>>>>>
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Stefan
>>>>>
More information about the openjfx-dev
mailing list