1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00
hashcat/docs/BUILD.md
magnum 115d2b6a5a Drop dependencies on non-distributable ADL/NVML headers. The needed glue
is copied into our respective local headers. Should close #120.
2016-01-27 18:48:54 +01:00

1.9 KiB

oclHashcat build documentation

Revision:

  • 1.2

Authors:

Dependencies

To compile oclHashcat the following third party libraries are required:

The next thing to do is download all the third party libraries listed above and put these files into the deps/tmp directory.

The following files are needed inside the deps/tmp directory:

R352-developer.zip  (only needed when cross-compiling for Windows)

Building oclHashcat

First get a copy of the oclHashcat repository

$ git clone https://github.com/hashcat/oclHashcat.git

Install the dependencies (root permission needed)

$ cd oclHashcat
$ ./tools/deps.sh

Run "make"

$ make

to install it run "make install"

$ make install

Useful tricks:

  • build native linux/osx binaries
$ make
  • build all binaries (see Note1 and Note2):
$ make binaries

Note1: to install all binaries ("make binaries") you need to first clone the OpenCL-Headers within the main folder:

$ git clone https://github.com/KhronosGroup/OpenCL-Headers deps/OpenCL-Headers/CL

the tools/deps.sh script does not clone this repo automatically since for native compilation it is not needed.

Note2: if you get an error like the following one for "make binaries"

/usr/bin/ld: cannot find -lOpenCL

the main reason is probably that the 32-bit version of libOpenCL.so was not found.

A possible solution is to just symbolic link it (if the 32-bit version of libOpenCL.so.1 exists), for example:

sudo ln -s /usr/lib/i386-linux-gnu/libOpenCL.so.1 /usr/lib/i386-linux-gnu/libOpenCL.so

= Enjoy your fresh oclHashcat binaries ;)