[Insight-users] Difficulty compiling HelloWorld.cxx example

Catherine Peloquin cepeloquin at gmail.com
Mon Mar 26 14:55:47 EST 2007


I am trying to build and execute the first example in the ITK Software Guide
using the HelloWorld.cxx code located in Insight/Examples/Installation.  I
first ran "ccmake Insight", configured ccmake with BUILD_EXAMPLE on, then
generated and exited.  I then went into Insight/Examples/Installation, where
there was a makefile generated, and ran gmake.

The following is the output:
Linking CXX executable HelloWorld
/usr/bin/ld: cannot find -lITKCommon
collect2: ld returned 1 exit status
gmake[2]: *** [HelloWorld] Error 1
gmake[1]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
gmake: *** [all] Error 2

My question is, what is -lITKCommon, and how can I properly configure ccmake
so I can compile and run this example?

Thanks,
Catherine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070326/2f1f5335/attachment.html


More information about the Insight-users mailing list