Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue static-linking on msys2? #343

Open
MagicalDrizzle opened this issue Apr 27, 2022 · 3 comments
Open

issue static-linking on msys2? #343

MagicalDrizzle opened this issue Apr 27, 2022 · 3 comments

Comments

@MagicalDrizzle
Copy link

It seems I'm having trouble making a static build, the compile step is all good but the linking step fails...(the classic undefined reference)
building from latest git

D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text+0x5f93): undefined reference to `glslang::TProgram::~TProgram()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text+0x5f9e): undefined reference to `glslang::TShader::~TShader()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x555): undefined reference to `glslang::TShader::~TShader()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x591): undefined reference to `glslang::TProgram::~TProgram()'
D:/msys2/mingw32/bin/../lib/gcc/i686-w64-mingw32/11.2.0/../../../../i686-w64-mingw32/bin/ld.exe: D:/msys2/mingw32/lib/libshaderc_combined.a(compiler.cc.obj):(.text.unlikely+0x59c): undefined reference to `glslang::TShader::~TShader()'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

(a bazillion similar lines before that but that'd be way too long for this post)

@MagicalDrizzle
Copy link
Author

and compiling a non-static builds work just fine too so it's probably not an issue with the code itself...?

@StarWitch
Copy link
Member

StarWitch commented May 1, 2022

Unfortunately we don't directly support building on Windows, as most of our development crew are Linux and Mac-based.

One of the ways I've been working towards is to build Windows binaries and installers with a Docker container running a slightly modified version of the mstorsjo/llvm-mingw project's Docker image.

You can see process we use here, and the Dockerfile here.

You can also try building using Windows Subsystems for Linux by using an Ubuntu install and using the llvm-mingw toolchain linked above. You can reference the build options linked in the process I linked as well.

If you figure out what this issue is, we'll gladly review any Pull Requests you put up for it, though.

@taehjoon
Copy link

taehjoon commented May 6, 2022

GLSL(OpenGL Shading Language) error can be occured by 'path', So check your OpenGL library is on your system path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants