link Ogre 14, glslang glslangtospv

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

link Ogre 14, glslang glslangtospv

Post 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?

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

Re: link Ogre 14, glslang glslangtospv

Post 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