<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">cmake-3.0.2<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF564314"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Community [community-bounces@itk.org] on behalf of Gib Bogle [g.bogle@auckland.ac.nz]<br>
<b>Sent:</b> Monday, 15 September 2014 10:28 a.m.<br>
<b>To:</b> community@itk.org<br>
<b>Subject:</b> [ITK] cmake/ITK-4.6/DCMTK/big tiff<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi all,<br>
<br>
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.<br>
<br>
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:<br>
<br>
D:\testing\ITK\bigtiff>cmake -G "Visual Studio 10 Win64"<br>
-- Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\<br>
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):<br>
Could NOT find DCMTK (missing: DCMTK_ofstd_INCLUDE_DIR DCMTK_ofstd_LIBRARY<br>
DCMTK_dcmdata_INCLUDE_DIR DCMTK_dcmdata_LIBRARY DCMTK_dcmimgle_INCLUDE_DIR DCMTK_dcmimgle_LIBRARY)<br>
Call Stack (most recent call first):<br>
C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindPackageHandleStandard<br>
Args.cmake:343 (_FPHSA_FAILURE_MESSAGE)<br>
C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindDCMTK.cmake:141 (find_package_handle_standard_args)<br>
C:/Program Files/ITK/lib/cmake/ITK-4.6/Modules/ITKDCMTK.cmake:8 (find_package)<br>
<br>
C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:48 (include)<br>
C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:25 (itk_module_load)<br>
<br>
C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKModuleAPI.cmake:67 (_itk_module_config_recurse)<br>
C:/Program Files/ITK/lib/cmake/ITK-4.6/ITKConfig.cmake:86 (itk_module_config)<br>
C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindITK.cmake:52 (find_package)<br>
CMakeLists.txt:4 (FIND_PACKAGE)<br>
<br>
Here is the stock-standard CMakeLists.txt:<br>
<br>
cmake_minimum_required(VERSION 2.8)<br>
<br>
PROJECT(makebig)<br>
FIND_PACKAGE(ITK)<br>
IF(ITK_FOUND)<br>
INCLUDE(${ITK_USE_FILE})<br>
ELSE(ITK_FOUND)<br>
MESSAGE(FATAL_ERROR<br>
"ITK not found. Please set ITK_DIR.")<br>
ENDIF(ITK_FOUND)<br>
MESSAGE (${ITK_USE_FILE})<br>
MESSAGE (${ITK_INCLUDE_DIRS})<br>
set(PROJECTNAME "makebig")<br>
ADD_EXECUTABLE(${PROJECTNAME} makebig.cpp)<br>
TARGET_LINK_LIBRARIES(${PROJECTNAME} ${ITK_LIBRARIES} )<br>
<br>
I set the environment variable DCMTK_DIR to C:\Program Files\DCMTK, but the error messages did not change.<br>
</div>
</div>
</div>
</div>
</body>
</html>