[vtkusers] installing 5.6.1 with qt 4.7.0 on windows7

John Drescher drescherjm at gmail.com
Thu Oct 7 08:54:52 EDT 2010


> I give a lesson to students on VTK.
> Because compiling VTK on a slow machine is very time consuming, I want to
> give them a pre-compiled version.
> On my laptop I have both, Visual Studio AND mingw, installed. That may be
> the problem.
> I have a proper Qt-4.7.0-Installation and can compile and run normal
> Qt-Projects.
> I want to compile VTK with mingw.
> I put the mingw-bin-directory first in my PATH and compiled a new downloaded
> VTK.
> By the way, on my Linux-machine VTK5.6.1 and Qt-4.7.0 works fine together.
> But if I run a Qt-VTK-Application on Windows, I get "Invalid parameter
> passed to C runtime function." twice.
> I tried to find the crash in the QVTKWidget-Source, but the constructor for
> QVTKWidget is not executed.
> The program crashes before the first statement.
> During compilation I get warnings, that "the visibility attribute is not
> used and ignored".
> And the linker gives warnings that "auto import is used without
> --enable-auto-import".
> I trid to give --enable-auto-import as linker-flag, but it was ignored by
> cmake.
>
> And qmake and the designer-include-dir are correct.
>
> Any ideas?
> What do you guess?
>
Did you build Qt with mingw?

John



More information about the vtkusers mailing list