我刚刚下载了 Qt 5.0 的源代码并在 Ubuntu 12.10 64 位上编译了它。运行sudo make install
似乎已将文件复制到/usr/local/Qt-5.0.0
:
到现在为止还挺好。但是当我启动 Qt Creator 2.5.2 并尝试将其指向新版本时,我收到了一个不寻常的错误:The default mkspec symlink is broken
.
什么可能导致这种错误?下面的所有符号链接/usr/local/Qt-5.0.0/mkspecs
都是有效的。的输出qmake -query
如下:
QT_SYSROOT: QT_INSTALL_PREFIX:/usr/local/Qt-5.0.0 QT_INSTALL_ARCHDATA:/usr/local/Qt-5.0.0 QT_INSTALL_DATA:/usr/local/Qt-5.0.0 QT_INSTALL_DOCS:/usr/local/Qt-5.0.0/doc QT_INSTALL_HEADERS:/usr/local/Qt-5.0.0/include QT_INSTALL_LIBS:/usr/local/Qt-5.0.0/lib QT_INSTALL_LIBEXECS:/usr/local/Qt-5.0.0/libexec QT_INSTALL_BINS:/usr/local/Qt-5.0.0/bin QT_INSTALL_TESTS:/usr/local/Qt-5.0.0/tests QT_INSTALL_PLUGINS:/usr/local/Qt-5.0.0/plugins QT_INSTALL_IMPORTS:/usr/local/Qt-5.0.0/imports QT_INSTALL_QML:/usr/local/Qt-5.0.0/qml QT_INSTALL_TRANSLATIONS:/usr/local/Qt-5.0.0/translations QT_INSTALL_CONFIGURATION:/etc/xdg QT_INSTALL_EXAMPLES:/usr/local/Qt-5.0.0/examples QT_INSTALL_DEMOS:/usr/local/Qt-5.0.0/examples QT_HOST_PREFIX:/usr/local/Qt-5.0.0 QT_HOST_DATA:/usr/local/Qt-5.0.0 QT_HOST_BINS:/usr/local/Qt-5.0.0/bin QMAKE_SPEC:linux-g++-64 QMAKE_XSPEC:linux-g++-64 QMAKE_VERSION:3.0 QT_VERSION:5.0.0
我还应该指出,我没有在这台机器上安装 Qt 4.x 开发文件:
nathan@nathan-ubuntu:~$ dpkg -l | grep qt4 ii libqt4-dbus:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 D-Bus 模块 ii libqt4-declarative:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 声明性模块 ii libqt4-designer:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 设计器模块 ii libqt4-help:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 帮助模块 ii libqt4-network:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 网络模块 rc libqt4-opengl:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 OpenGL 模块 rc libqt4-qt3support:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 3 兼容库 Qt 4 ii libqt4-script:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 脚本模块 ii libqt4-scripttools:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 脚本工具模块 ii libqt4-sql:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SQL 模块 ii libqt4-sql-sqlite:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SQLite 3 数据库驱动 ii libqt4-svg:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 SVG 模块 ii libqt4-test:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 测试模块 ii libqt4-xml:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 XML 模块 ii libqt4-xmlpatterns:amd64 4:4.8.3+dfsg-0ubuntu3 amd64 Qt 4 XML 模式模块 ii python-qt4 4.9.3-4 amd64 Python 绑定 Qt4 ii python-qt4-dbus 4.9.3-4 amd64 D-Bus 支持 PyQt4