[vtkusers] VTK-6.1.0 migration problem

Marcus D. Hanwell marcus.hanwell at kitware.com
Mon Mar 17 09:51:45 EDT 2014


OK, maybe VS 2012 improved things in this area (I haven't used it, but
am not aware of new features). Glad you got it working, normally
Windows will require the DLLs to be located in the same directory, or
in a directory listed in the PATH variable.

On Mon, Mar 17, 2014 at 8:01 AM, Antonio Reyes Porras Pérez
<antonioreyes at gmail.com> wrote:
> They are not in the same path, but with VS 2012 there is no problem, so I
> changed the VS version and it worked.
>
> Thanks anyway.
>
> El 17/03/2014 12:59, "Marcus D. Hanwell" <marcus.hanwell at kitware.com>
> escribió:
>
>> Hi,
>>
>> On Wed, Mar 12, 2014 at 6:35 AM,  <antonioreyes at gmail.com> wrote:
>> > Hi,
>> > I'm trying to migrate one Project from vtk-5.10.1 to vtk 6.1.0. My
>> > Project
>> > is dependent from both ITK and VTK. I just copy-pasted the cmakelist.txt
>> > files and everything compiled without any problems. However, when I try
>> > to
>> > run any application, I get the message saying that the system cannot
>> > find
>> > whatever dll from VTK is needed (depending on the application, it's one
>> > or
>> > another). It seems there is a linking problem, although I don't know
>> > why,
>> > since the configuration of the Project didn't change at all. I also
>> > changed
>> > my Visual Studio versión from 11 to 12 (2012 to 2013).
>> >
>> > Did anyone have the same issue? Can anyone help me in solving the
>> > problem?
>> >
>> This looks like the typical issue on Windows that the executable must
>> be in the same directory as the DLLs, or the DLLs must be in your
>> PATH. Most other platforms have the concept of an RPATH or similar
>> that can be set in the executable - Windows lacks this feature.
>>
>> Can you confirm that your executable is in the same directory as the
>> DLLs that are listed as missing, or examine your PATH to confirm the
>> correct directory containing the DLLs is present?
>>
>> Marcus


More information about the vtkusers mailing list