[vtkusers] Problem compiling VTK on Windows XP using VS 9 2008
John Drescher
drescherjm at gmail.com
Thu Jan 21 23:26:50 EST 2010
On Thu, Jan 21, 2010 at 11:16 PM, Caleb Johnston <cjj37 at cornell.edu> wrote:
> I am trying to compile VTK 5.4 using CMake 2.8 (with GUI) but I have a
> problem if I select VTK_USE_GUISUPPORT and VTK_USE_QVTK. I am trying to
> compile with support for QT 4.6. It can never find my Qt installation but
> when I supply the path to qmake.exe (using windows-style back-slashes) I get
> an error with the following output:
>
> CMake Error at C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:771 (MESSAGE):
>
> It appears you're trying to use Visual Studio with Qt built by mingw
>
> Call Stack (most recent call first):
>
> GUISupport/Qt/CMakeLists.txt:14 (INCLUDE)
>
> However, I cannot successfully build using MingW (or anything else) and I'm
> not sure how to resolve the issue. Any suggestions would be greatly
> appreciated..
>
You need to either download the Qt 4.6 visual studio build 2008
(assuming that is the compiler you are using) or rebuild Qt from
source using visual studio. You can not mix and match compliers on
windows and your qt version was compiled using mingw.
John
More information about the vtkusers
mailing list