qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] ask for help on cmake

Subject: Re: [Qt-interest] ask for help on cmake
From: Yifei Li
Date: Fri, 23 Apr 2010 11:49:31 -0400
Clint,

I just found out myself.  Thank you for the quick reponse

Yifei

On Apr 23, 2010, at 11:45 AM, Clinton Stimpson wrote:

> On Friday 23 April 2010 09:39:21 am Yifei Li wrote:
>> Hi guys,
>> 
>> I just switched from qmake to cmake. I'm trying to build a small OpenGL
>> app, but cmake can't even find stuff like QGLWidget and  QtOpenGL:
>> 
>> /Users/yifli/Documents/glWidget/src/Scene.h:12:20: error: QtOpenGL: No such
>> file or directory /Users/yifli/Documents/glWidget/src/glwidget.cpp:3:21:
>> error: QGLWidget: No such file or directory
>> 
>> My project directory looks like this:
>> 
>> Project folder:
>> 
>>      +  CMakeLists.txt
>>        +  src
>>          ------- glwidget.h
>>          ------- glwidget.cpp
>>            ------- main.cpp
>>            ------- Scene.h
>>          ------- Scene.cpp
>>            ------- CMakeLists.txt
>> 
>> cmake did find Qt4 on my mac : -- Found Qt-Version 4.6.2 (using
>> /usr/local/Trolltech/Qt-4.6.2/bin/qmake)
>> 
>> I did add OpenGL support : set(QT_USE_OPENGL TRUE)  
>> include(${QT_USE_FILE})
> 
> You have a typo... the correct name is:
> set(QT_USE_QTOPENGL TRUE)
> 
> Clint
> _______________________________________________
> Qt-interest mailing list
> Qt-interest@xxxxxxxxxxxxx
> http://lists.trolltech.com/mailman/listinfo/qt-interest


_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>