簡體   English   中英

Qt編譯時間錯誤。 。

[英]Qt Compile Time Error . .

我是Qt的新手,我正面臨着以下錯誤。 我已經設置了所有環境變量。 我不知道問題是什么。 請幫助我。

11:44:39: Running build steps for project rabiaapp...
11:44:39: Configuration unchanged, skipping qmake step.
11:44:39: Starting: "C:\QtSDK\QtCreator\bin\jom.exe" 
    c:\QtSDK\Desktop\Qt\4.8.0\msvc2008\bin\uic.exe ..\rabiaapp\mainwindow.ui -o ui_mainwindow.h
    C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug
Error: cannot open C:\Windows\main.obj.5540.16.jom for write

jom 1.0.8 - empower your cores

jom: C:\Users\rs01\rabiaapp-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug\Makefile [debug] Error 1
11:44:39: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project rabiaapp (target: Desktop)
When executing build step 'Make'

我遇到了類似的問題。 我的TMP變量有中文字符,這使得qt創建者產生錯誤:無法打開**進行寫入。

嘗試僅使用英文字符更改您的TMP變量,不能使用空格。 確保該文件夾存在且您有權訪問它。

我的Qt版本:適用於Windows 32位的Qt 5.4.0(VS 2013,OpenGL)。 你可以在Qt Creator中設置它

在Qt Creator中設置環境變量

如果我在Projects的Build Settings頁面上選中“Clear system environment”,我可以重現這個問題。 嘗試取消選中該框。

嘗試使用nmake而不是jom,在Settings-> Build and Run - > uncheck use jom而不是nmake中應該有一個復選框。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM