<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I'm just trying to make a Cmake project compile and debug. Nothing else. I've spent hours trying different things.<br><br></div><div>It's just a first try to start coding, but it doesn't work. I explain everything in detail, that's why this post is so long, but I just want to remark I'm just trying to setup ITK. Nothing else.<br><br></div><div><br></div>I've tried with the .pro configuration. It compiles, until I use some itk object, then it returns:<br></div><div>unresolved external symbol...: itksys-4.8.lib (it's included in the .pro file)<br><br></div><div><br></div>So I'm trying with Cmake. Everbody recommends it, but I didn't see a straight tutorial to set up a simple project with QtCreator and Qt5. So I'm trying it myself.<br><br></div><div>I'm using Windows 7, compiling and installing with Visual Studio 2013.<br></div>I've compiled and installed successfully VTK first and then ITK (checking ITVVTKGlue).<br><br></div><div>I have built them in:<br></div><div>C:\VTK-6.2.0-build<br>C:\ITK-4.8.0-build</div><div><br></div>I have them installed in:<br><br></div>C:\VTK-6.2.0-installed<br></div>C:\ITK-4.8.0-installed<br></div><div>(Each one has the subdirectories \bin, \include, \lib and \share)<br></div><div><br></div>So, I created a QT5 Widgets project from QtCreator, then I added a CMakeLists.txt containing:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="color:#808000">CMAKE_MINIMUM_REQUIRED</span>(<span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">VERSION</span><span style="color:#c0c0c0"> </span>2.8.11)
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">PROJECT</span><span style="color:#c0c0c0"> </span>(UtilityDICOM)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(<span style="color:#c09050">CMAKE_INCLUDE_CURRENT_DIR</span><span style="color:#c0c0c0"> </span>ON)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(<span style="color:#c09050">CMAKE_AUTOMOC</span><span style="color:#c0c0c0"> </span>ON)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">FIND_PACKAGE</span>(Qt5Widgets<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#</span><span style="color:#c0c0c0"> </span><span style="color:#008000">VTK</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#SET(VTK_DIR</span><span style="color:#c0c0c0"> </span><span style="color:#008000">"C:\\VTK-6.2.0-build\\")</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#</span><span style="color:#c0c0c0"> </span><span style="color:#008000">ITK</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#SET(ITK_DIR</span><span style="color:#c0c0c0"> </span><span style="color:#008000">"C:\\ITK-4.8.0-build\\")</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">FIND_PACKAGE</span>(ITK<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">INCLUDE</span>(<span style="color:#000080">${ITK_USE_FILE}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">IF</span><span style="color:#c0c0c0"> </span>(ItkVtkGlue_LOADED)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0">    </span><span style="color:#808000">FIND_PACKAGE</span>(VTK<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0">    </span><span style="color:#808000">INCLUDE</span>(<span style="color:#000080">${VTK_USE_FILE}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">ENDIF</span>()</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">ADD_EXECUTABLE</span>(UtilityDICOM<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">WIN32</span><span style="color:#c0c0c0"> </span>main.cpp<span style="color:#c0c0c0"> </span>mainwindow.cpp)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">TARGET_LINK_LIBRARIES</span>(UtilityDICOM<span style="color:#c0c0c0"> </span>Qt5::Widgets<span style="color:#c0c0c0"> </span><span style="color:#000080">${Glue}</span><span style="color:#c0c0c0"> </span><span style="color:#000080">${VTK_LIBRARIES}</span><span style="color:#c0c0c0"> </span><span style="color:#000080">${ITK_LIBRARIES}</span>)</pre></blockquote>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px">It returns the error:<br><br></pre><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">CMake Error at CMakeLists.txt:15 (FIND_PACKAGE):</span></blockquote><blockquote>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  By not providing "FindITK.cmake" in CMAKE_MODULE_PATH this project has</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  asked CMake to find a package configuration file provided by "ITK", but</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  CMake did not find one.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  Could not find a package configuration file provided by "ITK" with any of</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  the following names:</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">    ITKConfig.cmake</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">    itk-config.cmake</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  to a directory containing one of the above files.  If "ITK" provides a</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000">  separate development package or SDK, be sure it has been installed.</span></p></blockquote><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000"></span></p><p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;font-weight:600;color:#aa0000"><br></span></p><pre style="margin:0px;text-indent:0px"><br></pre>Ok, so I uncommented the lines you see. Why do I added the build folders and not the installed folders? Because I got the same error with the installed dirs.<br><br></div><div>After doing that, it compiled, but I got another error when launching:<br><br><span style="font-family:'Courier';font-size:10pt;font-weight:600;color:#0000aa">C:\Users\M\Documents\REPOSITORIO\trunk\UtilidadDICOM\mainwindow.cpp:2: error: C1083: Cannot open include file: 'ui_mainwindow.h': No such file or directory</span><br><br></div>Searching for an answer, I found something here:<br><a href="https://chan20kaur.wordpress.com/tag/qt-and-cmake/">https://chan20kaur.wordpress.com/tag/qt-and-cmake/</a><br><br></div>I changed my CMakeLists.txt to:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="color:#808000">CMAKE_MINIMUM_REQUIRED</span>(<span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">VERSION</span><span style="color:#c0c0c0"> </span>2.8.11)
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">PROJECT</span><span style="color:#c0c0c0"> </span>(UtilityDICOM)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">FIND_PACKAGE</span>(Qt5Widgets<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(<span style="color:#c09050">CMAKE_INCLUDE_CURRENT_DIR</span><span style="color:#c0c0c0"> </span>ON)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(<span style="color:#c09050">CMAKE_AUTOMOC</span><span style="color:#c0c0c0"> </span>ON)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#000000">QT5_WRAP_UI</span>(Cmake_form_hdr<span style="color:#c0c0c0"> </span>mainwindow.ui)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">add_library</span>(mainwindow<span style="color:#c0c0c0"> </span>mainwindow.cpp<span style="color:#c0c0c0"> </span><span style="color:#000080">${Cmake_form_hdr}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#000000">qt5_use_modules</span>(mainwindow<span style="color:#c0c0c0"> </span>Widgets)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#</span><span style="color:#c0c0c0"> </span><span style="color:#008000">VTK</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(VTK_DIR<span style="color:#c0c0c0"> </span><span style="color:#008000">"C:\\VTK-6.2.0-build\\"</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#008000">#</span><span style="color:#c0c0c0"> </span><span style="color:#008000">ITK</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">SET</span>(ITK_DIR<span style="color:#c0c0c0"> </span><span style="color:#008000">"C:\\ITK-4.8.0-build\\"</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">FIND_PACKAGE</span>(ITK<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">INCLUDE</span>(<span style="color:#000080">${ITK_USE_FILE}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">IF</span><span style="color:#c0c0c0"> </span>(ItkVtkGlue_LOADED)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0">    </span><span style="color:#808000">FIND_PACKAGE</span>(VTK<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">REQUIRED</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0">    </span><span style="color:#808000">INCLUDE</span>(<span style="color:#000080">${VTK_USE_FILE}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">ENDIF</span>()</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">ADD_EXECUTABLE</span>(UtilityDICOM<span style="color:#c0c0c0"> </span><span style="font-family:'Courier';font-size:10pt;color:#000000;background-color:#fdf6e3">WIN32</span><span style="color:#c0c0c0"> </span>main.cpp)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#808000">TARGET_LINK_LIBRARIES</span>(UtilityDICOM<span style="color:#c0c0c0"> </span>mainwindow<span style="color:#c0c0c0"> </span><span style="color:#000080">${Glue}</span><span style="color:#c0c0c0"> </span><span style="color:#000080">${VTK_LIBRARIES}</span><span style="color:#c0c0c0"> </span><span style="color:#000080">${ITK_LIBRARIES}</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#000000">QT5_USE_MODULES</span>(UtilityDICOM<span style="color:#c0c0c0"> </span>Core<span style="color:#c0c0c0"> </span>Gui<span style="color:#c0c0c0"> </span>Widgets)</pre></blockquote>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px">With this, I compile. And I can launch the executable.<br></pre><br><pre style="margin:0px;text-indent:0px">So I added a ITK line. In main.cpp, I added in main method:<br><br></pre><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="color:#800080">itk</span><span style="color:#000000">::</span><span style="color:#800080">Object</span><span style="color:#000000">::</span><span style="color:#000000">GlobalWarningDisplayOff</span><span style="color:#000000">();</span><br></blockquote><pre style="margin:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px">including <br><br></pre><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="color:#000080">#include</span><span style="color:#c0c0c0"> </span><span style="color:#008000"><itkObject.h></span><br><span style="color:#008000"></span></blockquote><pre style="margin:0px;text-indent:0px"><span style="color:#008000"><br></span></pre><pre style="margin:0px;text-indent:0px">Just that. By the way, the editor autocompletes this include. And I got:<br><br></pre><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:'Courier';font-size:10pt;font-weight:600;color:#0000aa">Starting C:\Users\M\Documents\REPOSITORIO\trunk\UtilidadDICOM-build\UtilityDICOM.exe...</span></blockquote><blockquote>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:10pt;font-weight:600;color:#aa0000">The program has unexpectedly finished.</span></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br><span style="font-family:'Courier';font-size:10pt;font-weight:600;color:#aa0000"></span></p></blockquote><pre style="margin:0px;text-indent:0px">Ok, what now? I just added ONE LINE.<br></pre><pre style="margin:0px;text-indent:0px">I don't have any clues.<br></pre><pre style="margin:0px;text-indent:0px">I tought maybe it could be that method.<br></pre><pre style="margin:0px;text-indent:0px">So I changed my modification to:<br><span style="font-family:'Courier';font-size:10pt;font-weight:600;color:#aa0000"></span></pre><br></div><div><div><p style="margin:0px;text-indent:0px"><br><span style="color:#008000">typedef</span><span style="color:#c0c0c0"> </span><span style="color:#008000">itk::Image<</span><span style="color:#c0c0c0"> </span><span style="color:#008000">double,</span><span style="color:#c0c0c0"> </span><span style="color:#008000">2</span><span style="color:#c0c0c0"> </span><span style="color:#008000">></span><span style="color:#c0c0c0">         </span><span style="color:#008000">ImageType;</span>
</p><pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"></span><span style="color:#008000">typedef</span><span style="color:#c0c0c0"> </span><span style="color:#008000">itk::ImageFileReader<ImageType></span><span style="color:#c0c0c0"> </span><span style="color:#008000">ReaderType;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"></span><span style="color:#008000">ReaderType::Pointer</span><span style="color:#c0c0c0"> </span><span style="color:#008000">reader</span><span style="color:#c0c0c0"> </span><span style="color:#008000">=</span><span style="color:#c0c0c0"> </span><span style="color:#008000">ReaderType::New();<br><br></span></pre><pre style="margin:0px;text-indent:0px">with<br><span style="color:#000080">#include</span><span style="color:#c0c0c0"> </span><span style="color:#008000"><itkImageFileReader.h><br><br><br></span>Same result.<br>I don't know what to do, really. I read 
blogs, wiki entries,... I spent days trying to use this, what am I doing
 wrong? Am I missing something?<br><br></pre><pre style="margin:0px;text-indent:0px">I will keep trying, but it's so frustating not being able to even start coding.<br></pre></div></div></div>