You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I link glslang to my dynamic linked engine that is in used in my game.
I use MingW with 10.2.0 GCC and cmake build system.
Weird thing is that I can see the preprocessor definition GLSLANG_IS_SHARED_LIBRARY set in glslang_c_interface.h correctly, but when I look in ShaderLang.h its not set. I tried to look at ninja build file and its set there.
I tried reloading cmake, deleting whole build folder, disabling PCH and nothing worked.
This is error that is shown building my engine
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/Aurora/CMakeFiles/Aurora.dir/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp.obj: in function `Aurora::GLRenderDevice::~GLRenderDevice()':
E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:177: undefined reference to `__imp__ZN7glslang15FinalizeProcessEv'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/Aurora/CMakeFiles/Aurora.dir/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp.obj: in function `Aurora::GLRenderDevice::CreateShaderProgram(Aurora::ShaderProgramDesc const&)':
E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:512: undefined reference to `__imp__ZN7glslang7TShaderC1E11EShLanguage'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:517: undefined reference to `__imp__ZN7glslang7TShader13setEntryPointEPKc'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:525: undefined reference to `__imp__ZN7glslang7TShader29setStringsWithLengthsAndNamesEPKPKcPKiS4_i'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:526: undefined reference to `__imp__ZN7glslang7TShader18setAutoMapBindingsEb'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:530: undefined reference to `__imp__ZN7glslang7TShader10preprocessEPK16TBuiltInResourcei8EProfilebb11EShMessagesPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS0_8IncluderE'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:532: undefined reference to `__imp__ZN7glslang7TShader15getInfoDebugLogEv'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:532: undefined reference to `__imp__ZN7glslang7TShader10getInfoLogEv'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/Aurora/CMakeFiles/Aurora.dir/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp.obj: in function `Aurora::GLRenderDevice::Init()':
E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:184: undefined reference to `__imp__ZN7glslang17InitializeProcessEv'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:/Sam2/Sam/Projects/EmberSky/lib/Aurora/src/Aurora/Graphics/OpenGL/GLRenderDevice.cpp:243: undefined reference to `__imp__ZN7glslang20GetGlslVersionStringEv'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
Hi, I tried to link glslang as shared library, but I'm having issue with whole
ShaderLang.h
file.This is my setup
I link glslang to my dynamic linked engine that is in used in my game.
I use MingW with
10.2.0
GCC and cmake build system.Weird thing is that I can see the preprocessor definition
GLSLANG_IS_SHARED_LIBRARY
set inglslang_c_interface.h
correctly, but when I look inShaderLang.h
its not set. I tried to look at ninja build file and its set there.I tried reloading cmake, deleting whole build folder, disabling PCH and nothing worked.
This is error that is shown building my engine
The text was updated successfully, but these errors were encountered: