Results 1 to 3 of 3

Thread: Setting QT in Xcode step by step guide

  1. #1
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Setting QT in Xcode step by step guide

    HI , This post is for those who are new in xcode & Qt....
    Suppose your project name is myproj .

    1. write all .CPP,.H & .pro file in a folder.
    2. write these commands in terminal------
    3. cd /myproj
    4. qmake -o makefile myproj.pro
    5. qmake -spec macx-g++
    6. qmake &&make.

    after successfull build ...

    7. qmake -spec macx-xcode


    then your project folder will be having xcode file open it by double clicking...... now you can edit your application in XCODE.

  2. #2
    Join Date
    Sep 2013
    Posts
    11
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Windows Android

    Default Re: Setting QT in Xcode step by step guide

    many thanks for this tutorial, it works very fine

  3. #3
    Join Date
    Sep 2015
    Posts
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Setting QT in Xcode step by step guide

    Quote Originally Posted by anupam View Post
    HI , This post is for those who are new in xcode & Qt....
    Suppose your project name is myproj .

    1. write all .CPP,.H & .pro file in a folder.
    2. write these commands in terminal------
    3. cd /myproj
    4. qmake -o makefile myproj.pro
    5. qmake -spec macx-g++
    6. qmake &&make.

    after successfull build ...

    7. qmake -spec macx-xcode


    then your project folder will be having xcode file open it by double clicking...... now you can edit your application in XCODE.
    I have noticed the default 'makespec' will be either 'macx-g++' or 'macx-xcode' depending on how you install Qt. For me, since I compile from source, it is 'macx-g++' and will use this unless I specify otherwise.

    I think some of these steps are not necessary. If I have just the source code and Qt project file I can setup everything for XCode by the following steps:

    1. qmake -spec macx-xcode

    <done>

    Startup XCode, load the project, and you are all set.

Similar Threads

  1. Replies: 4
    Last Post: 23rd July 2012, 21:09
  2. Qt Creator Debugging step by step through else rich code does not work
    By Terjoqu in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 22:44
  3. learn how to install QT with msvc2005 step by step
    By coder1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 20th December 2007, 20:56
  4. Video Tutorials or step by step guides?
    By Dumbledore in forum Newbie
    Replies: 2
    Last Post: 10th October 2007, 09:33
  5. Step by Step MySQL Plugin... what's next step?
    By chaosgeorge in forum Qt Programming
    Replies: 20
    Last Post: 5th November 2006, 16:32

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.