<div>Hi I&#39;m trying to use WrapITK  </div><div>to build an external project according to the directions posted. </div><div><br></div><a href="http://www.vtk.org/Wiki/ITK/Release_4/Wrapping/BuildProcess#External_Project" target="_blank">http://www.vtk.org/Wiki/ITK/Release_4/Wrapping/BuildProcess#External_Project</a><br>

<div><br></div><div>I&#39;m using ITK4.3.1 with gcc4.4. I seem to have some some sort of path error with igenerator.py ? </div><div>All needed mdx files appear to be in my installed $WrapITK_DIR</div><div><br></div><div>
$WrapITK_DIR/Configuration/Typedefs</div>
<div><br></div><div>But the build is looking in the current external project directory</div><div><br></div><div>$CWD/Typedefs</div><div><br></div><div>?</div><div><br></div><div>I&#39;m not sure how to make the external build use the installed directory, $WrapITK_DIR/Configuration/Typedefs ? </div>

<div><br></div><div><div>/opt/apps/EPD/epd-7.3-1-rh5-x86_64/bin/python /opt/apps/ITK/InsightToolkit-4.3.1-gcc-4.4.7-dbg/lib/cmake/ITK-4.3/WrapITK/Configuration/Generators/SwigInterface/igenerator.py --mdx /opt/apps/ITK/InsightToolkit-4.3.1-gcc-4.4.7-dbg/lib/cmake/ITK-4.3/WrapITK/Configuration/Typedefs/ITKCommon.mdx --swig-include itk.i --mdx /work/fuentes/github/PythonWrapItkHelloWorld/Typedefs/dummy.mdx --swig-include itkDummy_ext.i -w1 -w3 -w51 -w52 -w53 -w54 -A protected -A private --typedef-input /work/fuentes/github/PythonWrapItkHelloWorld/<a href="http://itkDummySwigInterface.h.in" target="_blank">itkDummySwigInterface.h.in</a> --typedef-output /work/fuentes/github/PythonWrapItkHelloWorld/Typedefs/itkDummySwigInterface.h --include itkDummySwigInterface.h /work/fuentes/github/PythonWrapItkHelloWorld/itkDummy.xml /work/fuentes/github/PythonWrapItkHelloWorld/Typedefs/itkDummy.i</div>

<div>Traceback (most recent call last):</div><div>  File &quot;/opt/apps/ITK/InsightToolkit-4.3.1-gcc-4.4.7-dbg/lib/cmake/ITK-4.3/WrapITK/Configuration/Generators/SwigInterface/igenerator.py&quot;, line 560, in &lt;module&gt;</div>

<div>    load_mdx(f)</div><div>  File &quot;/opt/apps/ITK/InsightToolkit-4.3.1-gcc-4.4.7-dbg/lib/cmake/ITK-4.3/WrapITK/Configuration/Generators/SwigInterface/igenerator.py&quot;, line 319, in load_mdx</div><div>    load_mdx(os.path.dirname(file_name)+os.sep+l.strip())</div>

<div>  File &quot;/opt/apps/ITK/InsightToolkit-4.3.1-gcc-4.4.7-dbg/lib/cmake/ITK-4.3/WrapITK/Configuration/Generators/SwigInterface/igenerator.py&quot;, line 311, in load_mdx</div><div>    f = file( file_name )</div><div>

IOError: [Errno 2] No such file or directory: &#39;/work/fuentes/github/PythonWrapItkHelloWorld/Typedefs/ITKCommon.mdx&#39;</div></div><div><br></div><div>I have been using a hack to sync the two Typedefs directories and it will build.</div>
<div>also, cmake suggest new name of deprecated macros:</div>
<div><br></div><div><div>diff --git a/CMakeLists.txt b/CMakeLists.txt</div><div>index 5aa4001..5661181 100644</div><div>--- a/CMakeLists.txt</div><div>+++ b/CMakeLists.txt</div><div>@@ -5,8 +5,8 @@ cmake_minimum_required(VERSION 2.8)</div>

<div> find_package(ITK REQUIRED)</div><div> find_package(WrapITK REQUIRED)</div><div> </div><div>-WRAP_LIBRARY(&quot;${PROJECT_NAME}&quot;)</div><div>-  set(WRAPPER_LIBRARY_DEPENDS Base)</div><div>-  AUTO_INCLUDE_MODULES()</div>

<div>-END_WRAP_LIBRARY()</div><div>+itk_wrap_module(&quot;${PROJECT_NAME}&quot;)</div><div>+  set(WRAPPER_LIBRARY_DEPENDS ITKCommon)</div><div>+  itk_auto_load_submodules()</div><div>+itk_end_wrap_module()</div></div><div>
diff --git a/itkDummy.wrap b/itkDummy.wrap</div><div><div>index b3f73bc..7892ff5 100644</div><div>--- a/itkDummy.wrap</div><div>+++ b/itkDummy.wrap</div><div>@@ -1,6 +1,6 @@</div><div>-WRAP_CLASS(itk::Dummy POINTER)</div>
<div>-   foreach(t ${WRAP_ITK_SCALAR} ${WRAP_ITK_COLOR} ${WRAP_ITK_COMPLEX_REAL})</div><div>-     WRAP_TEMPLATE(&quot;${ITKM_${t}}&quot; &quot;${ITKT_${t}}&quot;)</div><div>+itk_wrap_class(itk::Dummy POINTER)</div><div>+   foreach(t ${WRAP_ITK_SCALAR} )</div>
<div>+     itk_wrap_template(&quot;${ITKM_${t}}&quot; &quot;${ITKT_${t}}&quot;)</div><div>    endforeach(t)</div><div>-END_WRAP_CLASS()</div><div>+itk_end_wrap_class()</div></div><div><br></div><div>
<br></div>