Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 coding with XCode 6 (MAC)
QtWS25 Last Chance

Qt5 coding with XCode 6 (MAC)

Scheduled Pinned Locked Moved General and Desktop
qt5.5macosxmacxcode
3 Posts 3 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Almer_Cz
    wrote on 30 Aug 2015, 08:14 last edited by
    #1

    Hi guys,

    I recently bought Mac book Pro (only had PC till now) and I wanna do Qt also on it. Using XCode 6 as a tool (from AppStore).

    Tried to create HelloWorld (just write qDebug() << "Hello World") but failed to compile/run. I don't wanna create .pro file, just use XCode and custom build steps (same as I do under MS Visual Studio).

    I have been able to:

    • Download 5.5 for clang and install it on OS X (10.10 btw)
    • Add QtCore framework to xcodeproject so header are on ( no error on #include <QtCore/QCoreApplication> )

    So my needs are:

    • How to create some global environmental variable (f.e. called QT_DIR) that will point out to my Qt dir so I can address inside XCode?
    • How to create custom build steps for .ui (UIC), .h (MOC) and .qrc (RCC) files?
    • How to set linker so it can link all together?

    I know I can use QtCreator (but I don't like it for a long time) and also create .pro and let qmake to generate XCode project, but this will produce a lot of Mambo Jambo around and won't be handy when something changes.

    THX
    Petr

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on 30 Aug 2015, 11:46 last edited by
      #2

      Hi,

      IMO your question is for XCode experts not for Qt ones.

      If you study the Xcode manual probably you'll find the answers; BTW, your project will work only with XCode.
      Using qmake (or CMake is you don't like qmake) your code can be built on all protforms supported by Qt

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sandy.martel23
        wrote on 31 Aug 2015, 10:46 last edited by
        #3

        @Almer_Cz said:

        ...and also create .pro and let qmake to generate XCode project, but this will produce a lot of Mambo Jambo around and won't be handy when something changes.

        So your looking for a way to create and maintain the Mambo Jambo manually and this will somehow be more handy ?

        1 Reply Last reply
        0

        3/3

        31 Aug 2015, 10:46

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved