[Insight-users] Problems at execution : ITKCommon.dll
Luis Ibanez
luis.ibanez at kitware.com
Thu, 22 Apr 2004 20:17:30 -0400
Hi Julien,
This is a simple problem
with two simple solutions:
A) Do not compile ITK for Shared Libraries.
In that case, instead of an ITKCommon.dll you
will have a static library that will be direcly
linked in your application.
OR
B) Add to your Path the directory where the
ITKCommon.dll file is. DLLs must be in the
same directory as your application or should
be in a directory included in your Windows
path.
Regards,
Luis
------------------------
Julien Mercenier wrote:
> Hi everybody,
>
> I work on a notebook, Windows XP.
> Visual C++ 6.0, ALL BUILD win32-RelWithDebInfo.
> CMake1.8.3
>
> I managed to compile VTK4.2 and it works (I've tested a program).
> I've tried to compile ITK1.6 with win32-RelWithDebInfo (with no error
> but 36 warnings).
>
> When I test a program with classes from ITK , I've got the error message
> saying
> that the application could not start because the system could not find
> ITKCommon.dll and that
> the reinstallation of this application can fix this problem.
>
> (Here is the real message in French
> "Cette application n'a pas pu démarrer car ITKCommon.dll est
> introuvable. La réinstallation de cette application peut corriger ce
> problème")
>
> I don't understant because I've tried to compile with win32-DEBUG too
> (as with my other computer
> on which all works correctly but I think it uses Cmake 1.8.7 but not
> sure of this) and I've got the same error message.
>
> The path isof the itk binary files is C:\TFE\ITKBIN.
>
>
> If someone knows something about this, thanks in advance to tell me.
>
> Regards,
>
> Julien Mercenier, Belgium
>