It seems my wxgtk program can't run on wayland.

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

It seems my wxgtk program can't run on wayland.

Post by cwall »

I set the environment GDK_BACKEND=wayland as https://wiki.gnome.org/Initiatives/Wayland/GTK%2B
said, but failed. I think perhaps the wxgtk I used don't support wayland.
So how can I known if or not the wxgtk I used support wayland-backend?
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

Re: It seems my wxgtk program can't run on wayland.

Post by cwall »

I known, the libwxgtk can't support wayland. maybe it uses gtk2 also, not only gtk3.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: It seems my wxgtk program can't run on wayland.

Post by DavidHart »

Hi,

I suspect you are right. I just tried building wxGTK with gtk+2 on fedora 25, which uses wayland. The build failed with:
error: ‘GDK_DRAG_PROTO_WAYLAND’ was not declared in this scope.

If you want to use wayland, I suggest you build your own wxGTK, either wxWidgets 3.0.3 or 3.1git, passing the configure option --with-gtk=3.

Regards,

David
Post Reply