3

私は長い間この問題を解決しようとしてきましたが、今は本当に解決しなければなりません (どういうわけか) :)

私はQt 5の静的バージョンを構築しようとしていますが、これは明らかに多くのチュートリアルで読んだほど簡単ではありません(明らかにQt 5用に書かれたものではなく、以前のバージョン用です)。

MinGW 4.7 を搭載した Windows 32 ビット用の Qt 5.0.1 をダウンロードしてインストールしました。で静的バージョンをビルドしようとすると

configure -static -release

その後

mingw32-make

エラーが発生します:

kernel\qplatformopenglcontext.cpp: In constructor 'QPlatformOpenGLContextPrivate
::QPlatformOpenGLContextPrivate()':
kernel\qplatformopenglcontext.cpp:85:39: error: class 'QPlatformOpenGLContextPri
vate' does not have any field named 'context'
kernel\qplatformopenglcontext.cpp: At global scope:
kernel\qplatformopenglcontext.cpp:90:1: error: 'QPlatformOpenGLContext' does not
 name a type
kernel\qplatformopenglcontext.cpp:95:1: error: 'QPlatformOpenGLContext' does not
 name a type
kernel\qplatformopenglcontext.cpp:104:1: error: 'GLuint' does not name a type
kernel\qplatformopenglcontext.cpp:109:1: error: 'QOpenGLContext' does not name a
 type
kernel\qplatformopenglcontext.cpp:115:6: error: 'QPlatformOpenGLContext' has not
 been declared
kernel\qplatformopenglcontext.cpp:115:41: error: variable or field 'setContext'
declared void
kernel\qplatformopenglcontext.cpp:115:41: error: 'QOpenGLContext' was not declar
ed in this scope
kernel\qplatformopenglcontext.cpp:115:57: error: 'context' was not declared in t
his scope
kernel\qplatformopenglcontext.cpp:121:6: error: 'QPlatformOpenGLContext' has not
 been declared
Makefile.Release:22330: recipe for target '.obj/release_static/qplatformopenglco
ntext.o' failed
mingw32-make[3]: *** [.obj/release_static/qplatformopenglcontext.o] Error 1
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.0.1/5.0.1/Src/qtbase/src/gui'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.0.1/5.0.1/Src/qtbase/src/gui'
Makefile:251: recipe for target 'sub-gui-make_first' failed
mingw32-make[1]: *** [sub-gui-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.0.1/5.0.1/Src/qtbase/src'
makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2

以前に Qt 5 でこれを行った人はいますか?

よろしくお願いします!

4

0 に答える 0