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. [SOLVED] Can't build Qt 5.1 alpha on Mac OS 10.8.3
QtWS25 Last Chance

[SOLVED] Can't build Qt 5.1 alpha on Mac OS 10.8.3

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 2.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.
  • S Offline
    S Offline
    shav
    wrote on 16 Apr 2013, 12:58 last edited by
    #1

    Hi everyone.

    Today I've tried to build the Qt 5.1 from sources which I've download from this "link":http://download.qt-project.org/development_releases/qt/5.1/5.1.0-alpha/single/qt-everywhere-opensource-src-5.1.0-alpha.zip. When I try call command like:
    @
    ./configure -prefix /Volumes/Backups/Applications/Qt5.1-alpha1
    @

    I've received this error:
    @
    -bash: ./configure: /usr/bin/perl^M: bad interpreter: No such file or directory
    @

    What I do wrong? Thanks for any help!

    Mac OS and iOS Developer

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 16 Apr 2013, 14:44 last edited by
      #2

      You need to have Xcode with Command Line Tools installed. Or a matching MacPorts setup.

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shav
        wrote on 16 Apr 2013, 16:41 last edited by
        #3

        [quote author="sierdzio" date="1366123474"]You need to have Xcode with Command Line Tools installed. Or a matching MacPorts setup.[/quote]

        Thanks for the reply. I have installed the xcode 4.6.2 (this is last version of Xcode). But I still can't build the Qt. Maybe I need update perl?

        Also, I've tried build QtBase from github repo. It's build success. But I need the QML which absent in QtBase repos. Can you send me the link how I can compile the last version of Qt with QML and Qt Quick Controls? Thanks.

        Mac OS and iOS Developer

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 17 Apr 2013, 05:14 last edited by
          #4

          You need to install Command Line Tools from Xcode->Preferences->Downloads.

          Or, if you are fine without Perl, then I think you can compile all the modules separately, one by one. I have not tried this myself, though (should be something like cd into module dir, then make. Or make submodule in root dir. I don't know :)).

          (Z(:^

          1 Reply Last reply
          0
          • S Offline
            S Offline
            shav
            wrote on 17 Apr 2013, 06:09 last edited by
            #5

            Thanks for the help! I found the problem and now all is fine.

            The problem is when I download the source of Qt 5.1 alpha from this "folder":http://download.qt-project.org/development_releases/qt/5.1/5.1.0-alpha/single/. I've download the zip file. The sources which saved in this zip file doesn't compile for me, so I try to download the "tar.gz":http://download.qt-project.org/development_releases/qt/5.1/5.1.0-alpha/single/qt-everywhere-opensource-src-5.1.0-alpha.tar.gz archive. When I try to compile it I've receive the error but I found the solution for fix the error:
            @
            On Mac compilation fails with
            “make[3]: *** No rule to make target /qtbase/lib/libQt5QmlDevTools.a’, needed by /qtbase/bin/qmlmin’. Stop.”

            This can be fixed by adding “CONFIG += release” to
            /qtdeclarative/src/qmldevtools/qmldevtools.pro
            @

            So, for now all works for me.

            Mac OS and iOS Developer

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 17 Apr 2013, 06:11 last edited by
              #6

              ZIP package is for Windows and contains Win line endings, among with some additional stuff needed there. For Unix systems, always take the tarball (or clone from git, of course).

              (Z(:^

              1 Reply Last reply
              0
              • S Offline
                S Offline
                shav
                wrote on 17 Apr 2013, 06:16 last edited by
                #7

                So, for now I've will be to know, what archive I must using for build Qt. Sorry for the stupid question.

                Mac OS and iOS Developer

                1 Reply Last reply
                0

                4/7

                17 Apr 2013, 05:14

                • Login

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