Skip to content

Commit

Permalink
Fix build failure in #764
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku committed Jan 30, 2022
1 parent 67b3b98 commit 76e631b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Gui/Gui.pro
Expand Up @@ -22,8 +22,13 @@ TEMPLATE = lib
CONFIG += staticlib
CONFIG += moc rcc
CONFIG += boost opengl qt cairo python shiboken pyside
QT += gui core opengl network
greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent
QT += gui core network

greaterThan(QT_MAJOR_VERSION, 4) {
QT += concurrent
} else {
QT += opengl
}

GUI_WRAPPER_DIR = Qt$${QT_MAJOR_VERSION}/NatronGui
ENGINE_WRAPPER_DIR = Qt$${QT_MAJOR_VERSION}/NatronEngine
Expand Down
7 changes: 6 additions & 1 deletion Gui/GuiFwd.h
Expand Up @@ -49,7 +49,6 @@ class QFont;
class QFontComboBox;
class QFontMetrics;
class QFrame;
class QOpenGLShaderProgram;
class QGraphicsLineItem;
class QGraphicsPolygonItem;
class QGraphicsScene;
Expand Down Expand Up @@ -95,6 +94,12 @@ class QWheelEvent;
class QWidget;
typedef boost::shared_ptr<QUndoStack> QUndoStackPtr;

#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
class QOpenGLShaderProgram;
#else
typedef QGLShaderProgram QOpenGLShaderProgram;
#endif

// Natron Gui
NATRON_NAMESPACE_ENTER
class AboutWindow;
Expand Down

0 comments on commit 76e631b

Please sign in to comment.