<div>Hi Pingkun,</div>
<div>Thanks for your reply. I found what's wrong. I still didn't include the *.dll files in the lib properly. After doing that, everything is just fine. <br>Cheers,</div>
<div>Ming<br> </div>
<div><span class="gmail_quote">On 2/2/06, <b class="gmail_sendername">Pingkun Yan</b> <<a href="mailto:pingkun.yan@gmail.com">pingkun.yan@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Have you tried to give your project and EXE file different names?<br><br>HTH,<br>Pingkun<br><br>
On 2/2/06, Ming Chao <<a href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I encountered a problem when running my program. The message says: "This<br>> application has failed to start because
vtkCommon.dll was not found.<br>> Re-installing the application may fix this problem." I checked this .dll<br>> file does existed in the directory:<br>> C:\ITK\InsightToolkit-Binary\bin\Debug. Also, from this
<br>> mailing list I saw other ppl had a similar problem. The answer to this<br>> question was to put the directory in the %PATH% and include it the libaries.<br>> I did both and I checked with a HelloWorld test code and It ran fine. But
<br>> when I tried to run a real program, this kept happening. My platform is:<br>> WinXP + CMake2.2 + ITK2.2.0 + VC6.0. The following is my CMakeLists.txt:<br>> ==================================================================
<br>><br>><br>> # This project is designed to be built outside the Insight source tree.<br>><br>> PROJECT(MyProject)<br>><br>> # Find ITK.<br>><br>> FIND_PACKAGE(ITK)<br>><br>> IF(ITK_FOUND)
<br>><br>> INCLUDE(${ITK_USE_FILE})<br>><br>> ELSE(ITK_FOUND)<br>><br>> MESSAGE(FATAL_ERROR<br>><br>> "Cannot build without ITK. Please set ITK_DIR.")<br>><br>> ENDIF(ITK_FOUND)<br>
><br>> LINK_LIBRARIES (<br>><br>> ITKBasicFilters<br>><br>> ITKCommon<br>><br>> ITKIO<br>><br>> ITKAlgorithms<br>><br>> ITKFEM<br>><br>> ITKStatistics<br>><br>> )<br>><br>
> ADD_EXECUTABLE(MyProject MyCode.cxx )<br>><br>> TARGET_LINK_LIBRARIES(MyProject ITKCommon)<br>><br>> ========================================================<br>><br>> Does anybody have an idea what I am doing wrong?
<br>><br>> Thanks,<br>><br>> Ming<br>> _______________________________________________<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br>><br></blockquote></div><br>