[Elastix] compile error with ITK4.2

Stefan Klein s.klein at erasmusmc.nl
Tue Jul 24 14:46:17 CEST 2012


Hi Peter,
Could you try to delete the entire binary directory and do a fresh 
cmake+build?
Kind regards,
Stefan


On 24/07/2012 14:40, Ping Xiang wrote:
> Hi Stefan,
>
> My elastix is version 4.5.
> Upon your suggestion, I got the SVN development version. The cmake 
> works this time, but  I got link error when build them with visual 
> studio 2010. (error LINK1104: cannot open file "KNNlib.lib')
>
> Any step missed here?
> Thanks,
>
> Peter
>
> ------------------------------------------------------------------------
> *From:* Stefan Klein <s.klein at erasmusmc.nl>
> *To:* Ping Xiang <pexter98 at yahoo.com>
> *Cc:* "elastix at bigr.nl" <elastix at bigr.nl>
> *Sent:* Friday, July 20, 2012 9:48 AM
> *Subject:* Re: [Elastix] compile error with ITK4.2
>
> Hi Peter,
> Which version of elastix do you use? 4.5 or the svn development version?
> The 4.5 version builds with ITK v3.20.1
> The svn version with itk 4.2
>
> But in both cases you need to turn on ITK_USE_REVIEW when building 
> ITK. For elastix 4.5/itk3.20 there are also some other options that 
> you need to turn on. You can find these options in cmake, when you 
> turn on the "advanced" variables.
>
> Kind regards,
> Stefan
>
>
>
>
>
> On 19/07/2012 21:52, Ping Xiang wrote:
>> Hi all,
>>
>> When I use CMake (V2.8.8) to configure the Elastix, I got these 
>> "ITK_USE_" error messages.
>> I fixed one by set the "ITK_USE_REVIEW" on. But I can not fixed these 
>> two because there is no such place to set them on when configure ITK.
>> My ITK is version 4.2.
>>
>> Do I have to use the ITK version 3.2?
>>
>> After comment out these two in CMakeLists.txt, the CMake works fine, 
>> but failed to build with visual studio 2010. Any idea/suggestion?
>>
>> Thanks,
>>
>> Peter
>>
>>
>> CMake Error at CMakeLists.txt:85 (message):
>> ITK_USE_REVIEW_STATISTICS has not been set to ON when compiling ITK. This
>> option is mandatory for elastix to build.
>> Please recompile your ITK installation.
>>
>> CMake Error at CMakeLists.txt:94 (message):
>> ITK_USE_ORIENTED_IMAGE_DIRECTION has not been set to ON when 
>> compiling ITK.
>> This option is mandatory for elastix to build.
>> Please recompile your ITK installation.
>>
>>
>>
>> _______________________________________________
>> Elastix mailing list
>> Elastix at bigr.nl  <mailto:Elastix at bigr.nl>
>> http://lists.bigr.nl/cgi-bin/mailman/listinfo/elastix
>
> -- 
> Stefan Klein
> +31 10 7043049
> http://www.bigr.nl/people/StefanKlein
>
>

-- 
Stefan Klein
+31 10 7043049
http://www.bigr.nl/people/StefanKlein

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bigr.nl/pipermail/elastix/attachments/20120724/7e4e4e38/attachment.html>


More information about the Elastix mailing list