Ogre 14 wayland createWindow

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
jordiperezarti
Kobold
Posts: 35
Joined: Sun Sep 01, 2024 7:50 pm

Ogre 14 wayland createWindow

Post by jordiperezarti »

I have Ogre14 running after compile the skeleton and link the libs,
i have built with cmake checking the wayland flag.
Now when ogre runs it crashes on createWindow.

log:


*** Starting EGL Subsystem ***


[SDL] Creating X11 window
RenderSystem::_createRenderWindow "OgreTutorialApp", 800x600 windowed miscParams: FSAA=0 displayFrequency=N/A externalWindowHandle=29360130 gamma=No sdlwin=103843315040176 vsync=Yes vsyncInterval=1
EGL_VENDOR = Mesa Project
EGL_VERSION = 1.5

Error occurred during execution: RuntimeAssertionException: miscParams->find("parentWindowHandle") == end && miscParams->find("externalWindowHandle") == end failed. Recompile with OGRE_USE_WAYLAND=OFF in create at /ogre-14.3.0/RenderSystems/GLSupport/src/EGL/Wayland/OgreWaylandEGLWindow.cpp (line 198)

the source code in the setup is: (Using ObreBites)
ApplicationContext::setup();
addInputListener(this);
Root* root = getRoot();
SceneManager* scnMgr = root->createSceneManager();

could be something new on just incorporated wayland support? could something go ahead creating the window with wayland?

User avatar
jordiperezarti
Kobold
Posts: 35
Joined: Sun Sep 01, 2024 7:50 pm

Re: Ogre 14 wayland createWindow

Post by jordiperezarti »

I was missing the note in the ogre-next release news:
export SDL_VIDEODRIVER=wayland

log now:


*** Starting EGL Subsystem ***


[SDL] Creating Wayland window
RenderSystem::_createRenderWindow "OgreTutorialApp", 800x600 windowed miscParams: FSAA=0 displayFrequency=N/A externalWlDisplay=94853444533360 externalWlSurface=94853445761936 gamma=No sdlwin=94853444902336 vsync=Yes vsyncInterval=1
EGL_VENDOR = Mesa Project

just runs.

andrecaldas
Halfling
Posts: 54
Joined: Mon May 06, 2024 1:06 am
x 3

Re: Ogre 14 wayland createWindow

Post by andrecaldas »

jordiperezarti wrote: Sun Oct 13, 2024 7:44 pm

I was missing the note in the ogre-next release news:
export SDL_VIDEODRIVER=wayland

I hope we change this in the future.

Ideally, IMO, it should be possible to compile Ogre with both: X11 and Wayland. Then, Ogre should be able to use X11 or Wayland according to the passed window type. If SDL creates a wayland window, it should use wayland. If SDL creates an x11 window, Ogre should use x11.

Also, I had already told you about SDL_VIDEODRIVER here:
viewtopic.php?p=556536#p556536