Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[BUG REPORTED] Qt 3D Make Error



  • I am trying to build Qt 3D on Windows 8 using Qt 5.2.0 and the following worked.
    @
    call git clone git://gitorious.org/qt/qt3d.git
    cd qt3d
    qmake -recursive qt3d.pro
    @
    However, running make resulted in an error. Do you know how to correct this?

    Thanks.

    Steve
    @
    cd src/ && ( test -e Makefile || C:/Qt/Qt5.2.0/5.2.0/mingw48_32/bin/qmake C:/Projects/Test/qt3d/src/src.pro -o Makefile ) && "C:/Qt/Qt5.2.0/Tools/mingw48_32/bin/mingw32-make" -f Makefile
    mingw32-make[1]: Entering directory 'C:/Projects/Test/qt3d/src'
    cd threed/ && ( test -e Makefile || C:/Qt/Qt5.2.0/5.2.0/mingw48_32/bin/qmake C:/Projects/Test/qt3d/src/threed/threed.pro -o Makefile ) && "C:/Qt/Qt5.2.0/Tools/mingw48_32/bin/mingw32-make" -f Makefile
    mingw32-make[2]: Entering directory 'C:/Projects/Test/qt3d/src/threed'
    "C:/Qt/Qt5.2.0/Tools/mingw48_32/bin/mingw32-make" -f Makefile.Release all
    mingw32-make[3]: Entering directory 'C:/Projects/Test/qt3d/src/threed'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -fexceptions -mthreads -std=gnu++0x -frtti -Wall -Wextra -DUNICODE -DQT_BUILD_3D_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DQT_NO_EGL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I'../../include' -I'../../include/Qt3D' -I'../../include/Qt3D/5.3.0' -I'../../include/Qt3D/5.3.0/Qt3D' -I'tmp' -I'../private' -I'global' -I'painting' -I'arrays' -I'effects' -I'materials' -I'geometry' -I'viewing' -I'math3d' -I'scene' -I'scene_ai' -I'../../3rdparty/assimp' -I'../../3rdparty/assimp/code' -I'../../3rdparty/assimp/code/BoostWorkaround' -I'../../3rdparty/assimp/include' -I'../../3rdparty/assimp/include/Compiler' -I'../../3rdparty/assimp/contrib/ConvertUTF' -I'../../3rdparty/assimp/contrib/zlib' -I'../../3rdparty/assimp/contrib/irrXML' -I'../../3rdparty/assimp/contrib/unzip' -I'scene_bezier' -I'network' -I'graphicsview' -I'textures' -I'surfaces' -I'api' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtOpenGL' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtWidgets' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/5.2.0' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/5.2.0/QtGui' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtCore/5.2.0' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtCore/5.2.0/QtCore' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtCore' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtNetwork' -I'.moc/release' -I'C:/Qt/Qt5.2.0/5.2.0/mingw48_32/mkspecs/win32-g++' -o .obj/release/qglabstracteffect.o painting/qglabstracteffect.cpp
    In file included from C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/qopenglcontext.h:63:0,
    from C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/qopenglfunctions.h:57,
    from C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/QOpenGLFunctions:1,
    from ../../include/Qt3D/../../src/threed/painting/qglpainter.h:45,
    from ../../include/Qt3D/qglpainter.h:1,
    from painting/qglabstracteffect.h:45,
    from painting/qglabstracteffect.cpp:42:
    C:/Qt/Qt5.2.0/5.2.0/mingw48_32/include/QtGui/qopenglversionfunctions.h:785:43: error: expected unqualified-id before ')' token
    void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);
    ^
    Makefile.Release:3700: recipe for target '.obj/release/qglabstracteffect.o' failed
    mingw32-make[3]: *** [.obj/release/qglabstracteffect.o] Error 1
    mingw32-make[3]: Leaving directory 'C:/Projects/Test/qt3d/src/threed'
    Makefile:38: recipe for target 'release-all' failed
    mingw32-make[2]: *** [release-all] Error 2
    mingw32-make[2]: Leaving directory 'C:/Projects/Test/qt3d/src/threed'
    Makefile:40: recipe for target 'sub-threed-make_first-ordered' failed
    mingw32-make[1]: *** [sub-threed-make_first-ordered] Error 2
    mingw32-make[1]: Leaving directory 'C:/Projects/Test/qt3d/src'
    makefile:43: recipe for target 'sub-src-make_first' failed
    mingw32-make: *** [sub-src-make_first] Error 2
    @



  • For reference, I created a bug report "QTBUG-35998":https://bugreports.qt-project.org/browse/QTBUG-35998

    Steve


Log in to reply