2017-02-18 155 views
1

我想能夠調試到qt源代碼中,所以我開始在我的MAC上編譯最新的Qt版本5.8。 我按照關於構建它的Qt網頁上的說明。但這是我運行configure後得到的結果。從macOS上的源代碼構建Qt時出錯

../qt-everywhere-opensource-src-5.8.0/configure -prefix /Users/userName/qt-install-5.8 0 -opensource -debug-and-release + cd qtbase + /Users/userName/qt-everywhere-opensource-src-5.8.0/qtbase/configure -top-level -prefix /Users/username/qt-install-5.8 0 -opensource -debug-and-release

This is the Qt Open Source Edition.

You are licensed to use this software under the terms of the GNU Lesser General Public License (LGPL) version 3. You are also licensed to use this software under the terms of the GNU General Public License (GPL) version 2.

Type 'L' to view the GNU Lesser General Public License version 3. Type 'G' to view the GNU General Public License version 2. Type 'yes' to accept this license offer. Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Preparing build tree... Creating qmake... ............................................................................................Done.

ERROR: Invalid command line parameter '0'.

我不明白最後一行。我試圖通過創建一個新的文件夾來構建影子。我還在運行上面的配置時指定了安裝目錄。運行配置後,這些是在我的生成文件夾中創建的文件。

config.cache config.log qtbase

這看起來是否正確。

我是一個MAC平臺的新手,但我已經完成了從源代碼編譯QT的Linux上的& Linux。

當我運行make,這是我得到

make make: *** No targets specified and no makefile found. Stop

在此先感謝您的幫助。

回答

1

../qt-everywhere-opensource-src-5.8.0/configure -prefix /Users/userName/qt-install-5.8 0 -opensource -debug-and-release + cd qtbase + /Users/userName/qt-everywhere-opensource-src-5.8.0/qtbase/configure -top-level -prefix /Users/username/qt-install-5.8 0 -opensource -debug-and-release

看起來你在這裏有好幾處有錯別字。而不是「qt-install-5.8.0」,你得到了「qt-install-5.8 0」,它被shell解釋爲兩個不同的參數(「qt-install-5.8」和「0」),配置腳本正確地抱怨「0」不是一個有效的參數。

+0

謝謝傑里米弗里斯納。我必須承認這是一個愚蠢的錯誤,並感謝你的時間。 – qtProgrammer