Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
Hello,

I am quite new to VTK, I developed application for Computed Tomography
manipulation using it. I have previously installed VTK 7.0 on my computer
and was working correctly. Now I am trying to add Qt5.6.2 to develop GUI,
creator succeded, but I cannot reconfigure VTK using CMake to add Qt
Support.
I am using CMAKE 3.6.3.

I follow the documentation http://www.vtk.org/Wiki/VTK/Configure_and_Build
I only changed:
BUILD_EXAMPLES= ON
BUILD_TESTING= ON
Module_vtkGUISupportQt= ON
Module_vtkGUISupportQtOpenGL= ON
Module_vtkTestingCore= ON
Module_vtkTestingRendering= ON
VTK_Group_Qt=ON
QT_QMAKE_EXECUTABLE:PATH=C:\Qt\Qt5.6.2\5.6\msvc2015_64\bin\qmake.exe
QT_DIR= C:\Qt\Qt5.6.2\5.6\msvc2015_64\bin
CMAKE_PREFIX_PATH= C:\Qt\Qt5.6.2\5.6\msvc2015_64>

I cannot even configure it using CMake- I get error message "Error in
configuration process, project files may be invalid". How to make it
working?

I would really appreciate any help!

Thank you,
Marcin
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

VTK - Users mailing list
Is it because of the trailing > at the end of CMAKE_PREFIX_PATH?

CMAKE_PREFIX_PATH= C:\Qt\Qt5.6.2\5.6\msvc2015_64>

Or was that an email only typo?


David

> On May 13, 2017, at 8:09 AM, MarWas18 <[hidden email]> wrote:
>
> Hello,
>
> I am quite new to VTK, I developed application for Computed Tomography
> manipulation using it. I have previously installed VTK 7.0 on my computer
> and was working correctly. Now I am trying to add Qt5.6.2 to develop GUI,
> creator succeded, but I cannot reconfigure VTK using CMake to add Qt
> Support.
> I am using CMAKE 3.6.3.
>
> I follow the documentation http://www.vtk.org/Wiki/VTK/Configure_and_Build
> I only changed:
> BUILD_EXAMPLES= ON
> BUILD_TESTING= ON
> Module_vtkGUISupportQt= ON
> Module_vtkGUISupportQtOpenGL= ON
> Module_vtkTestingCore= ON
> Module_vtkTestingRendering= ON
> VTK_Group_Qt=ON
> QT_QMAKE_EXECUTABLE:PATH=C:\Qt\Qt5.6.2\5.6\msvc2015_64\bin\qmake.exe
> QT_DIR= C:\Qt\Qt5.6.2\5.6\msvc2015_64\bin
> CMAKE_PREFIX_PATH= C:\Qt\Qt5.6.2\5.6\msvc2015_64>
>
> I cannot even configure it using CMake- I get error message "Error in
> configuration process, project files may be invalid". How to make it
> working?
>
> I would really appreciate any help!
>
> Thank you,
> Marcin
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
Unfortunately it did not help. Do you think that the rest of parameters are ok?

Thank you,
Marcin
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Elvis Stansvik
2017-05-13 22:49 GMT+02:00 MarWas18 <[hidden email]>:
> Unfortunately it did not help. Do you think that the rest of parameters are
> ok?

It would help to see the full output from CMake.

Here's how I configured VTK 7.1.1 when building with MSVC 2015:

cmake ^
    -DCMAKE_INSTALL_PREFIX=C:/Users/Elvis/Dev/VTK-7.1.1-inst ^
    -DVTK_Group_Qt=ON ^
    -DVTK_QT_VERSION=5 ^
    -DQt5_DIR=C:/Users/Elvis/Dev/Qt/Qt5.6.2/5.6/msvc2015_64/lib/cmake/Qt5 ^
    -DVTK_Group_Imaging=ON ^
    -DVTK_Group_Views=ON ^
    -DVTK_Group_MPI=OFF ^
    -DVTK_Group_Tk=OFF ^
    -DVTK_Group_Web=OFF ^
    -DVTK_Group_StandAlone=OFF ^
    -DBUILD_TESTING=OFF ^
    -DVTK_USE_SYSTEM_LIBRARIES=OFF ^
    -DCMAKE_BUILD_TYPE=Release ^
    -DCMAKE_MAKE_PROGRAM=C:/Users/Elvis/Dev/ninja-win/ninja.exe ^
    -GNinja ^
    ..

