Batchmake install

From KitwarePublic
Jump to: navigation, search

Install BatchMake

ON LINUX

Open a terminal then run this command line:

git clone git://batchmake.org/BatchMake.git

To build and compile BatchMake, create a new directory (BatchMakeBin for instance) and then do:

cd BatchMakeBin
ccmake ../BatchMake

You will have to specify CMAKE_BUILD_TYPE (Debug or Release) and the ITK_DIR which is the directory that contains ITKConfig.cmake file. Press 'c' to configure then 'g' to generate and then run the 'make' command to compile Batchmake.


FLTK: Use Batchmake as a GUI (Graphical User Interface)

To use Batchmake as a GUI, you must have FLTK. You can get it from http://www.fltk.org:

-Download the stable release version (mine was fltk-1.1.10).

-Go to the directory where it is downloaded.

-Build and compile FLTK: create a new directory (fltk-1.1.10-bin for example) and then do:

cd fltk-1.1.10-bin
ccmake ../fltk-1.1.10

Here put CMAKE_BUILD_TYPE to 'Release' and BUILD_SHARED_LIBS to 'ON'

Press 'c' to configure then 'g' to generate and then run the 'make' command to compile FLTK.


If you encounter an error while compiling FLTK, you might have to change a line of fltk-1.1.10/src/filename_list.cxx:

Replace: int n=scandir(d, list, 0,(int(*)(const void*,const void*))sort); with: int n=scandir(d, list, 0,(int(*)(const dirent**,const dirent**))sort);


When the compilation is done, you will have to re-build BatchMake and put USE_FLTK to 'ON'.