<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Wolfgang,</div>
<div> </div>
<div>as far as I can see itkMattesMutualInformationImageToImageMetric.hxx is included in itkMattesMutualInformationImageToImageMetric.h, not .cxx You should include .h in your source file not .hxx, maybe the examples referenced in the documentation <a href="https://itk.org/Doxygen/html/classitk_1_1MattesMutualInformationImageToImageMetric.html#a871ef33754a0a0d373a3e76ff78c7189">[1]</a> can help you.</div>
<div> </div>
<div>Regards,</div>
<div class="signature">Christina</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 27. März 2017 um 07:18 Uhr<br/>
<b>Von:</b> "Wolfgang Aichinger" <aichinger_wolfgang@web.de><br/>
<b>An:</b> insight-users@itk.org<br/>
<b>Betreff:</b> [ITK-users] Problems integrating itk in own project</div>
<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Hi all,</div>
<div> </div>
<div>I'm new to itk and to be honest also to using external libraries, so excuse me if my question is dumb . I have problems with using ITK 3.20 in a project on Windows using VS2010. I built ITK using cmake (no examples, no tests, with shared libs). With this configuration I was able to compile successfully and to install.</div>
<div>For my project I also have a cmakeLists.txt (below) and was able to include all headers. Anyways, I get an error:</div>
<div> </div>
<div>Error 1 error C1083: Cannot open include file: 'itkMattesMutualInformationImageToImageMetric.cxx': No such file or directory D:\extern\ITK\include\InsightToolkit\itkMattesMutualInformationImageToImageMetric.h 516<br/>
</div>
<div>This file is in the original sources but not copied during installation. Should this be the case? What flag in cmake would enforce this?</div>
<div>This include is surrounded by an #infdef ITK_MANUAL_INSTANTIATION, which is obviously not defined. Could the error be here?</div>
<div>In the project the path where all itk libraries are installed is set correctly to "Additional Library Directories" :</div>
<div> </div>
<div>D:/extern/ITK/lib/InsightToolkit</div>
<div>D:/extern/ITK/lib/InsightToolkit/$(Configuration)</div>
<div> </div>
<div>I'm probably missing a step that solves it all but I don't have an idea right now.</div>
<div> </div>
<div>Thanks for any help!</div>
<div> </div>
<div>Best,</div>
<div>Wolfgang</div>
<div> </div>
<div>#CMakeLists.txt</div>
<div>
<div>PROJECT (RigidRegistration)<br/>
SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "D:/extern/ITK/lib/InsightToolkit")<br/>
find_package(ITK)<br/>
IF(ITK_USE_FILE)<br/>
INCLUDE(${ITK_USE_FILE})<br/>
MESSAGE( STATUS "ITK_USE_FILE: " ${ITK_USE_FILE})<br/>
ENDIF(ITK_USE_FILE)</div>
<div> </div>
<div>SET(RigidRegistration<br/>
rigid_registration_of_multimodal_MR_knee_data.cxx<br/>
)</div>
<div>ADD_EXECUTABLE(RigidRegistration ${RigidRegistration})<br/>
<br/>
TARGET_LINK_LIBRARIES(RigidRegistration<br/>
${ITK_LIBRARIES}<br/>
)</div>
<div> </div>
</div>
</div>
</div>
_____________________________________ Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a> Kitware offers ITK Training Courses, for more information visit: <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a> Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a> Follow this link to subscribe/unsubscribe: <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a></div>
</div>
</div>
</div></div></body></html>