[vtkusers] Re: Qt with VTK error-MSVCP80.dll not found

Ashish Singh mrasingh at gmail.com
Fri Oct 13 00:07:59 EDT 2006


Thanks for replying guys. I am using the full blown professional version of
visual studio 2005(and not the express version) and all the dlls that it
says that it cannot find are actually there in the /program
files(x86)/visual studio/... folders. My current OS is windows XP Pro X64.
Also I am not using a precompiled version of either vtk or qt. I downloaded
the source code for both of them and installed them. I have installed Qt as
per the instructions here: http://qtnode.net/wiki/Qt4_with_Visual_Studio.
It works fine for me with visual studio. Also the Vtk by itself works fine
for me.The problem comes only when I am trying to use QVTK. I dont know
whats going wrong here.

Thanks,
Ashish

On 10/12/06, Goodwin Lawlor <goodwin.lawlor at ucd.ie> wrote:
>
> Ashish Singh wrote:
> > Hi,
> >
> > I want to use Qt to develop a GUI for my VTK application, so I recently
> > installed Qt 4.1.4 on my workstation and reinstalled VTK with the vtkgui
> > support and qvtk 'ON'. When I tried examples(ImageViewer and Events)
> > from the directory ..VTK/Examples/GUI/Qt, I get the following pop up
> error.
> >
> > 'This application has failed to start because MSVCP80.dll was not found.
> > Re-installing the application may fix this problem. '
> >
> > The examples compile and build fine, but when I run them( when I run the
> > executable), I get the above error.
> > Can anyone please tell me what is going wrong here? I am working with Qt
> > 4.1.4 and VTK 5.0.2 on windows XP platform.
> >
> > Thanks,
> > Ashish
>
> Hi Ashish,
>
> Handling the new crt dlls can be very tricky... I circumvent them by
> statically compiling them into my projects.
>
> In cmake, everywhere you see "/MD" or "/MDd" change it to "/MT" or "/MTd".
>
> Within Visual C++, go to the project properties page, click
> "Configuration Properties", then "C/C++", then "Code Generation". In the
> table on the right pane, change the "Runtime Library" to "Multi-threaded
> (/MT)" or "Multi-threaded (/MTd)" if your building a debug version.
>
> You wont have to worry if other windows machines have the new
> MSVCP80.dll etc. files when distributing your app.
>
> hth
>
> Goodwin
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061012/94c66636/attachment.htm>


More information about the vtkusers mailing list