2010-02-17 30 views
6

Wystąpił błąd podczas próby skonfigurowania Qt.Błąd instalacji Qt

Erro : 
    execute: File or path is not found (nmake) 
    execute: File or path is not found (nmake) 
    Cleaning qmake failed, return code -1 




// installion files. 
    InterBase...............no 

Sources are in..............E:\xampp\Qt\4.6 
Build is done in............E:\xampp\Qt\4.6 
Install prefix..............E:\xampp\Qt\4.6 
Headers installed to........E:\xampp\Qt\4.6\include 
Libraries installed to......E:\xampp\Qt\4.6\lib 
Plugins installed to........E:\xampp\Qt\4.6\plugins 
Binaries installed to.......E:\xampp\Qt\4.6\bin 
Docs installed to...........E:\xampp\Qt\4.6\doc 
Data installed to...........E:\xampp\Qt\4.6 
Translations installed to...E:\xampp\Qt\4.6\translations 
Examples installed to.......E:\xampp\Qt\4.6\examples 
Demos installed to..........E:\xampp\Qt\4.6\demos 

Creating qmake... 
execute: File or path is not found (nmake) 
execute: File or path is not found (nmake) 
Cleaning qmake failed, return code -1 


E:\xampp\Qt\4.6> 

Odpowiedz

8

Jeśli próbujesz budować Qt w środowisku Visual Studio, musisz upewnić się, że nmake i cl są w PATH.

Najprostszym sposobem, aby to zrobić, jest użycie programu Visual Studio Command Prompt (znalezionego np. W menu Start).

+0

Nie, nie chcę pracować z Visual Studio. Chcę tylko Qt sam. – coderex

+0

Z czym więc chcesz zbudować Qt? Musisz go jakoś skompilować, aby uzyskać pliki binarne. –

+0

jeśli chcesz sam Qt, myślę, że chcesz mingw32, który jest zawarty w open source SDK dla Windows. (Inny kompilator, nie Microsoft, ale wciąż kompilator ...) – e8johan

0

Musisz zmienić ścieżkę, aby prowadziła ona wszędzie tam, gdzie jest nmake.

0

Spróbuj dodać flagę "-make nmake" do polecenia configure.

+0

Może to działa tylko w starszych wersjach Qt; W Qt 5.7.0: "Unknown part nmake przekazywane do -make." –