Closed Galileo-dev closed 1 year ago
Sorry but I use Windows for playing games only. I could not help you with compiling Rust applications for Windows at this time. May be in future I will have some time to explore your issue.
Thanks for the build.rs. It worked for me. I had to run:
D:\projects\vcpkg>.\vcpkg.exe install --triplet=x64-windows-static-md libheif
And then, with your build.rs in my project, it works.
I have Visual Studio 2019 Community installed with whatever the current Windows SDK and MSVC versions are.
I've used Vcpkg to install libheif and linked it using vcpkg-rs but I cannot get it to work. I've tried linking manually but wasn't very successful the only thing that has worked so far is running this in docker and installing Debian package.
cargo.toml
build.rs
main.rs
results in