[Insight-users] Building error ITK for Borland
Dean Inglis
dean.inglis@on.aibn.com
Wed, 18 Dec 2002 09:40:15 -0500
Hi Michael,
you may remember me from our discussions over vtk. I am
successfully building ITK out of source on two different
Win2k machines with BCB 5 using CMake 1.4.6 (soon CMake 1.4.7),
MinSizeRel build. A bash .sh script automates the process: see
below (fltk is not necessary for ITK libs, only for some
Applications. I have build it with CMake as well).
regards,
Dean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Inglis, Ph.D.
- Centre for Appendicular -
- Magnetic Resonance Imaging Studies -
25 Charlton Avenue East, Unit 610
Hamilton, ONT, L8N 1Y2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash
cd c://Builder/Insight
c:/progra~1/GNU/"WinCvs 1.2"/cvs -d
:pserver:anonymous@www.itk.org:/insight/cvsroot update -dAP
cd c://Builder
rm -rf itkRelease
mkdir itkRelease
cd c://Builder/itkRelease
cat >> CmakeCache.txt <<EOF
BCB_BIN_PATH:PATH=C:/Progra~1/Borland/CBuilder5/Bin
BUILDNAME:STRING=Win2k-bcc32-MinSizeRel
BUILD_APPLICATIONS:BOOL=ON
BUILD_EXAMPLES:BOOL=ON
BUILD_FEM_CODE:BOOL=ON
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=MinSizeRel
FLTK_BASE_LIBRARY:FILEPATH=c:/Builder/fltk_1.1.0/lib/fltk.lib
FLTK_FLUID_EXE:FILEPATH=c:/Builder/fltk_1.1.0/bin/fluid.exe
FLTK_FORMS_LIBRARY:FILEPATH=c:/Builder/fltk_1.1.0/lib/fltkforms.lib
FLTK_GL_LIBRARY:FILEPATH=c:/Builder/fltk_1.1.0/lib/fltkgl.lib
FLTK_IMAGES_LIBRARY:FILEPATH=c:/Builder/fltk_1.1.0/lib/fltkimages.lib
FLTK_INCLUDE_PATH:PATH=c:/Builder/fltk_1.1.0
USE_FLTK:BOOL=ON
USE_FLTK_VERSION_1.0.11:BOOL=OFF
USE_FLTK_VERSION_1.1:BOOL=ON
USE_VTK:BOOL=ON
USE_GLUT:BOOL=ON
GLUT_INCLUDE_DIR:PATH=c:/Progra~1/Borland/CBuilder5/Include/Gl/glut.h
GLUT_glut_LIBRARY:FILEPATH=c:/Progra~1/Borland/CBuilder5/Lib/glut32.lib
EXECUTABLE_OUTPUT_PATH:PATH=c:/Builder/itkRelease/bin
ITK_USE_SYSTEM_STDLIB:BOOL=ON
LIBRARY_OUTPUT_PATH:PATH=c:/Builder/itkRelease/bin
SEGMENTER_WRAP_TCL:BOOL=ON
SITE:STRING=Proximal.CRU
VTK_BINARY_PATH:PATH=c:/Builder/vtkRelease
VTKITK_WRAP_TCL:BOOL=ON
VTK_WRAP_HINTS:FILEPATH=c:/Builder/VTK/Wrapping/hints
EOF
c://Builder/CMake_1.4.6/Source/cmake c:/Builder/Insight -G"Borland
Makefiles"
make -i
tclsh c:/Builder/Dart/Source/Client/DashboardManager.tcl
DartConfiguration.tcl Experimental Start Build Test >&
c://Builder/itk_dart_test.log
tclsh c:/Builder/Dart/Source/Client/DashboardManager.tcl
DartConfiguration.tcl Experimental Submit >& c://Builder/itk_dart_submit.log
cd c:/Builder/itkRelease/Applications/SegmentationEditor
make -i
exit