Batchmake install: Difference between revisions
Line 20: | Line 20: | ||
You can get it from http://www.fltk.org: | You can get it from http://www.fltk.org: | ||
-Download the stable release version. | -Download the stable release version (mine was fltk-1.1.10). | ||
-Go to the directory where it is downloaded. | -Go to the directory where it is downloaded. | ||
-Build and compile FLTK: create a new directory ( | -Build and compile FLTK: create a new directory (fltk-1.1.10-bin for example) and then do: | ||
cd | cd fltk-1.1.10-bin | ||
ccmake ../ | ccmake ../fltk-1.1.10 | ||
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' |
Revision as of 15:17, 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 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. When it's done, you will have to re-build BatchMake and 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.