QT5 on Mountain Lion
-
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 2Do you have any suggestion on how I might compile qt without losing one day just to investigate the error?
Thank you in advance.
Regards,
-
What config parameters did you pass to configure?
-
./configure -prefix ~/libs/qt5.0.1/ -opensource
Thanks.
-
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
-
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@