Batchmake install: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
Line 29: Line 29:


Here put CMAKE_BUILD_TYPE to 'Release' and BUILD_SHARED_LIBS to 'ON'
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.
Press 'c' to configure then 'g' to generate and then run the 'make' command to compile FLTK.
When it's done, you will have to re-build BatchMake and put USE_FLTK to 'ON'
When it's done, you will have to re-build BatchMake but put USE_FLTK to 'ON'.
 
 
If you encounter an error while re-compiling BatchMake, you might have to change a line of FLTK/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 done, re-build FLTK then BatchMake.

Revision as of 15:13, 8 October 2010

Install BatchMake

ON LINUX

Open a terminal then run this command line:

cvs -d :pserver:anoncvs@batchmake.org:/cvsroot/BatchMake co BatchMake

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 [1]:

-Download the stable release version.

-Go to the directory where it is downloaded.

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

cd FLTKBin
ccmake ../FLTK

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. When it's done, you will have to re-build BatchMake but put USE_FLTK to 'ON'.


If you encounter an error while re-compiling BatchMake, you might have to change a line of FLTK/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 done, re-build FLTK then BatchMake.