s3rvac / ssdeep-rs

A Rust wrapper for ssdeep.
GNU General Public License v3.0
8 stars 3 forks source link

Question: Windows Compilation on x64 #2

Open dfirence opened 4 years ago

dfirence commented 4 years ago

Hi,

SSDEEP site states they recommend using MinGW binaries for Windows.

Does your project support compilation on windows?

I have a tool that I want to integrate with your project, but Windows Support is required.

s3rvac commented 4 years ago

Hi! ssdeep-rs is a Rust wrapper around ssdeep, which is written in C. To compile the C code, ssdeep-rs uses the gcc crate via a build script. While the gcc create states that "while this crate is called 'gcc', it actually calls out to the most relevant compile for a platform, for example using cl on MSVC", the build script of ssdeep-rs assumes a Unix environment. I have tested the build only on Linux, but I believe that it might actually also work on Windows with MinGW or MSYS2. In its current form, the build script will definitely NOT work with Visual Studio's compiler.

So, to answer your question, the project should support compilation on Windows, but only inside Unix-like environments, such as MinGW or MSYS2. I think it could be buildable also when using Visual Studio's compiler (cl.exe), but that would require changes to the build script. Unfortunately, I do not have time or resources to make that happen. I would happily accept a PR for that though.

We can leave your question open so that other people see it when they stumble upon it.