Batchmake install: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
 
(6 intermediate revisions by one other user not shown)
Line 2: Line 2:




== '''ON LINUX''' ==
= '''ON LINUX''' =




Open a terminal then run this command line:
Open a terminal then run this command line:
  cvs -d :pserver:anoncvs@batchmake.org:/cvsroot/BatchMake co BatchMake
  git clone git://batchmake.org/BatchMake.git


To build and compile BatchMake, create a new directory (BatchMakeBin for instance) and then do:  
To build and compile BatchMake, create a new directory (BatchMakeBin for instance) and then do:  
Line 15: Line 15:
Press 'c' to configure then 'g' to generate and then run the 'make' command to compile Batchmake.
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)'''
 
== '''FLTK: Use Batchmake as a GUI (Graphical User Interface)''' ==
 
 


To use Batchmake as a GUI, you must have FLTK.
To use Batchmake as a GUI, you must have FLTK.
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 (FLTKBin for example) and then do:
-Build and compile FLTK: create a new directory (fltk-1.1.10-bin for example) and then do:
  cd FLTKBin
  cd fltk-1.1.10-bin
  ccmake ../FLTK
  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'


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 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:
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);'''
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.
 
 
When the compilation is done, you will have to re-build BatchMake and put USE_FLTK to 'ON'.

Latest revision as of 20:53, 6 April 2011

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'.