Ogre without X11

Problems building or running the engine, queries about how to use features etc.
FelixZhu
Gnoblar
Posts: 2
Joined: Thu Oct 24, 2024 5:28 am

Ogre without X11

Post by FelixZhu »

Ogre Version: :?: 14.3
Operating System: :?: Debian 10
Render System: :?: Black Sesame A1000L (arm64)

Code: Select all

Ogre.log (optional)
root@debian:~/ogre/build# /root/cmake-3.18.4/build/install/usr/local/bin/cmake -DOGRE_USE_WAYLAND=ON ..
-- Configuring OGRE 14.3.1
-- DEPENDENCIES_DIR: /root/ogre/build/Dependencies
-- Looking for FreeImage...
-- Checking for module 'freeimage'
--   No package 'freeimage' found
-- Found FreeImage: /usr/lib/aarch64-linux-gnu/libfreeimage.so
-- Checking for modules 'wayland-client;wayland-egl;egl'
--   No package 'egl' found
CMake Error at /root/cmake-3.18.4/build/install/usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
Call Stack (most recent call first):
  /root/cmake-3.18.4/build/install/usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /root/cmake-3.18.4/build/install/usr/local/share/cmake-3.18/Modules/FindX11.cmake:414 (find_package_handle_standard_args)
  CMake/Dependencies.cmake:229 (find_package)
  CMakeLists.txt:279 (include)


-- Configuring incomplete, errors occurred!
See also "/root/ogre/build/CMakeFiles/CMakeOutput.log".

I try to compile Ogre with wayland rather than X11, and I see the build guide:
OGRE_USE_WAYLAND will use Wayland window system instead of X11 on Linux.
But when I cmake ogre with -DOGRE_USE_WAYLAND=ON, I got Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB), I don't know why.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

Re: Ogre without X11

Post by paroj »

egl was not found, so it falls back to glx (x11)

FelixZhu
Gnoblar
Posts: 2
Joined: Thu Oct 24, 2024 5:28 am

Re: Ogre without X11

Post by FelixZhu »

paroj wrote: Thu Oct 24, 2024 11:52 am

egl was not found, so it falls back to glx (x11)

Thanks so much,I fix it by apt install libegl1-mesa-dev
And now when I run ./SampleBrowser, I got

Code: Select all

root@a1000:/userdata/ogre_wayland_install/bin# ./SampleBrowser
Creating resource group General
Creating resource group OgreInternal
Creating resource group OgreAutodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
ArchiveFactory for type 'FileSystem' registered
ArchiveFactory for type 'Zip' registered
ArchiveFactory for type 'EmbeddedZip' registered
DDS codec registering
ETC codec registering
ASTC codec registering
Registering ResourceManager for type GpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
MovableObjectFactory for type 'StaticGeometry' registered.
MovableObjectFactory for type 'Rectangle2D' registered.
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so.14.3
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/local/lib/OGRE/RenderSystem_GL3Plus.so.14.3
Installing plugin: GL 3+ RenderSystem
OpenGL 3+ Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/local/lib/OGRE/RenderSystem_GLES2.so.14.3
Installing plugin: OpenGL ES 2.0 RenderSystem
OpenGL ES 2.x Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_ParticleFX.so.14.3
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Particle Affector Type 'TextureAnimator' registered
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager.so.14.3
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Codec_STBI.so.14.3
stb_image - v2.30 - public domain image loader
Supported formats: jpeg,jpg,png,bmp,psd,tga,gif,pic,ppm,pgm,hdr
Loading library /usr/local/lib/OGRE/Plugin_PCZSceneManager.so.14.3
Installing plugin: Portal Connected Zone Scene Manager
PCZone Factory Type 'ZoneType_Default' registered
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_OctreeZone.so.14.3
Installing plugin: Octree Zone Factory
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager.so.14.3
Installing plugin: Octree Scene Manager
Plugin successfully installed
Loading library /usr/local/lib/OGRE/Plugin_DotScene.so.14.3
Installing plugin: DotScene Loader
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 14.3.1 (Tsathoggua)
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
CPU Identifier & Features
-------------------------
 *   CPU ID:
 *          VFP: no
 *         NEON: no
-------------------------
******************************
*** Starting EGL Subsystem ***
******************************
Registering ResourceManager for type Texture
RenderSystem::_createRenderWindow "OGRE Sample Browser", 800x600 windowed  miscParams: FSAA=5361 displayFrequency=N/A gamma=No vsync=Yes vsyncInterval=1
EGL_VENDOR = ARM
EGL_VERSION = 1.4 Linux-r7p0-00rel1
EGL_EXTENSIONS = EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_platform_gbm EGL_KHR_platform_wayland  EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_EXT_image_dma_buf_import EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_swap_buffers_with_damage EGL_EXT_swap_buffers_with_damage EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness EGL_ANDROID_blob_cache EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_KHR_partial_update EGL_KHR_create_context_no_error
An exception has occurred: RuntimeAssertionException: mWlSurface failed. externalWlSurface required in initNativeCreatedWindow at /root/ogre/RenderSystems/GLSupport/src/EGL/Wayland/OgreWaylandEGLWindow.cpp (line 49)
paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

Re: Ogre without X11

Post by paroj »

you need SDL2 to run the SampleBrowser on Wayland

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

Re: Ogre without X11

Post by jordiperezarti »

externalWlSurface required in initNativeCreatedWindow

I have the same problem when using Ogre without OgreBites and using wayland.
SDL2 is not asked in the link and build process.