[Insight-users] Re: itk compilation error

Paul Berube berube@ugrad.cs.ualberta.ca
Wed, 3 Apr 2002 18:04:03 -0700 (MST)


Hi - I fixed the problem, so I'm just posting the solution in case any
future newbies encounter the same thing...

1.  Make a directory for the shared libraries.
2.  In ccmake, set the variable LIBRARY_OUTPUT_PATH to the directory you
made in (1).
3.  Now, type make, and it works :)

(btw, in case it matters - I am doing an out-of-source build, as described
in ~/Insight/Documentation/InsightStart.pdf)


On Wed, 3 Apr 2002, Paul Berube wrote:

>
>Hi.
>
>I'm brand new to itk and cmake, and I'm having trouble getting itk to
>compile (oh, and i'm running on linux).
>
>I ran ccmake in the Insight/ directory as per instructions, and then ran
>make.  It compiles quite a bit of code, it finished
>Building default_target in directory
>.../Insight/Utilities/png
>fine, but then on the next c++ call, I get the error
>
>/usr/bin/ld: cannot find -litkzlib
>collect2: ld returned 1 exit status
>make[5]: *** [libitkpng.so] Error 1
>make[4]: *** [default_target] Error 2
>make[3]: *** [default_target_png] Error 2
>make[2]: *** [default_target] Error 2
>make[1]: *** [default_target_Utilities] Error 2
>make: *** [default_target] Error 2
>
>As far as I can tell, there is indeed no file 'itkzlib*' withing the
>Insight directories.  What is wrong?  more importantly, how do I fix
>this!?
>
>Thanks for the help!
>
>
>--Paul
>
>  "Oh, there it is...
>      ...Then what the heck was that other piece of code we changed?"
>
>



  "Oh, there it is...
      ...Then what the heck was that other piece of code we changed?"