Results 1 to 3 of 3

Thread: Mac OSX: missing executable ?

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Mac OSX: missing executable ?

    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

  2. #2
    Join Date
    Apr 2011
    Location
    Poland
    Posts
    10
    Thanks
    2
    Thanked 4 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Mac OSX: missing executable ?

    Try qmake without any parameters.

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Mac OSX: missing executable ?

    Quote Originally Posted by Olivia View Post
    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.

Similar Threads

  1. Replies: 1
    Last Post: 1st September 2010, 20:18
  2. How to set an icon to executable (.exe)
    By Naami in forum Qt Programming
    Replies: 2
    Last Post: 18th June 2010, 01:44
  3. Run the executable also on linux
    By g_mandel in forum Installation and Deployment
    Replies: 1
    Last Post: 26th April 2010, 13:49
  4. qt executable in linux
    By knishaq in forum Qt Programming
    Replies: 10
    Last Post: 3rd February 2010, 12:51
  5. Static Executable
    By perseo in forum Qt Programming
    Replies: 1
    Last Post: 20th May 2008, 21:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.