jordiperezarti wrote: ↑Wed Sep 04, 2024 4:05 pm
I run the cmake to build the sources for linux, but it stops due some X11 dependencies, because i have kubuntu distro with wayland instead X11.
I will tell you my experience. I hope it helps. I do not use Qt, I use Gnome. And my windows are created with SDL. So, I will simply change Gnome and SDL by Qt in my wordings below.
Unfortunately, when compiling Ogre you have to choose Wayland or X11. But when Qt creates a window, you need to set things up so that the window Qt creates is of the same type of your Ogre build.
Ogre can run both, but you have to choose when compiling. Qt can use both, but you have to choose it somehow. I believe you must use the environment variable QT_QPA_PLATFORM.
https://doc.qt.io/qt-6/qpa.html
For SDL, the environment variable is "SDL_VIDEO_DRIVER" for sdl3 and "SDL_VIDEODRIVER" FOR sdl2.