[Qt-interest] ask for help on cmake

Yifei Li yifli at mtu.edu
Sat Apr 24 01:13:28 CEST 2010


I actually tried that. But eclipse says  

"Program is not a recognized executable".

As I said, I don't have any problem running the executable from terminal.

Here is the information on the executable :   Mach-O 64-bit executable x86_64

Yifei

On Apr 23, 2010, at 4:28 PM, Nicolas Rannou wrote:

> Hi,
> 
> from my understanding, you are missing one step in Eclipse.
> Before running your application you have to specify your "Running configuration".
> 
> Eclipse->Run->Run Configurations
> 
> In the table "Main":
> -> specify the path to the binary you want to run in the box "C/C++ application".
> 
> In the table "Arguments":
> -> specify the arguments if any
> 
> It should work now...
> 
> 
> Nicolas
> 
> On 04/23/2010 03:19 PM, Yifei Li wrote:
>> 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
>>>     
>> 
>> _______________________________________________
>> 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