[ITK] cmake/ITK-4.6/DCMTK/big tiff

Matt McCormick matt.mccormick at kitware.com
Mon Sep 15 18:08:37 EDT 2014


Hi Gib,

Sorry for the insufficient detail.

- Delete everything in D:\testing\DCMTK-build
- Run

  D:\testing\DCMTK-build>cmake -G "Visual Studio 10 Win64"
D:\testing\ITK-source\Modules\ThirdParty\DCMTK\WindowsBuild

Assuming that ITK sources are in ITK-source.

- Build the resulting project, which should build DCMTK.
- In a clean ITK-build, set DCMTK_DIR to D:\testing\DCMTK-build

Please let me know if anything is unclear.

Thanks,
Matt

On Mon, Sep 15, 2014 at 5:59 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> I'm sorry, Matt, but I'm not sure what you mean by "pointing a clean build directory to this directory [1]."  I tried copying the DCMTK-build tree somewhere else, deleting CMakeCache.txt then running cmake with the CMakeLists.txt you provided (downloaded), but it wants  DCMTKGitTag.cmake:
>
> D:\testing\DCMTK-build>cmake -G "Visual Studio 10 Win64"
> -- Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\
> CMake Error at CMakeLists.txt:6 (include):
>   include could not find load file:
>     D:/testing/DCMTK-build/../DCMTKGitTag.cmake
>
> CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/ExternalProject.cmake:1467 (message):
>   error: no download info for 'DCMTK' -- please specify existing/non-empty
>   SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE, SVN_REPOSITORY,
>   GIT_REPOSITORY, HG_REPOSITORY or DOWNLOAD_COMMAND
> Call Stack (most recent call first):
>   C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/ExternalProject.cmake:1847 (_ep_add_download_command)
>   CMakeLists.txt:17 (ExternalProject_add)
>
> -- Configuring incomplete, errors occurred!
> See also "D:/testing/DCMTK-build/CMakeFiles/CMakeOutput.log".
> See also "D:/testing/DCMTK-build/CMakeFiles/CMakeError.log".
>
> Please tell me in more detail what I need to do.
>
> Thanks
> Gib
> ________________________________________
> From: Matt McCormick [matt.mccormick at kitware.com]
> Sent: Tuesday, 16 September 2014 3:36 a.m.
> To: Gib Bogle
> Cc: community at itk.org
> Subject: Re: [ITK] cmake/ITK-4.6/DCMTK/big tiff
>
> Hi Gib,
>
> Please try building DCMTK by pointing a clean build directory to this
> directory [1].  Then, start a clean build of ITK with DCMTK_DIR
> pointing to that directory. Please let us know if this works.
>
> Thanks,
> Matt
>
> [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/DCMTK/WindowsBuild/CMakeLists.txt;h=70c5ef6cfc25895ed54755818d7aa49299869fe6;hb=HEAD
>
> On Sun, Sep 14, 2014 at 11:45 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>> Slicer built OK before I added DCMTK_DIR.
>> ________________________________________
>> From: Community [community-bounces at itk.org] on behalf of Gib Bogle [g.bogle at auckland.ac.nz]
>> Sent: Monday, 15 September 2014 3:09 p.m.
>> To: Matt McCormick
>> Cc: community at itk.org
>> Subject: Re: [ITK] cmake/ITK-4.6/DCMTK/big tiff
>>
>> The same result.
>> ________________________________________
>> From: Matt McCormick [matt.mccormick at kitware.com]
>> Sent: Monday, 15 September 2014 3:05 p.m.
>> To: Gib Bogle
>> Cc: community at itk.org
>> Subject: Re: [ITK] cmake/ITK-4.6/DCMTK/big tiff
>>
>> Hi Gib,
>>
>> Thanks for the information.
>>
>> What happens if DCMTK_DIR is pointed to the DCMTK build directory in
>> the Slicer build tree?
>>
>> Thanks,
>> Matt
>>
>>
>> On Sun, Sep 14, 2014 at 10:56 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>>> Hi Matt,
>>>
>>> Yes, I installed it as part of the Slicer build.  All the directories and files seem to be there.  The version is 3.6.1_CVS.
>>>
>>> Cheers
>>> Gib
>>> ________________________________________
>>> From: Matt McCormick [matt.mccormick at kitware.com]
>>> Sent: Monday, 15 September 2014 2:51 p.m.
>>> To: Gib Bogle
>>> Cc: community at itk.org
>>> Subject: Re: [ITK] cmake/ITK-4.6/DCMTK/big tiff
>>>
>>> Hi Gib,
>>>
>>> Which version of DCMTK was built? Was it installed?
>>>
>>> Thanks,
>>> Matt
>>>
>>> On Sun, Sep 14, 2014 at 6:34 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>>>> cmake-3.0.2
>>>> ________________________________
>>>> From: Community [community-bounces at itk.org] on behalf of Gib Bogle
>>>> [g.bogle at auckland.ac.nz]
>>>> Sent: Monday, 15 September 2014 10:28 a.m.
>>>> To: community at itk.org
>>>> Subject: [ITK] cmake/ITK-4.6/DCMTK/big tiff
>>>>
>>>> Hi all,
>>>>
>>>> I have run into an issue with 4.6, triggered by a problem with Slicer
>>>> (another story - unable to load big tiffs).  I have built Slicer, which
>>>> includes ITK-4.6, on Windows 7.  In my efforts to track down the problem
>>>> Slicer has with big tiffs, I am trying to do a simple test with the ITK-4.6
>>>> installation that I now have (I have previously been using 4.0).  In
>>>> principle the failure to load a big tiff should be a problem with ITK, not
>>>> with Slicer.
>>>>
>>>> When I run cmake to set up the Visual Studio 10 project files for my simple
>>>> test program (which works with 4.0), I get errors concerning DCMTK:
>>>>
>>>> D:\testing\ITK\bigtiff>cmake -G "Visual Studio 10 Win64"
>>>> -- Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\
>>>> CMake Error at C:/Program Files
>>>> (x86)/CMake/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136
>>>> (message):
>>>>   Could NOT find DCMTK (missing: DCMTK_ofstd_INCLUDE_DIR DCMTK_ofstd_LIBRARY
>>>>   DCMTK_dcmdata_INCLUDE_DIR DCMTK_dcmdata_LIBRARY DCMTK_dcmimgle_INCLUDE_DIR
>>>> DCMTK_dcmimgle_LIBRARY)
>>>> Call Stack (most recent call first):
>>>>   C:/Program Files
>>>> (x86)/CMake/share/cmake-3.0/Modules/FindPackageHandleStandard
>>>> Args.cmake:343 (_FPHSA_FAILURE_MESSAGE)
>>>>   C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindDCMTK.cmake:141
>>>> (find_package_handle_standard_args)
>>>>   C:/Program Files/ITK/lib/cmake/ITK-4.6/Modules/ITKDCMTK.cmake:8
>>>> (find_package)
>>>>
>>>>   C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:48 (include)
>>>>   C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:25
>>>> (itk_module_load)
>>>>
>>>>   C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:67
>>>> (_itk_module_config_recurse)
>>>>   C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKConfig.cmake:86
>>>> (itk_module_config)
>>>>   C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindITK.cmake:52
>>>> (find_package)
>>>>   CMakeLists.txt:4 (FIND_PACKAGE)
>>>>
>>>> Here is the stock-standard CMakeLists.txt:
>>>>
>>>> cmake_minimum_required(VERSION 2.8)
>>>>
>>>> PROJECT(makebig)
>>>> FIND_PACKAGE(ITK)
>>>> IF(ITK_FOUND)
>>>> INCLUDE(${ITK_USE_FILE})
>>>> ELSE(ITK_FOUND)
>>>> MESSAGE(FATAL_ERROR
>>>> "ITK not found. Please set ITK_DIR.")
>>>> ENDIF(ITK_FOUND)
>>>> MESSAGE (${ITK_USE_FILE})
>>>> MESSAGE (${ITK_INCLUDE_DIRS})
>>>> set(PROJECTNAME "makebig")
>>>> ADD_EXECUTABLE(${PROJECTNAME} makebig.cpp)
>>>> TARGET_LINK_LIBRARIES(${PROJECTNAME} ${ITK_LIBRARIES} )
>>>>
>>>> I set the environment variable DCMTK_DIR to C:\Program Files\DCMTK, but the
>>>> error messages did not change.
>>>>
>>>> _______________________________________________
>>>> Community mailing list
>>>> Community at itk.org
>>>> http://public.kitware.com/mailman/listinfo/community
>>>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community



More information about the Community mailing list