[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-12 23:08:15
Message-ID: 1E64526B-79A8-4DEC-B5F6-0CE0E02351A3 () albanarts ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Wayne,
On 12 February 2022 22:04:42 GMT, 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=%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), that 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.
>
> 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 it just works...
cheers
JamesH
>
> Wayne
>
> From: James Hogan
> Sent: Friday, February 11, 2022 4:55 PM
> To: Wayne Bragg; FlightGear developers discussions
> Subject: RE: [Flightgear-devel] VR/OpenXR support status update
>
>
>
> On 11 February 2022 22:50:38 GMT, James Hogan <james@albanarts.com> wrote:
> > On 11 February 2022 22:29:45 GMT, Wayne Bragg <killaccount@cox.net> wrote:
> > > Ok, in Windows I successfully built the loader, but I don't know where it put \
> > > it or how to get FG build to find it. It still is saying openXR not found.
> >
> > otoh (i only got it workingish on win without vr headset on someone elses pc at \
> > christmas), you either need to configure the loader with CMAKE_INSTALL_PREFIX \
> > matching flightgear's one, or configure flightgear with OpenXR_DIR set to the \
> > lib/cmake/OpenXR directory inside openxr-loader's CMAKE_INSTALL_PREFIX (note: it \
> > will clear OpenXR_DIR variable if not found)
>
> also, it may need explicitly installing for it to put the files in \
> CMAKE_INSTALL_PREFIX/. on linux at least "make install" lists the file paths it \
> installs.
> cheers
> James
>
[Attachment #5 (text/html)]
<!DOCTYPE html><html><body>Hi Wayne,</body></html>
_______________________________________________
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