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?
It seems my wxgtk program can't run on wayland.
-
- Earned a small fee
- Posts: 19
- Joined: Thu May 18, 2017 6:36 am
-
- 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.
I known, the libwxgtk can't support wayland. maybe it uses gtk2 also, not only gtk3.
-
- Site Admin
- Posts: 4254
- Joined: Thu Jan 12, 2006 6:23 pm
- Location: IoW, UK
Re: It seems my wxgtk program can't run on wayland.
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
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