[Insight-users] Build issues for VTK with respect to FLTK

Kent Williams kent@mail.psychiatry.uiowa.edu
Wed, 15 Jan 2003 16:52:31 -0600


I'm a novice ITK developer trying to figure things out, and something cam=
e up=20
today that's been mystifying me -- Cmake is not adding the fltk libraries=
 to=20
the projects in Applications that need them -- starting with=20
DistanceMapFilter.

I've verified that fltk-1.1.2 is built correctly, and that the CMakeCache=
=2Etxt
has the correct path for the fltk libraries and include files.  But the=20
Makefile doesn't contain -lfltk -lfltk_forms -lfltk_gl etc.  I find this=20
rather baffling -- I can add the '-l' clauses to the link line in the=20
CMake-generated Makefile and it builds without a hitch, but there's somet=
hing=20
screwy about generating the library dependencies.

My understanding is that=20
This is on RedHat Linux -- kernel 2..18-10smp, completely unmodified CVS=20
checkout of the current (not release 1.0) Insight source tree.

I can provide files to anyone who wants to paw through them.  CMake seems=
 to=20
act as though those examples don't need fltk fiiles, and I don't understa=
nd=20
yet how to tell CMake it does, or what I'd have to edit and change to mak=
e it=20
work.

I assume that the nightly dashboard build try to build everything, and an=
y=20
problems like this should be caught.  That would mean I'm having a cockpi=
t=20
error here, but I don't know what it is.

Thanks in advance for your help!