[Qt-interest] ask for help on cmake
Yifei Li
yifli at mtu.edu
Fri Apr 23 21:19:55 CEST 2010
Hi folks,
Now I have another problem, I successfully generate an Eclipse project from cmake. And the project is built in Eclipse without any errors.
However, when I try to run the program from Eclipse, I got the error:
Lauch failed. Binary not found
I know the binary is there and I can run it from terminal.
What could be the reason for the problem? Thanks
Yifei
On Apr 23, 2010, at 11:49 AM, Yifei Li wrote:
> 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 at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list