From 1c09d0ac9b857077028130008c584f9ab83c8198 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Thu, 28 Dec 2023 05:38:56 -0500 Subject: visit: add missing header includes needed for GUI build (#41534) --- ...issing-header-includes-for-QSurfaceFormat.patch | 76 ++++++++++++++++++++++ var/spack/repos/builtin/packages/visit/package.py | 3 + 2 files changed, 79 insertions(+) create mode 100644 var/spack/repos/builtin/packages/visit/0001-fix-missing-header-includes-for-QSurfaceFormat.patch diff --git a/var/spack/repos/builtin/packages/visit/0001-fix-missing-header-includes-for-QSurfaceFormat.patch b/var/spack/repos/builtin/packages/visit/0001-fix-missing-header-includes-for-QSurfaceFormat.patch new file mode 100644 index 0000000000..f7c6ebf432 --- /dev/null +++ b/var/spack/repos/builtin/packages/visit/0001-fix-missing-header-includes-for-QSurfaceFormat.patch @@ -0,0 +1,76 @@ +From a9f33beccc72e113d95e97b9461e39e87e356d97 Mon Sep 17 00:00:00 2001 +From: Ben Wibking +Date: Sun, 10 Dec 2023 16:42:49 -0500 +Subject: [PATCH] fix missing header includes for QSurfaceFormat + +--- + src/tools/examples/avtexamples/qtviswinExample.C | 1 + + src/tools/examples/avtexamples/qtvtkExample.C | 1 + + src/tools/examples/avtexamples/qvtkopenglExample.C | 1 + + src/tools/examples/mcurvit/main.C | 1 + + src/viewer/main/viewer.C | 1 + + 5 files changed, 5 insertions(+) + +diff --git a/src/tools/examples/avtexamples/qtviswinExample.C b/src/tools/examples/avtexamples/qtviswinExample.C +index 27c54fcd18..1b8d651c1d 100644 +--- a/src/tools/examples/avtexamples/qtviswinExample.C ++++ b/src/tools/examples/avtexamples/qtviswinExample.C +@@ -5,6 +5,7 @@ + #include + + #include ++#include + + #include // For LIB_VERSION_LE + #if LIB_VERSION_LE(VTK, 8,1,0) +diff --git a/src/tools/examples/avtexamples/qtvtkExample.C b/src/tools/examples/avtexamples/qtvtkExample.C +index 478e9842a9..41e19ff305 100644 +--- a/src/tools/examples/avtexamples/qtvtkExample.C ++++ b/src/tools/examples/avtexamples/qtvtkExample.C +@@ -5,6 +5,7 @@ + #include + + #include ++#include + + #include // For LIB_VERSION_LE + #if LIB_VERSION_LE(VTK,8,1,0) +diff --git a/src/tools/examples/avtexamples/qvtkopenglExample.C b/src/tools/examples/avtexamples/qvtkopenglExample.C +index f25cad6ed2..180c760fca 100644 +--- a/src/tools/examples/avtexamples/qvtkopenglExample.C ++++ b/src/tools/examples/avtexamples/qvtkopenglExample.C +@@ -5,6 +5,7 @@ + #include + + #include ++#include + + #include // For LIB_VERSION_LE + #if LIB_VERSION_LE(VTK, 8,1,0) +diff --git a/src/tools/examples/mcurvit/main.C b/src/tools/examples/mcurvit/main.C +index bc5a54ed73..e877cc0099 100644 +--- a/src/tools/examples/mcurvit/main.C ++++ b/src/tools/examples/mcurvit/main.C +@@ -4,6 +4,7 @@ + + #include + #include ++#include + + #include // For LIB_VERSION_LE + #if LIB_VERSION_LE(VTK, 8,1,0) +diff --git a/src/viewer/main/viewer.C b/src/viewer/main/viewer.C +index ea7e1f3768..7b0b209f46 100644 +--- a/src/viewer/main/viewer.C ++++ b/src/viewer/main/viewer.C +@@ -12,6 +12,7 @@ + + #include + #include ++#include + + #include + #include +-- +2.43.0 + diff --git a/var/spack/repos/builtin/packages/visit/package.py b/var/spack/repos/builtin/packages/visit/package.py index fa1776800c..13818e8f14 100644 --- a/var/spack/repos/builtin/packages/visit/package.py +++ b/var/spack/repos/builtin/packages/visit/package.py @@ -95,6 +95,9 @@ class Visit(CMakePackage): patch("cmake-findvtkh-3.3.patch", when="@3.3.0:3.3.2+vtkm") patch("cmake-findjpeg.patch", when="@3.1.0:3.2.2") patch("cmake-findjpeg-3.3.patch", when="@3.3.0") + # add missing QT header includes for the QSurfaceFormat class + # (needed to fix "incomplete type" compiler errors) + patch("0001-fix-missing-header-includes-for-QSurfaceFormat.patch", when="@3.3.3+gui") # Fix pthread and librt link errors patch("visit32-missing-link-libs.patch", when="@3.2") -- cgit v1.2.3-70-g09d2