Qt Forum

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

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

    Installation and Deployment
    2
    7
    2436
    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.
    • S
      shav last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

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

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • S
          shav last edited by

          [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 Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

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

              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 Reply Quote 0
              • sierdzio
                sierdzio Moderators last edited by

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

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