Issues building with GLSlang on OSX Topic is solved

Problems building or running the engine, queries about how to use features etc.
CeghV
Gnoblar
Posts: 3
Joined: Sat Nov 02, 2024 5:33 am

Issues building with GLSlang on OSX

Post by CeghV »

Ogre Version: 14.3.1
Operating System: MacOS Sequoia 15.0.1
Render System: :?:
I'm trying to build OGRE on my Macbook Pro 2023 and everything works except for GLSlang.
When I enable OGRE_BUILD_PLUGIN_GLSLANG in the CMake GUI, configure twice and generate, it always outputs this error:

Code: Select all

** BUILD FAILED **
The following build commands failed:
	CompileC /Users/admin/ogre/BuildShaders/build/Plugin_GLSLangProgramManager.build/RelWithDebInfo/Objects-normal/arm64/OgreGLSLang.o /Users/admin/ogre/PlugIns/GLSLang/src/OgreGLSLang.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Plugin_GLSLangProgramManager' from project 'OGRE')
(1 failure)

I have tried enabling different flags, disabling different flags, installing GLSlang directly but I haven't been able to get it to work.
If it helps, the SampleBrowser always outputs this error when I try to use samples that use what I think are complex shaders.

Code: Select all

Material: Example/RasterizationOrder Pass 0: fragment program Ogre/RasterizationOrderFp cannot be used - not supported
Source: requireMaterial

Code: Select all

Material: Examples/CelShading Pass 0: vertex program Ogre/CelShading VP cannot be used - not supported
Source: requireMaterial

My primary goal is to get the samples to run correctly on my machine.

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

Re: Issues building with GLSlang on OSX

Post by paroj »

GLSLang is mainly needed for Vulkan. It can optionally be used with GL3+ as well, but OSX does not support that.

If you check the log, you will find that:

  • Example/RasterizationOrder does not work as OSX lacks SSBO support
  • Examples/CelShading does not work because it needs GL3+
CeghV
Gnoblar
Posts: 3
Joined: Sat Nov 02, 2024 5:33 am

Re: Issues building with GLSlang on OSX

Post by CeghV »

Oops. I didn't see the configure button. But I swapped it over and it works perfectly. Thank you so much for your help!