我正在嘗試爲Qt項目構建MySQL插件。我正在按照其他地方給出的說明進行操作,但看起來由qmake生成的makefile有錯誤,並且生成DLL的nmake失敗。用於Qt 4.8.0的MySQL插件構建失敗
有沒有人有替代程序?
並沒有人知道爲什麼我們不能爲此下載MySQL DLL嗎?爲什麼每個人都必須建立它?
這是過程;
qmake "INCLUDEPATH+=c:/'Program Files'/MySQL/'Connector C 6.0.2'/include" "LIBS+=-Lc:/'Program Files'/MySQL/'Connector C 6.0.2'/lib/debug " mysql.pro
c:\QtSDK\QtSources\4.8.0\src\plugins\sqldrivers\mysql>nmake debug
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.
rc -D_DEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3
DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -fo debug\qsqlmysqld_resource.res qsqlmysqld_resource.rc
'rc' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'rc' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.
「爲什麼每個人都必須構建它?因爲不是每個人都使用Windows。發佈構建錯誤。 – cmannett85 2012-07-10 21:08:11
上面添加的步驟。謝謝! – 2012-07-11 01:36:36