My options are a little different than yours, but I'm also configuring
with Qt 5 support.

Elvis

>
> Thank you,
> Marcin
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206p5743208.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
Elvis,

thank you- your configuration helped, but now I cannot build it with Visual Studio. I get errors: "module machine type "x64" conflicts with target machine type "X86" and "cannot open file ....\vtkGUISupportQt-7.0.lib".

Does it mean that I have downloaded and installed wrong version of Qt? I have it from: https://download.qt.io/archive/qt/5.6/5.6.0/ and it is "qt-opensource-windows-x86-winrt-msvc2015-5.6.0.exe". Where to find the one for x64?

Best regards,
Marcin Wasiucionek
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
Ok, I think I see it- I will try with "qt-opensource-windows-x86-msvc2015_64-5.6.0.exe"
B B
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

B B

This is the 64 bits version of Qt 5.6.0, you should download 5.6.2 there instead: https://download.qt.io/archive/qt/5.6/5.6.2/qt-opensource-windows-x86-msvc2015_64-5.6.2.exe




De : vtkusers <[hidden email]> de la part de MarWas18 <[hidden email]>
Envoyé : lundi 15 mai 2017 11:03
À : [hidden email]
Objet : Re: [vtkusers] Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015
 
Ok, I think I see it- I will try with
"qt-opensource-windows-x86-msvc2015_64-5.6.0.exe"



--
View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206p5743220.html


Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
This post was updated on .
I have downloaded and installed the version recommended by you. I still get the same errors in Visual Studio: "module machine type "x64" conflicts with target machine type "X86" and "cannot open file ....\vtkGUISupportQt-7.0.lib". I build it in Debug, but in Release it is in fact the same.

Is it possible that I have wrong VTK version?

EDIT: In CMAKE I also check BUILD_SHARED_LIBS= ON. I checked the VTK\lib\Debug folder and in fact there is no vtkGUISupportQt-7.0.lib file

Another interesting thing- in Visual Studio, next to field when I choose "Debug" or "Release" etc. from the list I can only select "Win32" or "Configuration Manager".
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Ben Boeckel
On Mon, May 15, 2017 at 03:12:51 -0700, MarWas18 wrote:
> I have downloaded and installed the version recommended by you. I still get
> the same errors in Visual Studio: "module machine type "x64" conflicts with
> target machine type "X86" and "cannot open file
> ....\vtkGUISupportQt-7.0.lib". I build it in Debug, but in Release it is in
> fact the same.
>
> Is it possible that I have wrong VTK version?

Note that they usually install to different directories; you'll want to
update your configure line to point to the 64-bit version.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
This post was updated on .
Thank you! What should I do? What configuration will work? I only need to add GUI to my VTK application, so maybe I have to build only one or two modules? If yes- which modules should I include? Maybe there is easier way?

I would really appreciate help!

Best regards,
Marcin
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Ben Boeckel
On Mon, May 15, 2017 at 10:15:21 -0700, MarWas18 wrote:
> Thank you! What should I do? What configuration will work? I only need to add
> GUI to my VTK application. Maybe there is easier way? I would really
> appreciate help!

Actually, I think I see the problem:

    QT_QMAKE_EXECUTABLE:PATH=C:/Qt/Qt5.6.2/5.6/msvc2015_64/bin/qmake.exe
    QT_DIR= C:/Qt/Qt5.6.2/5.6/msvc2015_64/bin

Both of these are wrong. QT_QMAKE_EXECUTABLE is for Qt4 and QT_DIR is
unused. You'll want to set:

    Qt5_DIR=C:/Qt/Qt5.6.2/5.6/msvc2015_64/lib/cmake/Qt5

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
Ok, now my configuration is as follows:

