|
From: James H. <ja...@al...> - 2022-08-23 14:57:06
|
Hi Alan, On Tuesday, 23 August 2022 10:26:46 BST Alan Teeder wrote: > It does not compile here with Microsoft Visual Studio Community 2019, > Version 16.11.18 Sorry about that. Does the following patch fix it for you? Feels a bit wrong that you have to magically know what to include before openxr_platform.h in the presence of future extensions, but the xr_dependencies.h header in the openxr sdk appears to be internal to the loader. Thanks James diff --git a/3rdparty/osgXR/src/OpenXR/GraphicsBindingWin32.h b/3rdparty/osgXR/src/OpenXR/GraphicsBindingWin32.h index d7ed1e643..ce2e71abf 100644 --- a/3rdparty/osgXR/src/OpenXR/GraphicsBindingWin32.h +++ b/3rdparty/osgXR/src/OpenXR/GraphicsBindingWin32.h @@ -9,6 +9,7 @@ #include "GraphicsBinding.h" #include <osgViewer/api/Win32/GraphicsWindowWin32> +#include <unknwn.h> #define XR_USE_GRAPHICS_API_OPENGL #define XR_USE_PLATFORM_WIN32 > > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(511,100): error C2061: syntax error: identifier 'IUnknown' > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(512,128): error C2061: syntax error: identifier 'IUnknown' > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(539,13): error C2143: syntax error: missing ';' before '*' > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(539,13): error C4430: missing type specifier - int assumed. Note: C++ > does not support default-int > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(539,49): error C2238: unexpected token(s) preceding ';' > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(540,13): error C2143: syntax error: missing ';' before '*' > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(540,13): error C4430: missing type specifier - int assumed. Note: C++ > does not support default-int > 29>D:\fg\windows-3rd-party\msvc140\3rdparty.x64\include\openxr/openxr_platfo > rm.h(540,43): error C2238: unexpected token(s) preceding ';' > > Alan > > > > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel |