Results 1 to 6 of 6

Thread: Compiling a Qt project in Mac

  1. #1
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Compiling a Qt project in Mac

    Hi Guys,

    This is a Mac-newbie question. I have my Qt project. invoking qmake generates a xcodeproj/ rather than creating a Makefile. So how do I generate a Makefile.
    Or

    How can I compile the xcodeproj from the terminal ?
    We can't solve problems by using the same kind of thinking we used when we created them

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Compiling a Qt project in Mac

    QMAKESPEC is set to "macx-xcode", isn't it? Try switching it to "macx-g++" or passing the spec to qmake:
    qmake -spec macx-g++
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    sunil.thaha (30th October 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling a Qt project in Mac

    Thanks a lot!!

    I failed to find any such thing in Assistant.
    Could you please post the link in the assistant if it has any ?

    BTW: I did not find the QMAKESPEC environment variable defined.
    So, I believe Qt generates xcode be default
    Last edited by sunil.thaha; 30th October 2007 at 11:06. Reason: updated contents
    We can't solve problems by using the same kind of thinking we used when we created them

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Compiling a Qt project in Mac

    Sorry, I don't know. I just remember someone else having the same problem. Perhaps it's mentioned in INSTALL file?
    J-P Nurmi

  6. #5
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compiling a Qt project in Mac

    It is in Assistant, and you would have eventually found it if you dug a bit further in the qmake docs for Mac OSX topics: http://doc.trolltech.com/4.3/qmake-platform-notes.html

    If you build Qt from sources, you get the macx-g++ spec by default, but if you use the binary package from TT, you get macx-xcode by default.

  7. The following user says thank you to Brandybuck for this useful post:

    sunil.thaha (31st October 2007)

  8. #6
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling a Qt project in Mac

    Thanks for bringing that to our notice !!
    And that answers many other questions I have
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. Extra qualification error while compiling the project file
    By amit_pansuria in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2007, 07:56
  2. Qt4 open src mingw from a PC to another
    By nvictor in forum Installation and Deployment
    Replies: 11
    Last Post: 1st May 2007, 17:41
  3. Replies: 3
    Last Post: 18th April 2007, 15:31
  4. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25
  5. compiling a qt project under win32
    By elcuco in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2006, 07:43

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.