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

Waldo Valenzuela waldo.valenzuela at hotmail.com
Fri Jul 25 15:17:59 EDT 2014


Hi Luis,


That is unusual, anyway, do you compiled  qt?, In my case I compiled QT 5.3.1 and after VTK 6.1 and I had not problem, with visual studio 2010.

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.

if you want, send me a screenshot of cmake.

Cheers,

Waldo


On 25 Jul 2014, at 16:12, Luis Vieira <luis.vieira at vektore.com> wrote:

> Tks. I did. However, CMake still try to find QT 4 as follow erro message:
> 
> CMake Error at C:/Program Files
>         (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:621 (message):
> 
>         Could NOT find QtCore. Check
> 
>         C:/VTK/bin/msvc2013_64_opengl/CMakeFiles/CMakeError.log for more
>         details.
> 
>         Call Stack (most recent call first):
> 
>         GUISupport/Qt/CMakeLists.txt:68 (find_package)
> 
> 
> On 7/22/14 2:34 PM, Waldo Valenzuela wrote:
>> Hi Luis,
>> 
>> to compile qt 5 or superior with vtk 6, you need to set as well VTK_QT_VERSION = 5,  in cmake.
>> 
>> Cheers,
>> 
>> Waldo.
>> 
>> 
>> 
>> On 22 Jul 2014, at 14:26, Luis Vieira <luis.vieira at vektore.com> wrote:
>> 
>>> 
>>> Hello, We hope this email find you well.
>>> 
>>> We have the
>>>                                 follow CMake - VTK - Visual Studio 2013
>>>                                 Configuration:
>>> 
>>> ·         Visual
>>>                               Studio 2013 opengl +64;
>>> 
>>> ·         CMake
>>>                               3.0;
>>> 
>>> ·         VTK-6.1.0.
>>> 
>>> CMake
>>>                                 configurated the following paths:
>>> 
>>> ·         C:\Program
>>> 
>>>                               Files\VTK (Debug);
>>> 
>>> ·         C:\Program
>>> 
>>>                               Files\VTK (Release);
>>> 
>>> ·         C:\VTK\build;
>>> 
>>> ·         C:\VTK\Data.
>>> 
>>>                               <ggdedbeb.png>
>>> 
>>>                             
>>> 
>>> The environment
>>>                               stated above works very well. However, we
>>>                               need to provide/enable the same
>>>                               configuration between VTK and QT
>>>                                 Enterprise Creator 5.3. We used
>>>                               CMake 3.0 to configure the linkage between
>>>                               QT 5.3 and VTK - 6.1.0. 
>>> 
>>> The following
>>>                               variables were configured in CMake:
>>> 
>>> ·         VTK_Group_Qt:BOOL=ON;
>>> 
>>> ·         QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe. 
>>> 
>>>       
>>> 
>>>                             
>>> 
>>> <eecdhiai.png>
>>>                             
>>> 
>>> 
>>> 
>>>                               Despite of the above
>>>                                 configuration, CMake presents this error
>>>                                 message:
>>> 
>>>                               
>>> 
>>> CMake            Warning
>>>                                 at C:/Program Files          
>>>                                  (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:616
>>>                                            (message):          
>>>                                  C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/bin/qmake.exe
>>>                                 reported            QT_INSTALL_LIBS as  
>>>                                        
>>>                                  "C:/Qt/Qt5.3.1/5.3/msvc2013_64_opengl/lib"
>>>                                 but            QtCore could not be found
>>>                                 there. Qt is NOT installed          
>>>                                  correctly for the target build
>>>                                 environment.            Call Stack (most
>>>                                 recent call first):          
>>>                                  GUISupport/Qt/CMakeLists.txt:68
>>>                                 (find_package)                  
>>>                                   
>>> 
>>>  CMake Error at
>>>                                 C:/Program Files          
>>>                                  (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:621
>>>                                            (message):            Could
>>>                                 NOT find QtCore. Check          
>>>                                  C:/VTK/bin/msvc2013_64_opengl/CMakeFiles/CMakeError.log
>>>                                 for            more details.          
>>>                                  Call Stack (most recent call first):  
>>>                                          GUISupport/Qt/CMakeLists.txt:68
>>>                                 (find_package)                  
>>>                                              
>>> 
>>>                             
>>> 
>>> Could you guys please advise me on how to properly set up the programming environment in which CMake will build the bridge amongst the VSC++ OpenGL +64, VTK 6.1.0 and QT 5.3? What are our options to direct CMake to recognize QT5.3? The way it is now it only recognizes QT4.0. 
>>> 
>>> 
>>>                               Thank you so much.
>>> 
>>>                             
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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
>>> 
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140725/c562d9ca/attachment.html>


More information about the vtkusers mailing list