-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Windows (GNU ABI) builds show up as white canvas only and require extra DLLs #987
Comments
I used the But I still need to add the extra DLLs. |
With that use std::env::var;
fn main() {
let target = var("TARGET").unwrap();
println!("cargo:rerun-if-changed=build.rs");
if target.contains("windows") {
println!("cargo:rerun-if-env-changed=WINAPI_NO_BUNDLED_LIBRARIES");
println!("cargo:rerun-if-env-changed=WINAPI_STATIC_NOBUNDLE");
println!("cargo:rustc-link-lib=static=gcc");
println!("cargo:rustc-link-lib=static=stdc++");
}
} I was able to produce an 🎉 |
I am in the same situation. All iced exemples windows builds ask for extra DLLs and unfortunately I can't statically link stdc++ and gcc :
Did you do anything special? Using cross didn't help either... @hecrj P.S. Thanks a lot for all your work on Iced! ❤️ |
No, nothing special but using the cross image for i686-pc-windows-gnu with the exact |
When building an example (at least tour and progress_bar) with help of cross for x86_64-pc-windows-gnu and i686-pc-windows-gnu the app looks in Windows 10 running in VMware Fusion like this:
When I build the examples for x86_64-apple-darwin they work on my macOS 11.5 as expected.
The produced exe need some extra DLLs (
libstdc++-6.dll
+libgcc_s_seh-1.dll
for x86_64 orlibgcc_s_dw2-1.dll
for i686).I think this comes from a dependency but which one do I have to build by my self to have a fully static build?
Thank you for any help or advice.
The text was updated successfully, but these errors were encountered: