mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
CameraRGBD: guard QVTKRenderWidget.h include for VTK < 9
QVTKRenderWidget.h only exists in VTK 9.0+, so the unconditional include broke the build on older VTK (e.g. Ubuntu Bionic). Wrap it in the same VTK version guard already used for the QSurfaceFormat call (and as the main rtabmap app does). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ecda4f5e81
commit
75f4fa6bd5
@@ -50,7 +50,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <QApplication>
|
||||
#include <QSurfaceFormat>
|
||||
#include <vtkVersionMacros.h>
|
||||
#if VTK_MAJOR_VERSION > 9 || (VTK_MAJOR_VERSION==9 && VTK_MINOR_VERSION >= 1)
|
||||
#include <QVTKRenderWidget.h>
|
||||
#endif
|
||||
|
||||
void showUsage(const char * executableName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user