[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flightgear-devel
Subject:    Re: [Flightgear-devel] VR/OpenXR support status update
From:       James Hogan <james () albanarts ! com>
Date:       2022-02-13 15:14:17
Message-ID: CAAG0J9_GFaD_-okkX=cTjXzG2skRGyKZqD3Prgef+cge9EPxoA () mail ! gmail ! com
[Download RAW message or body]

Sorry, I messed up my resend... Here it is again:

On Sat, 12 Feb 2022 at 23:44, James Hogan <james@albanarts.com> wrote:
> 
> Hi Wayne,
> 
> sorry k9mail appears to have left out my inline replies from the html
> part of the email. will try again with gmail:
> 
> On Sat, 12 Feb 2022 at 22:04, Wayne Bragg <killaccount@cox.net> wrote:
> > Hi James H,
> > 
> > My cmake skills are non existent.
> > 
> > So in Windows I am assuming the loader is…
> > D:\FlightGearBuild\OpenXR-SDK\build\win64\src\loader\Release\openxr_loader.lib
> 
> thats the library in the build directory. it needs installing.
> inspired by build.bat on wiki i think you need to reconfigure it (or
> use cmake-gui) to set CMAKE_INSTALL_PREFIX to the install directory
> inside wherever you're building flightgear (replace %ROOT_DIR%):
> 
> cd D:\FlightGearBuild\OpenXR-SDK\build
> 
> cmake . -DCMAKE_INSTALL_PREFIX:PATH=3D%ROOT_DIR%\install
> 
> then build and install:
> 
> cmake --build . --config RelWithDebInfo --target INSTALL
> 
> then when you rebuild flightgear with commands from bat, cmake should
> find it. it should look in the install directory for something like
> lib/cmake/OpenXR/OpenXRConfig.cmake (i think, otoh), which the above
> command may have claimed to have installed in its output.
> 
> > How and where exactly do I point to this?
> > 
> > Do I set it like this?
> > 
> > set(OpenXR_DIR "D:/FlightGearBuild/OpenXR-SDK/build/win64/src/loader/Release/openxr_loader.lib")
> >  
> > Where?
> > 
> > Something like D:\FlightGearBuild\flightgear\CMakeLists.txt
> 
> don't bother with this for now, i think it can be avoided by
> installing same directory as flightgear. (if needed, it'd be nicer
> done like above for CMAKE_INSTALL_PREFIX though).
> 
> > Sorry, I have limited experience with cmake.
> > 
> > The khronos documentation was talking about using registry keys and I also \
> > noticed a target for Programs (86), but nothing was written there.
> 
> i think thats for setting the default openxr runtime. i think steamvr
> asks and does that itself.
> 
> > I'm in over my head!
> 
> i know the feeling. first time i did any development on windows in
> over a decade i think.
> 
> if it kinda works on an actual headset on windows, it may be worth me
> adding openxr-sdk as a 3rdparty lib or something so vr just works with
> fg...
> 
> cheers
> --
> James Hogan



-- 
James Hogan


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic