[vtkusers] trouble setting up VTK for Qt creator

com comacke at gmail.com
Wed Jul 27 12:42:08 EDT 2011


I tried using the path C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin\qmake.exe for the
QT_QMAKE_EXECUTABLE, but got this message.

CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindQt4.cmake:575 (MESSAGE):

It appears you're trying to use Visual Studio with Qt built by mingw.

Those compilers do not produce code compatible with each other.

Call Stack (most recent call first):

CMakeLists.txt:305 (FIND_PACKAGE)


Also, I used the path C:/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtDesigner for
the QT_QTDESIGNER_INCLUDE_DIR. I also tried it leaving this blank and got a
similar message.


Qt Creator wasn't on the list of generators used by CMake, so I used Visual
Studio 10 as my generator (that's the only other compiler on my computer
besides Qt Creator). I noticed Code Blocks could be used as a generator in
CMake. I'm guessing I could download this and use it as the generator and
then it (might??) be compatible with Qt Creator. I'd rather find another way
around this problem if possible, but if I have to, I can go down this route.



2011/7/27 Dženan Zukić [via VTK] <
ml-node+4639052-2051497548-235024 at n5.nabble.com>

> You should use the one from the library that you want to use. I guess that
> is:
> C:\QtSDK\Desktop\Qt\4.73\mingw\bin
>
> On Wed, Jul 27, 2011 at 15:14, com <[hidden email]<http://user/SendEmail.jtp?type=node&node=4639052&i=0>
> > wrote:
>
>> Thanks for the advice Dominik. I did a search for qmake.exe in my QTSDK
>> directory and found it in a number of different directories.Here they are,
>>
>> C:\QtSDK\Symbian\SDKs\Symbian1Qt473\bin
>> C:\QtSDK\Symbian\SDKs\Symbian3Qt473\bin
>> C:\QtSDK\Symbian\SDKs\Symbian3Qt463\bin
>> C:\QtSDK\Symbian\SDKs\Symbian1Qt463\bin
>> C:\QtSDK\Simulator\Qt\mingw\bin
>> C:\QtSDK\Desktop\Qt\4.73\mingw\bin
>>
>> Do you know which one should I use?
>>
>> Thanks
>>
>>
>> On Tue, Jul 26, 2011 at 5:00 PM, Dominik Szczerba [via VTK] <[hidden
>> email] <http://user/SendEmail.jtp?type=node&node=4638723&i=0>> wrote:
>>
>>> You need to provide the path to qmake.exe when running cmake.
>>>
>>> Dominik
>>>
>>> On Tue, Jul 26, 2011 at 11:45 PM, com <[hidden email]<http://user/SendEmail.jtp?type=node&node=4636577&i=0>>
>>> wrote:
>>>
>>> > I am trying to set up VTK for Qt Creator. I saw some step by step
>>> guides for
>>> > setting up VTK for visual studio, but none for Qt Creator. I have
>>> visual
>>> > studio, but would rather use Qt Creator.
>>> >
>>> > I downloaded the latest versions of VTK and CMake and have Qt 4.7.3. If
>>> I do
>>> > not select VTK_USE_QT, then CMake seems to build VTK with no problems -
>>>
>>> > which might be fine if I was just using visual studio. However, when I
>>> > select VTK_USE_QT I run into a number of errors.
>>> >
>>> > Here are a few of the errors:
>>> >
>>> > Qt QTGUI library not found
>>> > Qt QTSQL library not found
>>> > Qt QTNETWORK library not found
>>> >
>>> > CMake doesn't seem to be able to find a lot of these - so I tried
>>> putting in
>>> > the values myself and still seem to get some errors. Maybe I'm putting
>>> in
>>> > the wrong values?
>>> >
>>> > Any help would be much appreciated as I have spent the whole day trying
>>> to
>>> > figure out how to get this to work and I would really like to use VTK
>>> for a
>>> > project I am working on in graduate school. I'm also not sure what I
>>> need to
>>> > do in Qt Creator once I'm done with CMake.
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636528.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
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://www.vtk.org/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
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>> ------------------------------
>>>  If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4636577.html
>>>  To unsubscribe from trouble setting up VTK for Qt creator, click here.
>>>
>>
>>
>> ------------------------------
>> View this message in context: Re: trouble setting up VTK for Qt creator<http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4638723.html>
>>
>> Sent from the VTK - Users mailing list archive<http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639052.html
>  To unsubscribe from trouble setting up VTK for Qt creator, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4636528&code=Y29tYWNrZUBnbWFpbC5jb218NDYzNjUyOHw4ODA1ODg2MjI=>.
>
>


--
View this message in context: http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4639440.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110727/cff50482/attachment.htm>


More information about the vtkusers mailing list