Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT5 on Mountain Lion

QT5 on Mountain Lion

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 2.7k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lordthistle
    wrote on last edited by
    #1

    Hello, I need to install QT5 on Mountain Lion. Everything is up-to-date: XCode, the OS, the QT file I downloaded.

    I started from the installer, but I have found out that it is not possible to deselect QTCreator. I already have QT Creator (which I customized a little and don't want another QT Creator app on my drive).

    Question 1) Is there any way to use the installer without being forced to install twice QT Creator (I already know that removing the qt creator I have and use the new one is an option).

    Question 2) Then I downloaded the source code of the QT5 lib. The configuration is fine, but the compilation fails with a cryptic message:

    clang++ -headerpad_max_install_names -mmacosx-version-min=10.6 -single_module -dynamiclib -o libqsqlite.dylib .obj/release-shared/smain.o .obj/release-shared/qsql_sqlite.o .obj/release-shared/sqlite3.o .obj/release-shared/moc_qsql_sqlite.o -F/Users/cardillo/libs/qt5.0.1-src/qtbase/lib -framework QtSql -framework QtCore
    mv -f libqsqlite.dylib ../../../../plugins/sqldrivers/
    make [ 2 ]: *** [sub-plugins-make_first] Error 2
    make [ 1 ]: *** [sub-src-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2

    Do you have any suggestion on how I might compile qt without losing one day just to investigate the error?

    Thank you in advance.

    Regards,

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wakeuky
      wrote on last edited by
      #2

      What config parameters did you pass to configure?

      Don't Panic

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lordthistle
        wrote on last edited by
        #3

        ./configure -prefix ~/libs/qt5.0.1/ -opensource

        Thanks.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wakeuky
          wrote on last edited by
          #4

          Since my post ~90 minutes ago I have pulled the latest Qt5 distribution from the GIT repo. I configured just as you did however to decrease time included -nomake examples -nomake tests

          I am currently still in the make process, but have been running over an hour without error. How quickly do you usually encounter your error? I have seen similar gibberish before and recall it always failing sooner than later.

          *Note: I am running OS X 10.8.2

          Don't Panic

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wakeuky
            wrote on last edited by
            #5

            I am sorry for the delayed response. I could not finish the build process for a few days. My compile just finished. I suggest you pull the latest Git repo and build that.

            First clone the top-level Qt 5 git repository:

            git clone git://gitorious.org/qt/qt5.git qt5
            or (if you’re behind a firewall and want to use the https protocol):

            git clone https://git.gitorious.org/qt/qt5.git qt5

            From: "Wiki: Building Qt 5 from Git":http://qt-project.org/wiki/Building_Qt_5_from_Git

            @
            git submodule foreach --recursive "git clean -dfx"

            ./configure -prefix /Developer/Qt/Qt5/5.0.1/ -platform macx-clang-32 -developer-build -opensource -nomake examples -nomake test -nomake webkit

            make -j 4

            make install@

            Don't Panic

            1 Reply Last reply
            0

            • Login

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