Thanks! But itt's not sufficient. The cmake command gives<br>-- Enabled ITKOpenJPEG, needed by [ITKGDCM].<br><br>I have been a bit further. If I manually remove the dependency to OpenJPEG:<br>diff --git a/Modules/ThirdParty/GDCM/itk-module.cmake b/Modules/ThirdParty/GDCM/itk-module.cmake<br>
index 37ba9e4..c67a8f5 100644<br>--- a/Modules/ThirdParty/GDCM/itk-module.cmake<br>+++ b/Modules/ThirdParty/GDCM/itk-module.cmake<br>@@ -6,7 +6,6 @@ itk_module(ITKGDCM<br> DEPENDS<br> ITKZLIB<br> ITKExpat<br>- ITKOpenJPEG<br>
DESCRIPTION<br> "${DOCUMENTATION}"<br> )<br><br>I get :<br>/Users/srit/src/itk4/itk/Modules/Nonunit/Review/src/itkJPEG2000ImageIO.cxx:29:12: fatal error: <br> 'openjpeg.h' file not found<br>
#include "openjpeg.h"<br>
<br>I'm quite surprised because ITK_USE_REVIEW and BUILD_TESTING are OFF... Anyway, I ignored this (make -k) and I can then compile my software. So the dependency to ITKOpenJPEG would have to be removed in ITKGDCM if ITK_USE_SYSTEM_GDCM is ON.<br>
<br>As a side note, I tried to remove the compilation of the module ITKGDCM but that failed. I also tried to use gdcm as described in its documentation but that failed too:<br><br>diff --git a/Modules/ThirdParty/GDCM/itk-module-init.cmake b/Modules/ThirdParty/GDCM/itk-module-init.cmak<br>
index c04c639..90cea5f 100644<br>--- a/Modules/ThirdParty/GDCM/itk-module-init.cmake<br>+++ b/Modules/ThirdParty/GDCM/itk-module-init.cmake<br>@@ -3,4 +3,5 @@ mark_as_advanced(ITK_USE_SYSTEM_GDCM)<br> <br> if(ITK_USE_SYSTEM_GDCM)<br>
find_package(GDCM REQUIRED)<br>+ include(${GDCM_USE_FILE})<br> endif()<br><br>I hope this (mess) helps...<br>Simon<br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 5:43 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Simon,<br>
<br>
Please try this patch:<br>
<br>
<a href="http://review.source.kitware.com/#/c/12078/" target="_blank">http://review.source.kitware.com/#/c/12078/</a><br>
<br>
Thanks,<br>
Matt<br>
<div><div><br>
On Wed, Jul 24, 2013 at 9:40 AM, Simon Rit<br>
<<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> wrote:<br>
> Hi,<br>
> I am trying to build an application (<a href="http://vv.creatis.insa-lyon.fr/" target="_blank">http://vv.creatis.insa-lyon.fr/</a>) under<br>
> MacOS with system GDCM (latest version from git) and ITK 4.4. At link time,<br>
> I get duplicate symbol errors because itk and gdcm both compile openjpeg,<br>
> for example :<br>
><br>
> duplicate symbol _j2k_convert_progression_order in:<br>
> /Users/srit/src/itk4/mac64/lib/libitkopenjpeg-4.4.a(j2k.c.o)<br>
> /Users/srit/src/gdcm/mac64-install/lib/libgdcmopenjpeg.a(j2k.c.o)<br>
><br>
> I did not find an easy way to fix this. Is there a way to disable the build<br>
> of OpenJPEG when gdcm system is used? No matter what I do, the module<br>
> ITKOpenJPEG is built when ITK IOs are built...<br>
> Thanks in advance,<br>
> Simon<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br>