[SOLVED] Can't build Qt 5.1 alpha on Mac OS 10.8.3
-
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!
-
You need to have Xcode with Command Line Tools installed. Or a matching MacPorts setup.
-
[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.
-
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 :)).
-
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.
-
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).