[ITK] ITK Toolkit?

Tünde Szilágyi a.tunde.szilagyi at gmail.com
Wed Nov 18 13:34:45 EST 2015


Why is this information different from the one in the official (attached)
tutorial, slide 27-28? Many thanks.

On 18 November 2015 at 19:15, Dženan Zukić <dzenanz at gmail.com> wrote:

> ITK is largely a template library, which means it does not have a lot of
> DLLs. Including headers is mostly sufficient. Also, ~/ITK_bin/*lib*/Debug/
> should contain library files, *NOT* ~/ITK_bin/*bin*/Debug/.
>
> It looks like you have successfully built ITK. Now you can configure
> projects which require ITK by pointing them (setting ITK_DIR variable) to
> *~/ITK_bin/*.
>
> The simplest possible CMake configuration file for a program using ITK is
> attached. You just need to provide C++ code (tester.cpp). It could be one
> of the Wiki examples <http://itk.org/Wiki/ITK/Examples>. Then configure
> it with CMake, and build it using the same generator as ITK (VS2015 x64).
>
> HTH
>
> On Wed, Nov 18, 2015 at 12:25 PM, Tünde Szilágyi <
> a.tunde.szilagyi at gmail.com> wrote:
>
>> Hi Dženan,
>>
>> Many thanks - there was a different patch that needed to be applied. See
>> the description in the attached document. I summarize things below.
>>
>> System: Windows 10 64bit OS
>>
>> In summary:
>> - re-installed Git [master] + patch that solved the errors
>> - re-installed CMake
>> - Configured and Generated Project in CMake (NO errors)
>> - BUILD-ALL in VS 14 2015 (NO error message)
>>
>> Result:
>> - the .../ITK_bin/bin/Debug does not contain the expected folders/files:
>> ITKCommon, ITKBasicFilters, ITKAlgorithms, ITKNumerics, ITKFEM, ITKIO,
>> ITKStatistics, ITKMetalIO, itkpng, itkzlib.
>> - there is no Release folder in .../ITK_bin/bin/
>>
>> Each and every step is detailed and illustrated in the attached documents:
>>
>> 1. ITK_TOOLKIT_compilation_18112015.pdf (The end of this file contains a
>> snapshot of the folders mentioned by You above.)
>> 2. CMakeCache.txt
>> 3. VS 14 2015 output: VS_14_2015_OUTPUT_18112015.pdf
>>
>> I would welcome your insights. Many thanks in advance.
>>
>> --
>> Tunde
>>
>> On 18 November 2015 at 15:45, Dženan Zukić <dzenanz at gmail.com> wrote:
>>
>>> Since static libraries are built by default, ~/ITK_bin/bin/Debug/
>>> contains only 3 exe files on my machine (and no DLLs).
>>> However ~/ITK_bin/lib/Debug/ should contain a bunch of .lib files. If it is
>>> so, you have successfully built ITK in debug mode.
>>>
>>> Regarding that patch, you should not have to apply it, it should be
>>> included. What is the latest commit in the commit log of ITK? Mine is this:
>>>
>>> Revision: d248d5f52ad66b19346cab3e8336715a3a628980
>>> Author: Hyun Jae Kang <hyunjae.kang at kitware.com>
>>> Date: 2015-11-17 08:24:57
>>> Message:
>>> Merge topic 'warning-itkResourceProbe'
>>>
>>>
>>> 3d3b908f COMP: Fix data-conversion warning message on itkResourceProbe
>>> ----
>>> Modified: Modules/Core/Common/include/itkResourceProbe.h
>>> Modified: Modules/Core/Common/include/itkResourceProbe.hxx
>>> Modified: CMakeLists.txt
>>>
>>>
>>> On Wed, Nov 18, 2015 at 2:30 AM, Tünde Szilágyi <
>>> a.tunde.szilagyi at gmail.com> wrote:
>>>
>>>> Thank you, I have made the new selection to VS 14 2015 Win64 generator
>>>> in CMake.
>>>>
>>>> However, the patch that solved the error messages is:
>>>>
>>>> http://review.source.kitware.com/#/c/20272/
>>>>
>>>> and NOT:
>>>>
>>>> http://review.source.kitware.com/#/c/20154/1
>>>>
>>>> I have now no errors during CMake configuration/generation step. The VS
>>>> 14 2015 build is successful with 335 succeeded, 0 failed, 0 updated.
>>>>
>>>> BUT the ~/ITK_bin/bin/Debug/  does not contain the expected
>>>> directories/files. By expected I mean the ones specified in the
>>>> ITK_Tutorial:
>>>>
>>>> ITKCommon
>>>> ITKBasicFilters
>>>> ITKAlgorithms
>>>> ITKNumerics
>>>> ITKFEM
>>>> ITKIO
>>>> ITKStatistics
>>>> ITKMetalIO
>>>> itkpng
>>>> itkzlib
>>>>
>>>> I have attached the CMakeCache.txt and the selection in the
>>>> configuration stage in CMake.
>>>>
>>>> Many thanks in advance.
>>>>
>>>>
>>>> On 18 November 2015 at 04:40, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>>
>>>>> What I meant is that the choice of generator should include Win64 in
>>>>> its name, as shown in the attached screenshot. CMake executable is Win32,
>>>>> that does not matter. Also, I just built ITK in 32 bit mode without issues,
>>>>> so something else is amiss.
>>>>>
>>>>> Can you attach your CMakeCache.txt?
>>>>>
>>>>> On Tue, Nov 17, 2015 at 8:12 PM, Tünde Szilágyi <
>>>>> a.tunde.szilagyi at gmail.com> wrote:
>>>>>
>>>>>> I have tried without the patch, but I am receiving the same error
>>>>>> message. My generator is VS 14 2015 (see CMake window on the LHS).
>>>>>>
>>>>>> Now, I have cleaned everything and started with a fresh installation:
>>>>>> - Git Bash
>>>>>> - CMake
>>>>>> - ITK master
>>>>>>
>>>>>> I realized that only Win32 CMake exists on the official website:
>>>>>> https://cmake.org/download/
>>>>>>
>>>>>> Is this what you refer to in your e-mail below? What else would you
>>>>>> recommend?
>>>>>>
>>>>>> Many thanks.
>>>>>>
>>>>>>
>>>>>> On 18 November 2015 at 01:34, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>>>>
>>>>>>> That patch was merged to master, so you don't need to apply it.
>>>>>>>
>>>>>>> I used VS2015 *Win64* as the generator. You seem to be using *Win32*,
>>>>>>> that might make a difference.
>>>>>>>
>>>>>>> I used version 3.3.1, which I installed some time ago. You are using
>>>>>>> release candidate version - I doubt that is the reason.
>>>>>>>
>>>>>>> Can you try a clean clone (git clone git://itk.org/ITK.git), and
>>>>>>> then building into a clean directory?
>>>>>>>
>>>>>>> On Tue, Nov 17, 2015 at 7:19 PM, Tünde Szilágyi <
>>>>>>> a.tunde.szilagyi at gmail.com> wrote:
>>>>>>>
>>>>>>>> During CMake I am getting the attached error message. All the error
>>>>>>>> messages I receive is with reference to exe files starting with
>>>>>>>> cmTC_XXXXXX.exe. I have used the patch from Matt from September 1 to solve
>>>>>>>> this (http://review.source.kitware.com/#/c/20154/1 - Checkout),
>>>>>>>> but this still results in the same error messages as before. I have
>>>>>>>> attached one of the error messages that appear during CMake project
>>>>>>>> configuration.
>>>>>>>>
>>>>>>>> Many thanks.
>>>>>>>>
>>>>>>>> On 18 November 2015 at 00:41, Dženan Zukić <dzenanz at gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Master branch from git://itk.org/ITK.git
>>>>>>>>>
>>>>>>>>> On Tue, Nov 17, 2015 at 6:34 PM, Tünde Szilágyi <
>>>>>>>>> a.tunde.szilagyi at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Which ITK version did you use?
>>>>>>>>>>
>>>>>>>>>> On 18 November 2015 at 00:14, Dženan Zukić <dzenanz at gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> This configuration compiles fine in debug too.
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Nov 17, 2015 at 5:45 PM, Dženan Zukić <dzenanz at gmail.com
>>>>>>>>>>> > wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Tünde,
>>>>>>>>>>>>
>>>>>>>>>>>> checking out *master* branch and CMake configuration went
>>>>>>>>>>>> fine. To speed up compile time, I disabled building of examples and
>>>>>>>>>>>> testing. I also enabled ITK_LEGACY_REMOVE. I did not enable
>>>>>>>>>>>> Module_ITKVtkGlue.
>>>>>>>>>>>>
>>>>>>>>>>>> Opening the solution file in VS2015 was fairly slow - it might
>>>>>>>>>>>> have something to do with the fact I just installed it. Building in Release
>>>>>>>>>>>> x64 finished without a problem: 212 succeeded, 0 failed, 3 skipped.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Dženan
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Nov 17, 2015 at 5:14 AM, Tünde Szilágyi <
>>>>>>>>>>>> a.tunde.szilagyi at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Everyone,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I would be interested whether anyone has managed to build the
>>>>>>>>>>>>> ITK Toolkit on Windows 10 64 bit with Microsoft VS 14 2015?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Many thanks.
>>>>>>>>>>>>> Tunde
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Community mailing list
>>>>>>>>>>>>> Community at itk.org
>>>>>>>>>>>>> http://public.kitware.com/mailman/listinfo/community
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Tunde
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Tunde
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Tunde
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Tunde
>>>>
>>>
>>>
>>
>>
>> --
>> --
>> Tunde
>>
>
>


-- 
--
Tunde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20151118/c986b245/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TUTORIAL_ITK_1.pdf
Type: application/pdf
Size: 1362358 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20151118/c986b245/attachment-0001.pdf>


More information about the Community mailing list