Compiling Plataform Preferences on Ubuntu 16.04

Kevin Rushforth kevin.rushforth at oracle.com
Mon Dec 18 14:03:32 UTC 2023


This is really about gcc rather than a version of Ubuntu.

I see little value in making the javafx.graphics native code compile 
with such an old version of gcc that it doesn't support C++11. (Worth 
noting that WebKit requires an even newer version, since it uses C++20 
features).

So, while yes, I'd like to see this continue to be buildable on Ubuntu 
16.04 -- and so far I have no problems compiling on that OS -- it seems 
fine to require a newer compiler in order for you to do so.

-- Kevin


On 12/18/2023 2:12 AM, Thiago Milczarek Sayão wrote:
> Hi,
>
> I get some compilation errors when building JavaFX on Ubuntu 16.04, 
> which seems related to the newly introduced Platform preferences API.
>
> Should we bother to make it work?
>
> In file included from 
> /home/tsayao/jose/jfx/modules/javafx.graphics/src/main/native-glass/gtk/GlassApplication.cpp:45:0:
> /home/tsayao/jose/jfx/modules/javafx.graphics/src/main/native-glass/gtk/PlatformSupport.h:30:7: 
> error: override controls (override/final) only available with 
> -std=c++11 or -std=gnu++11 [-Werror]
>  class PlatformSupport final
>        ^
> /home/tsayao/jose/jfx/modules/javafx.graphics/src/main/native-glass/gtk/PlatformSupport.h:35:47: 
> error: defaulted and deleted functions only available with -std=c++11 
> or -std=gnu++11 [-Werror]
>      PlatformSupport(PlatformSupport const&) = delete;
>                                                ^
> /home/tsayao/jose/jfx/modules/javafx.graphics/src/main/native-glass/gtk/PlatformSupport.h:36:58: 
> error: defaulted and deleted functions only available with -std=c++11 
> or -std=gnu++11 [-Werror]
>      PlatformSupport& operator=(PlatformSupport const&) = delete;
>
>
> -- Thiago.



More information about the openjfx-dev mailing list