Software:
Windows 8.1 64 bit
Visual Studio Community 2015 (seems to be 32 bit, only Win32 possible when builiding in Release, Debug or any other)
CMake 3.6.3
VTK 7.0
Qt 5.6.2 (32 bit from https://download.qt.io/archive/qt/5.6/5.6.2/qt-opensource-windows-x86-msvc2015-5.6.2.exe)

CMake settings:
BUILD_TESTING= ON
BUILD_SHARED_LIBS= ON
Module_vtkGUISupportQt= ON
Module_vtkGUISupportQtOpenGL= ON
Module_vtkTestingCore= ON
Module_vtkTestingRendering= ON
QT_VERSION=5
VTK_Group_Qt=ON
VTK_Group_Rendering= ON
VTK_Group_StandAlone= ON
CMAKE_PREFIX_PATH= C:\Qt\Qt5.6.2\5.6\msvc2015
QT_DIR= C:/Qt/Qt5.6.2/5.6/msvc2015/lib/cmake/Qt5

I get errors when builiding VTK ALL_BUILD in Visual Studio:  "conditional expression is constant" and code C4127, C4275. There are 11 such errors.

Maybe I have to add something more to Visual Studio? I remember adding variables to it when installing VTK, but I did not change it- it should work.

Thank you,
Marcin
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Ben Boeckel
On Tue, May 16, 2017 at 06:15:48 -0700, MarWas18 wrote:
> Visual Studio Community 2015 (seems to be 32 bit, only Win32 possible when
> builiding in Release, Debug or any other)

Use the `-A x64` option when configuring to use the x64 architecture.

> QT_VERSION=5

This variable does nothing. The setting is called `PARAVIEW_QT_VERSION`.

> QT_DIR= C:/Qt/Qt5.6.2/5.6/msvc2015/lib/cmake/Qt5

This variable also does nothing. You need to use the `Qt5_DIR` variable
in my earlier email.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Ben Boeckel
On Tue, May 16, 2017 at 10:13:49 -0400, Ben Boeckel wrote:
> This variable does nothing. The setting is called `PARAVIEW_QT_VERSION`.

Sorry, `VTK_QT_VERSION`.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
This post was updated on .
In reply to this post by Ben Boeckel
>Use the `-A x64` option when configuring to use the x64 architecture. 

Thank you! The problem is that I dont see this option in my Visual Studio. Do I have to use this ,,Configuration manager" instead of ,,Win32"?

I also see that VTK (working) was previously configured in CMake as x86. How is it possible that it works?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Elvis Stansvik
2017-05-16 17:53 GMT+02:00 MarWas18 <[hidden email]>:
>>Use the `-A x64` option when configuring to use the x64 architecture.
>
> The problem is that there is no such choice in my Visual Studio. I may
> select only ,,Win32" or ,,Configuration Manager...".

I think it's time you clarify what you goal is, since there's been
talk of both 32-bit and 64-bit in this thread now.

Do you want to build a 64-bit or 32-bit application?

If you want to build a 64-bit application, you should use the 64-bit
download of Qt, not the 32-bit that you mentioned in your last mail.

I'm assuming now that you are building on a 64-bit machine and you are
targeting 64-bit machines.

I've not built from within Visual Studio before, but I think to get
the correct configuration available in the generated VS solution, you
should invoke CMake at a command prompt with the correct environment
variables set up. This you can get through a shortcut installed by VS
2015 Community called something like "VS2015 x64 Native Tools Command
Prompt". Type "native" after pressing the "Start"-button in Win 8 and
it should pop up (several shortcuts installed by VS will pop up, so
make sure you pick the correct one).

Your environment (Windows 8.1, VS 2015 Community, ...) is actually
quite similar to the one I'm using, but I'm building using Ninja
(using the Ninja CMake generator), not from within Visual Studio, so I
have less experience with that.

Regards,
Elvis

>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206p5743263.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Ben Boeckel
In reply to this post by MarWas18
On Tue, May 16, 2017 at 08:53:03 -0700, MarWas18 wrote:
> >Use the `-A x64` option when configuring to use the x64 architecture. 
>
> The problem is that there is no such choice in my Visual Studio. I may
> select only ,,Win32" or ,,Configuration Manager...".

You need to tell CMake to generate a 64bit-aware project. That one will
not build a 32bit binary.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Robert Maynard-4
If you want a 64 bit solution easily you can specify it by using the generator name "Visual Studio 15 2017 Win64" 

CMake documentation on the Visual Studio Generator clarifies this: https://cmake.org/cmake/help/v3.8/generator/Visual%20Studio%2015%202017.html

On Tue, May 16, 2017 at 1:55 PM, Ben Boeckel <[hidden email]> wrote:
On Tue, May 16, 2017 at 08:53:03 -0700, MarWas18 wrote:
> >Use the `-A x64` option when configuring to use the x64 architecture. 
>
> The problem is that there is no such choice in my Visual Studio. I may
> select only ,,Win32" or ,,Configuration Manager...".

You need to tell CMake to generate a 64bit-aware project. That one will
not build a 32bit binary.

--Ben
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

MarWas18
In fact nothing worked. May someone share working configuration for GUI development on Windows 8.1 with links for download (VTK version, CMake version, Qt and Microsoft Visual Studio versions) and if possible step by step installation tutorial, please?

Thank you,
Marcin
Reply | Threaded
Open this post in threaded view
|

Re: Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015

Elvis Stansvik
2017-05-23 13:02 GMT+02:00 MarWas18 <[hidden email]>:
> In fact nothing worked. May someone share working configuration for GUI
> development on Windows 8.1 with links for download (VTK version, CMake
> version, Qt and Microsoft Visual Studio versions) and if possible step by
> step installation tutorial, please?

Since my setup is quite similar to yours (though I don't use the IDE
part of MSVC, only the compiler), here it goes:

1. Install Visual C++ 2015 Build Tools
(http://landinghub.visualstudio.com/visual-cpp-build-tools)

2. Install CMake 3.7.2 from installer
(https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.msi)

3. Install Ninja 1.7.2 by unpacking .zip
(https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip)

4. Install Qt 5.6.2 from offline installer
(http://download.qt.io/official_releases/qt/5.6/5.6.2/qt-opensource-windows-x86-msvc2015_64-5.6.2.exe)

All of these are for Windows 64-bit.

Then, to get a command prompt suitable for building VTK with Qt support:

1. Start a "Qt 5.6 64-bit for Desktop (MSVC 2015)" command prompt (a
shortcut is installed by Qt).

2. Choose the correct compiler by running:

    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

Then, assuming

1. Qt was installed to %HOMEDRIVE%%HOMEPATH%/Qt.

2. The VTK source is in %HOMEDRIVE%%HOMEPATH%\VTK-7.1.1

3. You want to install VTK to %HOMEDRIVE%%HOMEPATH%\VTK-7.1.1-inst

4. The ninja.exe executable is in %HOMEDRIVE%%HOMEPATH%\ninja.exe

you can configure, build and install VTK with

cd %HOMEDRIVE%%HOMEPATH%\VTK-7.1.1
mkdir build
cd build
cmake ^
    -DCMAKE_INSTALL_PREFIX=%HOMEDRIVE%%HOMEPATH%\VTK-7.1.1-inst ^
    -DVTK_Group_Qt=ON ^
    -DVTK_QT_VERSION=5 ^
    -DQt5_DIR=%HOMEDRIVE%%HOMEPATH%/Qt/Qt5.6.2/5.6/msvc2015_64/lib/cmake/Qt5 ^
    -DVTK_Group_Imaging=ON ^
    -DVTK_Group_Views=ON ^
    -DVTK_Group_MPI=OFF ^
    -DVTK_Group_Tk=OFF ^
    -DVTK_Group_Web=OFF ^
    -DVTK_Group_StandAlone=OFF ^
    -DBUILD_TESTING=OFF ^
    -DVTK_USE_SYSTEM_LIBRARIES=OFF ^
    -DCMAKE_BUILD_TYPE=Release ^
    -DCMAKE_MAKE_PROGRAM=%HOMEDRIVE%%HOMEPATH%\ninja.exe ^
    -GNinja ^
    ..
cmake --build . --config Release
cmake --build . --target install

Obviously, the flags for enabling/disabling stuff will look different
depending on what you want.

Newer version of CMake should work, it's just that 3.7.2 was the
latest when I did this.

Hope that helps,
Elvis

>
> Thank you,
> Marcin
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206p5743356.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
12