-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
qwtplot3d-static-build.patch
45 lines (41 loc) · 1.24 KB
/
qwtplot3d-static-build.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/include/qwt3d_openglhelper.h b/include/qwt3d_openglhelper.h
index 0ee80de..cbecb2b 100644
--- a/include/qwt3d_openglhelper.h
+++ b/include/qwt3d_openglhelper.h
@@ -7,6 +7,7 @@
#else
#include <QtOpenGL/qgl.h>
#endif
+#include <GL/glu.h>
namespace Qwt3D
{
diff --git a/qwtplot3d.pro b/qwtplot3d.pro
index 91bcf16..92bd473 100644
--- a/qwtplot3d.pro
+++ b/qwtplot3d.pro
@@ -3,7 +3,7 @@
TARGET = qwtplot3d
TEMPLATE = lib
-CONFIG += qt warn_on opengl thread zlib debug
+CONFIG += qt warn_on opengl thread zlib
MOC_DIR = tmp
OBJECTS_DIR = tmp
INCLUDEPATH = include
@@ -12,9 +12,9 @@ DESTDIR = lib
#DESTDIR = ../../../lib
QT += opengl
-win32:TEMPLATE = vclib
-win32:CONFIG += dll exceptions
-win32:dll:DEFINES += QT_DLL QWT3D_DLL QWT3D_MAKEDLL
+win32:TEMPLATE = lib
+win32:CONFIG += static exceptions
+# win32:dll:DEFINES += QT_DLL QWT3D_DLL QWT3D_MAKEDLL
win32:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_STL
# Comment the next line, if you have zlib on your windows system
@@ -92,4 +92,4 @@ zlib {
DEFINES += GL2PS_HAVE_ZLIB
win32:LIBS += zlib.lib
unix:LIBS += -lz
-}
\ No newline at end of file
+}