[Insight-users] Link ITKCommon in Linux -- a beginner's question
mehrwald at ira.uka.de
mehrwald at ira.uka.de
Tue Mar 6 18:57:53 EST 2007
Dear Lu,
the problem is not ITKCommon but your Hello World example. Your linker
tries to find it in your ITK directory.
I do not realy know if it is a must have or a nice to have to use
cmake. I do so and on my Linux it works for me.
I only had to set the path to ITK and let cmake find it with "export
ITK_DIR="/path/to/ITK". Examples and a good starting point you can
find on http://www.cmake.org.
Hope this helps, regards
Markus
Zitat von Lu Xu <xu.lu at gene.com>:
> Hi, Fellow ITK Users,
>
>
>
> I am a first time user of ITK. I followed the instruction (ITK Software
> Guide, page 16) on compiling "Hello World" and received the following error
> message after the make command:
>
>
>
> ****************************************************************************
> *************************************************
>
> Linking CXX executable
> /ve/Pharm/lxu/lxu.usr.local/ITK_Toolkit/Examples/Installation/Insight-binary
> /HelloWorld
>
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
> /ld: cannot open output file
> /ve/Pharm/lxu/lxu.usr.local/ITK_Toolkit/Examples/Installation/Insight-binary
> /HelloWorld: No such file or directory
>
> collect2: ld returned 1 exit status
>
> make[2]: ***
> [/ve/Pharm/lxu/lxu.usr.local/ITK_Toolkit/Examples/Installation/Insight-binar
> y/HelloWorld] Error 1
>
> make[1]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
>
> make: *** [all] Error 2
>
>
>
>
>
> Could it be a SET PATH issue? If so, could someone kindly provide
> instruction on how to set the path to the ITKCommon library in Linux?
>
>
>
> Thanks!
>
>
>
> Lu
>
>
>
>
>
>
More information about the Insight-users
mailing list