Skip to content

Commit a32dcde

Browse files
committed
Update vendored copy of QGLViewer to version 2.9.1
This is needed for Qt6 support. Signed-off-by: Timo Röhling <timo.roehling@fkie.fraunhofer.de>
1 parent 7d80acd commit a32dcde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+12542
-11707
lines changed

octovis/src/extern/QGLViewer/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

octovis/src/extern/QGLViewer/CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is libQGLViewer version 2.6.3. Packaged on July 10, 2015.
1+
This is libQGLViewer version 2.9.1.
22

33
The complete change log is available in doc/changeLog.html
44

octovis/src/extern/QGLViewer/INSTALL

Lines changed: 0 additions & 20 deletions
This file was deleted.

octovis/src/extern/QGLViewer/ImageInterface.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,16 @@
242242
</spacer>
243243
</item>
244244
<item>
245-
<widget class="QPushButton" name="okButton">
245+
<widget class="QPushButton" name="cancelButton">
246246
<property name="text">
247-
<string>OK</string>
247+
<string>Cancel</string>
248248
</property>
249249
</widget>
250250
</item>
251251
<item>
252-
<widget class="QPushButton" name="cancelButton">
252+
<widget class="QPushButton" name="okButton">
253253
<property name="text">
254-
<string>Cancel</string>
254+
<string>OK</string>
255255
</property>
256256
</widget>
257257
</item>

octovis/src/extern/QGLViewer/LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,4 +1037,4 @@ Public License instead of this License. But first, please read
10371037

10381038
-------------------------------------------------------------------------
10391039

1040-
The QGLViewer library is Copyright (C) 2002-2014 Gilles Debunne.
1040+
The QGLViewer library is Copyright (C) 2002-2023 Gilles Debunne.

octovis/src/extern/QGLViewer/QGLViewer.pro

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
TEMPLATE = lib
88
TARGET = QGLViewer
9-
VERSION = 2.6.3
9+
VERSION = 2.9.1
1010
CONFIG *= qt opengl warn_on shared thread create_prl rtti no_keywords
1111

12-
QGL_HEADERS = qglviewer.h \
12+
QGL_HEADERS = \
13+
qglviewer.h \
1314
camera.h \
1415
manipulatedFrame.h \
1516
manipulatedCameraFrame.h \
@@ -22,7 +23,8 @@ QGL_HEADERS = qglviewer.h \
2223
domUtils.h \
2324
config.h
2425

25-
SOURCES = qglviewer.cpp \
26+
SOURCES = \
27+
qglviewer.cpp \
2628
camera.cpp \
2729
manipulatedFrame.cpp \
2830
manipulatedCameraFrame.cpp \
@@ -42,9 +44,12 @@ TRANSLATIONS = qglviewer_fr.ts
4244

4345
QT *= xml opengl
4446

45-
contains ( $$[QT_VERSION], "^5.*" ) {
47+
equals (QT_MAJOR_VERSION, 5) {
4648
QT *= gui widgets
4749
}
50+
equals (QT_MAJOR_VERSION, 6) {
51+
QT *= gui widgets openglwidgets
52+
}
4853

4954
!isEmpty( QGLVIEWER_STATIC ) {
5055
CONFIG *= staticlib
@@ -117,12 +122,24 @@ unix {
117122
PREFIX_=$${PREFIX}
118123
}
119124
isEmpty( LIB_DIR ) {
120-
LIB_DIR_ = $${PREFIX_}/lib
125+
macx|darwin-g++ {
126+
LIB_DIR_ = /Library/Frameworks
127+
} else {
128+
LIB_DIR_ = $${PREFIX_}/lib
129+
}
121130
} else {
122131
LIB_DIR_ = $${LIB_DIR}
123132
}
124133
isEmpty( INCLUDE_DIR ) {
125-
INCLUDE_DIR_ = $${PREFIX_}/include
134+
macx|darwin-g++ {
135+
isEmpty( PREFIX ) {
136+
INCLUDE_DIR_ = $${PWD}/Library/Developer/Headers
137+
} else {
138+
INCLUDE_DIR_ = $${PREFIX}/Headers
139+
}
140+
} else {
141+
INCLUDE_DIR_ = $${PREFIX_}/include
142+
}
126143
} else {
127144
INCLUDE_DIR_ = $${INCLUDE_DIR}
128145
}
@@ -147,6 +164,18 @@ unix {
147164
# GLU is part of the OpenGL framework
148165
} else {
149166
QMAKE_LIBS_OPENGL *= -lGLU
167+
168+
isEmpty( NO_QT_VERSION_SUFFIX ) {
169+
equals (QT_MAJOR_VERSION, 4) {
170+
TARGET = $$join(TARGET,,,-qt4)
171+
}
172+
equals (QT_MAJOR_VERSION, 5) {
173+
TARGET = $$join(TARGET,,,-qt5)
174+
}
175+
equals (QT_MAJOR_VERSION, 6) {
176+
TARGET = $$join(TARGET,,,-qt6)
177+
}
178+
}
150179
}
151180

152181
MOC_DIR = .moc
@@ -193,18 +222,28 @@ unix {
193222

194223
# "make install" configuration options
195224
INSTALLS *= target include documentation docImages docRefManual
225+
226+
# "make uninstall" for all targets
227+
target.uninstall = @echo "uninstall"
228+
include.uninstall = @echo "uninstall"
229+
documentation.uninstall = @echo "uninstall"
230+
docImages.uninstall = @echo "uninstall"
231+
docRefManual.uninstall = @echo "uninstall"
196232
}
197233

198234

199235
# -------------------
200236
# -- M a c O S X --
201237
# -------------------
202238
macx|darwin-g++ {
203-
# This setting creates a Mac framework. Comment out this line to create a dylib instead.
239+
# Default setting creates a Mac framework. Comment out this line to create a dylib instead.
204240
!staticlib: CONFIG *= lib_bundle
205241

206242
include.files *= qglviewer.icns
207243

244+
# Or whatever exists in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
245+
#QMAKE_MAC_SDK = macosx10.15
246+
208247
lib_bundle {
209248
FRAMEWORK_HEADERS.version = Versions
210249
# Should be $$replace(TRANSLATIONS, .ts, .qm), but 'replace' is only available in Qt 4.3

octovis/src/extern/QGLViewer/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
l i b Q G L V i e w e r
33

4-
Version 2.6.3. Packaged on July 10, 2015
4+
Version #VERSION#. Packaged on #DATE#
55

66

7-
Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
8-
http://www.libqglviewer.com
7+
Copyright (C) 2002-2023 Gilles Debunne. All rights reserved.
8+
#WEBURL#
99
Send e-mail to contact@libqglviewer.com
1010

1111

octovis/src/extern/QGLViewer/VRender/AxisAlignedBox.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
/****************************************************************************
2424
25-
Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
25+
Copyright (C) 2002-2023 Gilles Debunne. All rights reserved.
2626
27-
This file is part of the QGLViewer library version 2.6.3.
27+
This file is part of the QGLViewer library version 2.9.1.
2828
2929
http://www.libqglviewer.com - contact@libqglviewer.com
3030

0 commit comments

Comments
 (0)