Detailed compilation¶
To perform the compilation, execute the following commands from the root of HATCHet’s repository.
$ mkdir build
$ cd build/
$ ccmake ..
$ make
HATCHet’s compilation process attempts to automatically find the following Gurobi’s paths.
Name | Path | Comment |
---|---|---|
GUROBI_CPP_LIB |
/to/gurobiXXX/YY/lib/libgurobi_c++.a |
|
GUROBI_INCLUDE_DIR |
/to/gurobiXXX/YY/include |
|
GUROBI_LIB |
/to/gurobiXXX/YY/lib/libgurobiZZ.QQ |
|
If the automatic compilation fails to find the Gurobi’s paths, these need to be specified directly. First, user needs to verify the existence of each of these 3 files. Next, user can specify these paths directly by either using
$ ccmake ..
or by directly running CMake
with proper flags as following
$ cmake .. \
-DGUROBI_CPP_LIB=/to/gurobiXXX/YY/lib/libgurobi_c++.a \
-DGUROBI_INCLUDE_DIR=/to/gurobiXXX/YY/include \
-DGUROBI_LIB=/to/gurobiXXX/YY/lib/libgurobiZZ.QQ