Skip to content
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

Question: Windows Compilation on x64 #2

Open
dfirence opened this issue Apr 13, 2020 · 1 comment
Open

Question: Windows Compilation on x64 #2

dfirence opened this issue Apr 13, 2020 · 1 comment
Labels

Comments

@dfirence
Copy link

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
Copy link
Owner

s3rvac commented Apr 13, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants