[Insight-users] .dll files not found during execution
Luis Ibanez
luis.ibanez at kitware.com
Tue, 10 Feb 2004 22:29:02 -0500
Hi Sy,
Under WindowsXP you set the path in the
following way:
1) Right-Click on "My Computer"
( a popup menu should appear, the
last option on it is "properties")
2) Select "properties"
a new popup window appears with some
tabs on it.
3) Select the tab "Advanced"
4) At the bottom you will se a button
called "Environment Variables".
Click on it.
5) A new popup window appears with a small
browser with the list of environment
variables. In this browser you will see
the list of environment variables.
6) Select "path" and click on the "edit"
button. A small new popup appears with
two text fields: "Variable name" and
"Variable value".
7) Go to the "Variable value" field, move
to the end, add a ";" separator and
type the directory where you have the
VTK Dlls.
8) Add another ";" separator and type the
directory where you have the ITK Dlls.
9) Click on "OK" to close the "Edit User
Variable" window.
10) Click on "Ok" on the "Environment Variables"
window.
11) Click on "Ok" on the "System Properties
window".
12) Take a deep breath, cross you fingers
and try to execute your program again.
Regards,
Luis
-----------------------
s y wrote:
> Hi all,
>
>
>
> i'd built VTK 4.2 and ITK on windows XP with shared library turned on,
> when i tried some examples (cmake and vc++ built successful) and run the
> application built, there's a runtime error saying : " this application
> failed to start because vtkRendering.dll was not found..."
>
> i can easily solved this by copying all the vtk related .dll files into
> the folder where the example (i.e. medical.exe) application file resides
> but this is somehow troublesome and not elegant at all.
>
> i went to the Environment variables option under System, and tried to
> add the path for the .dll, but the error is still there. This is what
> i did: click on "new" and keyed in VTKDLLPATH for "Variable name", then
> keyed in C:/VTK_42/build/bin/Debug ( where the .dll files reside) for
> "Variable value", then clicked ok but this did not help
>
> Can anyone kindly offer some advices on this
> Thank you
>
> regards
> sy
>