hammer_faq > How to compile the source code
Showing 1-2 of 2 posts
Display:
Results per page:
Nov 11, 2011  04:11 AM | Guorong Wu
How to compile the source code
The following softwares are required to compile the HAMMER:
1. Insight Toolkit version 2.4 or higher;
2. Cmake version 2.2 or higher.
Nov 11, 2011  03:11 PM | Guorong Wu
RE: How to compile the source code
Steps to compile the code in Windows:
1. Run Cmake.
2. Set up the path to the folder of hammer source code and target folder to put the project.
3. Choose the compiler in your machine to build the code.
4. Set up the correct path for ITK in CMake.
5. Click "configure" button to configure.
6. Click "generate" button to generate the project.
7. Go to the target folder and open the project.
8. Compile the code in the release mode.

Steps to compile the code in Linux:
1. Go to the folder of HAMMER source code.
2. Use the following command to run CMake to generate the makefile: "ccmake ./".
3. Set the correct path for ITK in CMake.
4. Type 'c' to configure and then 'g' to generate the makefile.
5. Compile the code with following command: "make all".