Page 1 of 1

link Ogre 14, glslang glslangtospv

Posted: Sun Oct 13, 2024 1:55 pm
by jordiperezarti

I am trying to link Ogre 14, i have only one error remaining when linking:

error: /usr/local/lib/OGRE//libPlugin_GLSLangProgramManagerStatic.a(OgreGLSLang.cpp.o): in function Ogre::GLSLangProgram::prepareImpl()':
/usr/bin/ld: /usr/local/lib/OGRE//libPlugin_GLSLangProgramManagerStatic.a(OgreGLSLang.cpp.o): in function
Ogre::GLSLangProgram::prepareImpl()':
OgreGLSLang.cpp:(.text+0x1114): undefined reference to `glslang::GlslangToSpv(glslang::TIntermediate const&, std::vector<unsigned int, std::allocator<unsigned int> >&, glslang::SpvOptions*)'

Ogre::GLSLangProgram::prepareImpl() reference not found in `glslang::GlslangToSpv'

I am including these libs:
-lMachineIndependent -lGenericCodeGen -lglslang

Do you know which lib i need to add to resolve the `glslang::GlslangToSpv' reference?


Re: link Ogre 14, glslang glslangtospv

Posted: Sun Oct 13, 2024 3:23 pm
by paroj

it is recommended that you use CMake for your project.

Otherwise you need to replicate this:
https://github.com/OGRECave/ogre/blob/d ... ts.txt#L22