2

エラー:

..\..\corelib\tools\qlocale_tools.cpp: In function 'char* qdtoa(double, int, int
, int*, int*, char**, char**)':
..\..\corelib\tools\qlocale_tools.cpp:2257:25: error: '_MCW_EM' was not declared
 in this scope
..\..\corelib\tools\qlocale_tools.cpp:2257:33: error: '_MCW_DN' was not declared
 in this scope
..\..\corelib\tools\qlocale_tools.cpp:2257:41: error: '_MCW_RC' was not declared
 in this scope
Makefile.Release:5718: recipe for target 'tmp/obj/release_shared/qlocale_tools.o
' failed
mingw32-make[5]: *** [tmp/obj/release_shared/qlocale_tools.o] Error 1
mingw32-make[5]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools/bootstrap'
Makefile:33: recipe for target 'release' failed
mingw32-make[4]: *** [release] Error 2
mingw32-make[4]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools/bootstrap'
Makefile:41: recipe for target 'sub-tools-bootstrap-make_first' failed
mingw32-make[3]: *** [sub-tools-bootstrap-make_first] Error 2
mingw32-make[3]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools'
Makefile:50: recipe for target 'sub-tools-make_first' failed
mingw32-make[2]: *** [sub-tools-make_first] Error 2
mingw32-make[2]: Leaving directory 'C:/qt5/2012.11/qtbase/src'
Makefile:39: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/qt5/2012.11/qtbase'
makefile:51: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2

情報:

Windows 7 x64 プロ SP1

MinGW バージョン

git の Qt5

環境変数:

C:\Python33\;C:\Perl64\site\bin;C:\Perl64\bin;C:\mingw\bin;C:\Program Files (x86)\Programming\Git\cmd;C:\Program Files ( x86)\プログラミング\Git\bin

古い環境変数:

C:\Python33\;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\ bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\SystemTools\ATI Technologies\ATI .ACE\Core-Static; C:\Program Files (x86)\Programming\Java\jre7\bin;C:\Program Files (x86)\Programming\Windows Kits\8.0\Windows Performance Toolkit\;C:\cygwin\bin\;C:\MinGW \bin\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Programming\doxygen\bin;C:\Program Files (x86)\Programming\Git\cmd;C:\Program Files (x86)\Programming\Git\bin

使用するオプションを構成します (構成は正常に機能しているようで、エラーはありません):

-debug-and-release -opensource -confirm-license -opengl デスクトップ -nomake デモ -nomake の例 -nomake テスト

make コマンド (dah): mingw32-make

これを解決する方法についての助けに感謝します!

edit1:さらに調査を行ったところ、OpenGL に関連しているようですが、これを解決する方法については何もありません。

edit2: -no-opengl で構成して mingw32-make を実行しましたが、同じエラーが発生したため、ここにさらに ides が必要です。

編集 3: この行を変更すると

_control87(oldbits, _MCW_EM|_MCW_DN|_MCW_RC);

qlocale_tools.cpp で

_control87(oldbits, MCW_EM);

このエラーが発生するまで実行されます:

c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: 見つかりません-lQt5Cored0 collect2.exe: エラー: ld が 1 つの終了ステータスを返しました

4

1 に答える 1

0

c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: 見つかりません-lQt5Cored0

これは、Qt のソース コード自体のバグが原因でした。開発者が MSVS でテストしたため、バグが Git リポジトリに忍び込みましたが、MinGW の動作が異なることに気付きませんでした。現在は修正されています(ところで、その時点でVS2012コマンドプロンプトでQt5をコンパイルできたので)。したがって、Git から最新のコードをフェッチすると、問題なく動作します。

于 2013-04-19T00:37:48.957 に答える