smhasher
smhasher copied to clipboard
How do you compile this thing
The readme doesn't explain how to use/compile this. I am not intimately familiar with compilers, only know how to compile with MinGW using one or more files like so:
g++ -o out file1 file2 file3
I even tried grabbing CMake but I have no clue how to use it:
Help a brother out. I need to test hashes.
You might find one of the forks, such as
https://github.com/rurban/smhasher https://github.com/demerphq/smhasher
is easier to build. I would guess that the rurban fork is more likely to build on win32 than the others. (Hrm, thinking about it more, mine is likely harder to build as it has more dependencies, but it also has many new features and enhancements.)
CMake is a "make" replacement. It will build the project for you. On linux you do something like "cmake ." as a first step, then once that is done you use "make" as normal (but it will run cmake stuff). Config for cmake is in CMakeLists.txt