[Insight-users] itk and KDevelop

Steven Philips philips1962 at hotmail.com
Fri Jun 25 11:46:18 EDT 2004


Hi

I am currently using itk with KDevelop (Red Hat 9) however I did use Cmake 
to get it working.
I wrote down the steps that I took to get it up and running, maybe they can 
help.

I am new to Linux so please excuse the very basic steps included in my 
instructions.
It works fine for me.

Good Luck, Steven


Setting up itk with KDevelop
/////////////////////////////////////////////////////////////////////////
Cmake

Download Cmake.tar.gz into /usr/local/

Extract Cmake.tar.gz into it's Cmake.tar form into /usr/local/
Extract Cmake.tar into /usr/local/

/////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////
Insight ToolKit

Download InsightToolKit.tar.gz into /home/CC900140/

Extract InsightToolKit.tar.gz into it's Cmake.tar form into /home/CC900140/
Extract InsightToolKit.tar into /home/CC900140/

Bring up a terminal
change to root in the normal way
	su
Make a new directory
	mkdir Insight-binary
Move into the new directory
	cd /Insight-binary
Run Cmake
	ccmake ../InsightToolKit
Switch on/off the required options in the cmake interface and configure
	c (while in the cmake interface)
Generate the code and object files
	g (while in the cmake interface)
Make the toolkit
	make
Install the toolkit
	make install

/////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////
Load Project into KDevelop

into Project->options

Configure-Settings -> use exception handling
tick

Compiler Options -> Flags and Warnings -> C++ Compiler Flags (CXXFLAGS)
-I/usr/local/include/InsightToolkit/SpatialObject
-I/usr/local/include/InsightToolkit/Numerics
-I/usr/local/include/InsightToolkit
-I/usr/local/include/InsightToolkit/Algorithms
-I/usr/local/include/InsightToolkit/BasicFilters
-I/usr/local/include/InsightToolkit/Utilities/vxl/vcl
-I/usr/local/include/InsightToolkit/Utilities/vxl/core
-I/usr/local/include/InsightToolkit/Utilities/vxl/core/vnl
-I/usr/local/include/InsightToolkit/Common

Compiler Options -> Linker Flags -> Linker Flags (LDFLAGS)
-L/usr/local/lib/InsightToolkit

Linker Options -> X11 Xext qt kdecore kdeui math
tick

Linker Options -> additional libraries
-lITKAlgorithms
-lITKBasicFilters
-lITKCommon
-lITKDICOMParser
-lITKEXPAT
-lITKFEM
-lITKIO
-litkjpeg
-lITKMetaIO
-litknetlib
-lITKNumerics
-litkpng
-lITKStatistics
-litksys
-litktiff
-litkvcl
-litkvnl_algo
-litkvnl_inst
-litkvnl
-litkzlib

out of Project->options

Build -> DistClean
Build -> AutoConf and automake
Build -> DistClean/Rebuild All

change to root in the normal way
	su
copy ld.so.conf to home directory
	cp /etc/ld.so.conf /home/cc900140/
change permisions of ld.so.conf
	chmod 777 /home/cc900140/ld.so.conf
add the new path to the file Insight in this case
	/usr/local/lib/InsightToolkit
save the file
copy it back to its original location
	cp /home/cc900140/ld.so.conf /etc/
overwrite the existing file when prompted
located ldconfig and move to its home directory
	cd /sbin/
run ldconfig
	./ldconfig

Build -> DistClean
Build -> AutoConf and automake
Build -> DistClean/Rebuild All
/////////////////////////////////////////////////////////////////////////

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo



More information about the Insight-users mailing list