PDA

View Full Version : Mac OSX: missing executable ?



Hiwa
22nd April 2011, 06:09
Hi everybody,

I created an empty form in QtCreator and ran the following commands afterwards:

qmake -spec macx-g++
make

everything builds ok but when I try to start the application (open Test.app) I get the following error: The application cannot be opened because the executable is missing.
However, the executable does exist.
When I start the executable directly (Test.app/Contents/MacOS/Test), the empty form appears.

Any ideas ?

Here's the content of my pro file:


#
#-------------------------------------------------
# Project created by QtCreator 2011-04-22T06:48:51
#
#-------------------------------------------------

QT += core gui

TARGET = Test
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui

Olivia
22nd April 2011, 09:58
Try qmake without any parameters.

Hiwa
22nd April 2011, 15:02
Try qmake without any parameters.

This creates a xcode project file.
When I build it in xcode it seems to work.
I'm still a bit confused why it doesn't work with a gnu make makefile.