0
我想編譯和運行qtify項目中使用桌面組件。本項目使用看結果爲例:哪Qt environnement我安裝來編譯和運行qtify項目?
import QtQuick 2.0 // I must have Qt 5 or later
import QtDesktop 1.0 // I search an extension which compile with Qt 5.1
我剛裝的Qt 5.1.alpha今天早上,我會喜歡安裝支持QtDesktop 1.0的兼容版本的「Qt-desktop-components」。我的QtCreator版本是2.7.0。 我試圖安裝此版本的qtdesktopcomponent但是當我編譯:
`qmake && nmake install`
我得到這個錯誤:
C:\Users\Luciole\Downloads\desktop-component\qtquickcontrols>qmake && nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
f Makefile.Debug
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -DUNIC
ODE -DWIN32 -DQT_NO_EXCEPTIONS -DQT_GUI_LIB -DQT_CORE_LIB -I"." -I"C:\Users\Luci
ole\Downloads\qt-everywhere-opensource-src-5.1.0-alpha\qtbase\include" -I"C:\Use
rs\Luciole\Downloads\qt-everywhere-opensource-src-5.1.0-alpha\qtbase\include\QtG
ui" -I"C:\Users\Luciole\Downloads\qt-everywhere-opensource-src-5.1.0-alpha\qtbas
e\include\QtCore" -I".moc\debug_shared" -I"C:\Users\Luciole\Downloads\qt-everywh
ere-opensource-src-5.1.0-alpha\qtbase\mkspecs\win32-msvc2010" -Fo.obj\debug_shar
ed\ @C:\Users\Luciole\AppData\Local\Temp\nm54D2.tmp
main.cpp
tools\qmlwidget\main.cpp(43) : fatal error C1083: Cannot open include file: 'QtQ
ml': No such file or directory
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
(這COMAND在Visual Studio命令提示符(2010)使用)我PATH的值是:
C:\Users\Luciole\Downloads\qt-everywhere-opensource-src-5.1.0-alpha\qtbase\qmake;C:\Users\Luciole\Downloads\qt-everywhere-opensource-src-5.1.0-alpha\qtbase\bin;C:\Qt\qtcreator 2.7.0\bin;C:\Git\cmd;C:\Python27;C:\Ruby200;C:\Perl64\site\bin;C:\Perl64\bin;
而且我已經驗證:我沒有「QtQml.h「在我的Qt.5.1.alpha安裝。 您對此有何看法?你能幫我解決這個錯誤嗎,或者你能告訴我使用哪個版本的Qt和qtdesktopcomponent? (請與知識庫鏈接)
找到你甚至嘗試[google搜索錯誤代碼(https://www.google.com/search?q = NMAKE +%3A +致命錯誤+ + U1077&水溶液= F&OQ = NMAKE +%3A +致命錯誤+ + U1077&AQS = chrome.0.57&的SourceID =鉻&即= UTF-8)? 如果你不能解決錯誤(不是bug,這可能不是一個錯誤)我會嘗試聯繫Qtify開發者或張貼在[qtify論壇]上(http://sourceforge.net/projects/qtify/論壇)。 我不熟悉Qtify,但它聽起來像缺少一個頭文件QtQml.h是一件壞事... – Murkantilism 2013-04-09 13:41:09
挖製造文件,我想這不是引用QtQml.h,而是「QtQml」目錄,確保它在包含路徑中。我會嘗試編譯幾個小時後的qt(我一直在等待)的alpha版本,並讓你知道。 – Dasun 2013-04-12 12:20:14
@ user2261702你能告訴我你是如何編譯的?我正在嘗試3天,但徒勞無功。 即使使用msvc2010「-lpcre16未找到」,我也會得到相同的錯誤。 – pourjour 2013-04-12 21:36:04