[Insight-users] running error: vtkCommon.dll was not found

Ming Chao mingchao2005 at gmail.com
Fri Feb 3 12:50:28 EST 2006


Hi Pingkun,
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.
Cheers,
Ming

On 2/2/06, Pingkun Yan <pingkun.yan at gmail.com> wrote:
>
> Hi,
>
> Have you tried to give your project and EXE file different names?
>
> HTH,
> Pingkun
>
> On 2/2/06, Ming Chao <mingchao2005 at gmail.com> wrote:
> > Hi,
> >
> > I encountered a problem when running my program. The message says: "This
> > application has failed to start because vtkCommon.dll was not found.
> > Re-installing the application may fix this problem." I checked this .dll
> > file does existed in the directory:
> > C:\ITK\InsightToolkit-Binary\bin\Debug. Also, from this
> > mailing list I saw other ppl had a similar problem. The answer to this
> > question was to put the directory in the %PATH% and include it the
> libaries.
> > I did both and I checked with a HelloWorld test code and It ran fine.
> But
> > when I tried to run a real program, this kept happening. My platform is:
> > WinXP + CMake2.2 + ITK2.2.0 + VC6.0. The following is my CMakeLists.txt:
> > ==================================================================
> >
> >
> > # This project is designed to be built outside the Insight source tree.
> >
> > PROJECT(MyProject)
> >
> > # Find ITK.
> >
> > FIND_PACKAGE(ITK)
> >
> > IF(ITK_FOUND)
> >
> > INCLUDE(${ITK_USE_FILE})
> >
> > ELSE(ITK_FOUND)
> >
> > MESSAGE(FATAL_ERROR
> >
> > "Cannot build without ITK. Please set ITK_DIR.")
> >
> > ENDIF(ITK_FOUND)
> >
> > LINK_LIBRARIES (
> >
> > ITKBasicFilters
> >
> > ITKCommon
> >
> > ITKIO
> >
> > ITKAlgorithms
> >
> > ITKFEM
> >
> > ITKStatistics
> >
> > )
> >
> > ADD_EXECUTABLE(MyProject MyCode.cxx )
> >
> > TARGET_LINK_LIBRARIES(MyProject ITKCommon)
> >
> > ========================================================
> >
> > Does anybody have an idea what I am doing wrong?
> >
> > Thanks,
> >
> > Ming
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060203/76f51efb/attachment.htm


More information about the Insight-users mailing list