One or two things towards gettings it working on Linux.
At least now it _attempts_ to build the example :)
This commit is contained in:
parent
58355da40b
commit
25898425f5
@ -40,7 +40,7 @@ SET(QT_USE_QTGUI 1)
|
||||
SET(QT_USE_QTOPENGL 1)
|
||||
INCLUDE(${QT_USE_FILE})
|
||||
|
||||
IF (WIN32)
|
||||
#IF (WIN32)
|
||||
FIND_PACKAGE(OpenGL REQUIRED)
|
||||
|
||||
#NOTE: In Windows I haven't had much luck getting the FindGLUT script to work correctly.
|
||||
@ -65,4 +65,4 @@ IF (WIN32)
|
||||
)
|
||||
|
||||
ADD_DEPENDENCIES(OpenGLExample PolyVoxCore) #This shouldn't be needed
|
||||
ENDIF (WIN32)
|
||||
#ENDIF (WIN32)
|
@ -4,7 +4,7 @@
|
||||
#ifdef WIN32
|
||||
#include "glew/glew.h"
|
||||
#else
|
||||
#include <gl/gl.h> // The GL Header File
|
||||
#include <GL/gl.h> // The GL Header File
|
||||
#endif
|
||||
|
||||
#include <QGLWidget>
|
||||
|
@ -9,7 +9,9 @@
|
||||
|
||||
#include "OpenGLWidget.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h> // Standard Header For Most Programs
|
||||
#endif
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user