<div id="RTEContent">hi Luis<br> thx for your smart answer,<br> i downloaded the <span style="font-weight: bold;">myITKgui</span> package from <span style="font-weight: bold;">http://www.vialab.org/methods_course/myITKgui.zip<br> </span>when i posted my question, i thinked that this package was knowed by a lot of people using ITK and VTK packages, that's why i didn't attach line of code including the line where the error was produced.<br> this a fragment of the file <span style="font-weight: bold;">/usr/local/myITKgui/migAppBase.cxx </span>from line 240 :<br> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="Generator" content="Kate, the KDE Advanced Text Editor"> <pre> <span style="color: rgb(128, 0, 0);">void</span> migAppBase ::CreateInputImageVTKPipeline(vtkFlRenderWindowInteractor *flrwi) { <span style="color: rgb(128, 128, 128);"><i>// Abort if the user is being stupid</i></span> <b>if</b>(m_InputImage==<span style="color: rgb(0, 0,
255);">0</span>) <span style="color: rgb(128, 128, 128);"><i>//<-------line 246</i></span> <b>return</b>; <span style="color: rgb(128, 128, 128);"><i>// create a rendering window and renderer</i></span> m_InputRenderer = vtkRenderer::New(); m_InputRenderer->SetBackground(<span style="color: rgb(128, 0, 128);">0.0</span>, <span style="color: rgb(128, 0, 128);">0.0</span>, <span style="color: rgb(128, 0, 128);">0.0</span>); m_InputRenderWindow = vtkRenderWindow::New(); m_InputRenderWindow->AddRenderer(m_InputRenderer);<br> ......<br><br>i find a message posted in the pipermail on this link<br><span style="font-weight: bold;">http://public.kitware.com/pipermail/insight-users/2005-December/015838.html<br></span>did we find the same error ?<span style="font-weight: bold;"><br></span>i'm ready for more details,<br>thx again<br>Amir.<br></pre><br style="font-weight: bold;"> <span style="font-weight: bold;"></span><br><b><i>Luis Ibanez
<luis.ibanez@kitware.com></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>Hi Amir,<br><br><br> We may need to look at the code that<br> you wrote in your file migAppBase.cxx :-)<br><br><br><br> It seems that you are attempting to assign<br> an integer to a SmartPointer of an image.<br><br> That will not work....<br><br><br> Please be nice to us and share with mailing<br> list the lines of code around line 246 of<br> your file<br><br><br> /usr/local/myITKgui/migAppBase.cxx<br><br><br> We already tried hard to use our divinatory<br> mental powers to guess what you may have<br> written in that file...<br><br> but given that today is almost Full Moon, and<br> that we are too far from the Winter Solstice,<br> our divinatory skills didn't work quite well.<br><br><br><br> Best regards,<br><br><br>
Luis<br><br><br><br><br>---------------------<br>charfeddine amir wrote:<br>> Hi All<br>> <br>> while trying to build myITKgui package, i get error during build process :<br>> <br>> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:90: error: <br>> invalid static_cast from type 'int' to type 'const itk::Image<unsigned =""><br>> char, 3u>*'<br>> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h: In member <br>> function 'bool itk::SmartPointer<TObjectType>::operator==(R) const [with <br>> R = int, TObjectType = itk::Image<unsigned char="" 3u="">]':<br>> /usr/local/myITKgui/migAppBase.cxx:246: instantiated from here<br>> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:86: error: <br>> invalid static_cast from type 'int' to type 'const itk::Image<unsigned =""><br>> char, 3u>*'<br>> make[1]: *** [migAppBase.o] Erreur 1<br>> make: *** [default_target] Erreur 2<br>> [root@timhpux myITKguibin]#<br>>
<br>> thankx for any help or comment.<br>> Amir.<br>> <br><br></unsigned></unsigned></TObjectType></unsigned></blockquote><br></div><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.