[vtkusers] CMake problem (VTK 6.1 - Qt 5.3)

Andrew Maclean andrew.amaclean at gmail.com
Tue Jul 29 19:34:23 EDT 2014


It is better not to change the CMake file because if you update VTK this
file will be overwritten.

When you first start cmake you can always use Add Entry, type in the name:
VTK_QT_VERSION set the Type to String and type in 5 for the value.

Andrew


On Wed, Jul 30, 2014 at 9:21 AM, Luis Vieira <luis.vieira at vektore.com>
wrote:

>  Thank you so much. I gotta with Qt 5.3 toggling "Advanced" and "Group"
> checking VTK_QT_VERSION to "5" and change VTK
> <https://github.com/Kitware/VTK> / CMake
> <https://github.com/Kitware/VTK/tree/master/CMake> /
>
> *vtkQt.cmake with *
>
> set(VTK_QT_VERSION "*5*"
> CACHE STRING "Expected Qt version")
> mark_as_advanced(VTK_QT_VERSION)
> set_property(CACHE VTK_QT_VERSION PROPERTY STRINGS 4 5)
> if(NOT (VTK_QT_VERSION VERSION_EQUAL "4" OR VTK_QT_VERSION VERSION_EQUAL "5"))
>   message(FATAL_ERROR "Expected value for VTK_QT_VERSION is either '4' or '5'")
> endif()
>
>
>
> On 7/29/14 7:01 PM, Andrew Maclean wrote:
>
> Luis, you should have no problems building VTK 6.1+ with QT5.3  and VS2013
> I have attached the instructions I use.
> There is a link you also might like to look at:
> http://www.vtk.org/Wiki/VTK/Configure_and_Build#Qt5..2A
>
>  However my instructions do differ from those there.
>
>  Regards
>    Andrew
>
>
>
>>
>> ---------- Forwarded message ----------
>> From: Luis Vieira <luis.vieira at vektore.com>
>> To: vtkusers at vtk.org
>> Cc:
>> Date: Tue, 29 Jul 2014 13:28:57 -0400
>> Subject: [vtkusers] CMake problem (VTK 6.1 - Qt 5.3)
>>
>>  Hi. I am beginner with Qt and VTK. Then,  I will let you how I have
>> doing. I have been working with Qt 5.3.1 and VS2013 perfectly. Last week I
>> tried to set up VTK 6.1 with VS2013 through CMake 3.0 and works perfectly.
>> As well you could see below.  Now, I am try to enable VTK with Qt 5.3.1
>> through CMake. However, whatever I do to set VT_QT options my CMake only
>> found Qt4 through this file FindQt4.cmake in my C:\Program Files
>> (x86)\CMake\share\cmake-3.0\Modules. I am pretty sure that it's the problem.
>>
>>
>>
>> *CMAKE_INSTALL_PREFIX : C:/Program Files/VTK/buildQt*
>> * CMAKE_PREFIX_PATH: C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin*
>> *VTK_Group_Qt:BOOL=ON;*
>>
>> *
>> QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe.
>> *
>>
>>
>>
>>
>>
>> Where I could change that?
>> "The first thing that have the first time that compile vtk with qt module
>> is that I have to change the flag to qt 5 and erase the flags of qt 4, and
>>  then I configure again, and is ready."
>>
>> Thank you.
>>
>>
>> _______________________________________________
>> vtkusers mailing list
>> vtkusers at vtk.org
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>
>
>  --
> ___________________________________________
> Andrew J. P. Maclean
>
> ___________________________________________
>
>
>


-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140730/ecd80e38/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 75255 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140730/ecd80e38/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 66844 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140730/ecd80e38/attachment-0003.png>


More information about the vtkusers mailing list