Open zoumi opened 5 years ago
If I add these to build.rs, it will compile.But I get an error when I run the program: Can not locate index 344 in COMCTL32.dll
println!("cargo:rustc-link-lib={}", "user32");
println!("cargo:rustc-link-lib={}", "kernel32");
println!("cargo:rustc-link-lib={}", "gdi32");
println!("cargo:rustc-link-lib={}", "comctl32");
println!("cargo:rustc-link-lib={}", "uxtheme");
println!("cargo:rustc-link-lib={}", "msimg32");
println!("cargo:rustc-link-lib={}", "comdlg32");
println!("cargo:rustc-link-lib={}", "d2d1");
println!("cargo:rustc-link-lib={}", "dwrite");
println!("cargo:rustc-link-lib={}", "ole32");
println!("cargo:rustc-link-lib={}", "oleaut32");
println!("cargo:rustc-link-lib={}", "oleacc");
println!("cargo:rustc-link-lib={}", "uuid");
println!("cargo:rustc-link-lib={}", "windowscodecs");
If I config libui using cmake, then use VS2015 to compile the generated solution file. I can compile it successfully. But cargo build doesn't. I have manually switch off BUILD_SHARED_LIBS in CMakeLists.txt I have found something about it: https://github.com/andlabs/libui/issues/412
my os: windows7 64 bit active toolchain: nightly-i686-pc-windows-msvc (default) rustc 1.31.0-nightly (78ff609d7 2018-10-19)