Never mind, I resolved the issue (SHARED_LIBRARIES was ON !!).<br><br>Sorry for the noise, Emile.<br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 2:41 PM, Emile de Weerd <span dir="ltr"><<a href="mailto:mederel%2Binsightusers@gmail.com">mederel+insightusers@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi again,<br><br>It is MinGW GCC 4.4.1 actually.<br>Please also find here: <a href="http://a.imagehost.org/0552/cmakeITK.jpg" target="_blank">http://a.imagehost.org/0552/cmakeITK.jpg</a><br>
a capture of CMake configuration for the build of ITK.<br>
<br>Regards,<br><font color="#888888">Emile.</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 2:30 PM, Emile de Weerd <span dir="ltr"><<a href="mailto:mederel%2Binsightusers@gmail.com" target="_blank">mederel+insightusers@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Insight-Users,<br><br>I am beginning with ITK, and wrote a little program:<br><br>includes of main.cpp:<br>
<span style="font-family: courier new,monospace;">#include <iostream></span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">// Project includes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include "myAppIO.h"</span><br>
<br>includes of myAppIO.h:<br><span style="font-family: courier new,monospace;">//ITK includes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include "itkImage.h"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include "itkImageFileReader.h"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#include "itkImageSeriesWriter.h"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include "itkNumericSeriesFileNames.h"</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">//Project includes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include "myAppCommon.h"</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::ImageFileReader< myAppImage3DType > myApp3DReaderType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">typedef itk::ImageSeriesWriter< myAppImage3DType, myAppImage2DType > myAppWriterType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::NumericSeriesFileNames myAppNameGeneratorType;</span><br>
<br>includes of myAppCommon.h:<br><span style="font-family: courier new,monospace;">#include "itkImage.h"</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">typedef itk::Image< unsigned char, 3 > myAppImage3DType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">typedef itk::Image< unsigned char, 2 > myAppImage2DType;</span><br><br>I am using MinGW Makefiles generator of CMake 2.6, with MinGW gcc version 4.0.<br>Here is the CMakeLists.txt:<br>
<span style="font-family: courier new,monospace;">CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PROJECT(myAppProject)</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">FIND_PACKAGE(ITK REQUIRED)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">IF(ITK_FOUND)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> INCLUDE(${ITK_USE_FILE})</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ENDIF(ITK_FOUND)</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ADD_EXECUTABLE(myApp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> main.cpp</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> myAppIO.cpp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TARGET_LINK_LIBRARIES(myApp ITKCommon ITKIO)</span><br><br>I have compiled ITK with the same compiler and cmake.<br>
When I use the standard output in the main.cpp (like std::cout <<
"Hello World !" << std::endl;) no standard output is visible in
the console cmd.exe. I do not understand why, I sought the issue on
this list and Google, with no luck.<br>
Does anyone what is happening here ?<br><br>Thanks for reading,<br><font color="#888888"><font color="#888888"><font color="#888888">Emile.<br></font></font><br>P.S.:
I also build the ITK Hello World example from the ItkSoftwareGuide and
no output is written on standard output. Where is ITK redirecting the
standard outputs ?</font>
</blockquote></div><br>
</div></div></blockquote></div><br>