[ITK] cmake/ITK-4.6/DCMTK/big tiff
Matt McCormick
matt.mccormick at kitware.com
Sun Sep 14 22:51:04 EDT 2014
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
>
More information about the Community
mailing list