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'm working on a project that has spirv_cross in its dependency tree. Everything's fine on my Linux machine, but when I try to cross-compile a Windows executable, it can't be executed because libstdc++-6.dll is missing. I was able to verify this under Linux using Wine.
The problem can be reproduced easily using the example in this repository:
This results in the following error message on my machine:
002b:err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\\home\\hanno\\Projects\\vndf\\vendor\\spirv_cross\\target\\x86_64-pc-windows-gnu\\debug\\glsl.exe") not found
002b:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\hanno\\Projects\\vndf\\vendor\\spirv_cross\\target\\x86_64-pc-windows-gnu\\debug\\glsl.exe" failed, status c0000135
This matches the report from a user testing on Windows.
I tried fixing this, but was not successful. I found a Stack Overflow answer that says to link statically. I tried adding the following the build.rs, but it made no difference:
build.flag("-static-libstdc++");
No idea how to proceed, as I'm barely familiar with C++, Windows, or cross-compiling.
The text was updated successfully, but these errors were encountered:
Thanks for looking into this, @grovesNL! Indeed it looks like this is probably a duplicate of #112. I'm going to close.
And yes, this is no longer a problem for me downstream. I'm now compiling my binaries directly on Windows (using GitHub Actions), so cross-compiling is no longer required for me.
I'm working on a project that has
spirv_cross
in its dependency tree. Everything's fine on my Linux machine, but when I try to cross-compile a Windows executable, it can't be executed becauselibstdc++-6.dll
is missing. I was able to verify this under Linux using Wine.The problem can be reproduced easily using the example in this repository:
This results in the following error message on my machine:
This matches the report from a user testing on Windows.
I tried fixing this, but was not successful. I found a Stack Overflow answer that says to link statically. I tried adding the following the
build.rs
, but it made no difference:No idea how to proceed, as I'm barely familiar with C++, Windows, or cross-compiling.
The text was updated successfully, but these errors were encountered: