File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
88option (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS "Build unit tests" ON )
99
10- find_package (Qt6 6.6 COMPONENTS Quick QuickControls2 Widgets REQUIRED)
11- set (QT_LIBS Qt6::Quick Qt6::QuickControls2 Qt6::Widgets)
10+ find_package (Qt6 6.6 COMPONENTS Quick QuickControls2 Widgets OpenGLWidgets REQUIRED)
11+ set (QT_LIBS Qt6::Quick Qt6::QuickControls2 Qt6::Widgets Qt6::OpenGLWidgets )
1212
1313if (SCRATCHCPP_PLAYER_BUILD_UNIT_TESTS)
1414 set (GTEST_DIR thirdparty/googletest)
Original file line number Diff line number Diff line change 1212#include " modularity/ioc.h"
1313#include " ui/internal/uiengine.h"
1414
15+ #ifdef Q_OS_WINDOWS
16+ #include < QOpenGLWidget>
17+ #endif
18+
1519using namespace scratchcpp ;
1620using namespace scratchcpp ::modularity;
1721
@@ -82,6 +86,10 @@ int App::run(int argc, char **argv)
8286
8387 ui::UiEngine::instance ()->setQmlEngine (&engine);
8488
89+ #ifdef Q_OS_WINDOWS
90+ QOpenGLWidget glWidget; // force dependency on OpenGL widgets
91+ #endif
92+
8593 // Run the event loop
8694 int exitCode = app.exec ();
8795
You can’t perform that action at this time.
0 commit comments