Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5 coding with XCode 6 (MAC)

    General and Desktop
    qt5.5 macosx mac xcode
    3
    3
    1615
    Loading More Posts
    • 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
      Almer_Cz last edited by

      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 Reply Quote 0
      • M
        mcosta last edited by

        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 Reply Quote 0
        • S
          sandy.martel23 last edited by

          @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 Reply Quote 0
          • First post
            Last post