Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

X-Plane-12-VR-Window-Sample

X-Plane 12 VR window example using Cmake and Github Actions

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

VR-Window-Sample

Using VR Window Sample code from

https://developer.x-plane.com/code-sample/vr-window-sample/

Create a CMake project with GitHub Actions

Building VR-Window-Sample from source

On windows

  1. Install required software using Chocolatey using admin command prompt:

    pascal
    choco install git cmake
    choco install mingw --version 8.1.0

    You can also install the same programs manually if you prefer.

  2. Checkout and configure the project:

    pascal
    git clone https://github.com/sparker256/X-Plane-12-VR-Window-Sample.git
    cd X-Plane-12-VR-Window-Sample
    cmake -G "MinGW Makefiles" -S .\src -B .\build -DCMAKE_BUILD_TYPE=RelWithDebInfo
  3. Build the project and copy the plugin DLL into the appropriate directory:

    pascal
    cmake --build .\build
    cp .\build\win.xpl .\VR-Window-Sample\64\

On Ubuntu:

  1. Install required software:
    pascal
    sudo apt-get install -y --no-install-recommends build-essential cmake git freeglut3-dev libudev-dev libopenal-dev
  2. Checkout and configure the project:
    pascal
    git clone https://github.com/sparker256/X-Plane-12-VR-Window-Sample.git
    cd X-Plane-12-VR-Window-Sample
    cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
  3. Build the project and copy the plugin DLL into the appropriate directory:
    pascal
    cmake --build ./build
    cp ./build/lin.xpl ./VR_Window_Sample/64/

On OS X:

  1. Install XCode, Git, CMake (Homebrew can be convenient for this).
  2. Checkout and configure the project:
    pascal
    git clone https://github.com/sparker256/X-Plane-12-VR-Window-Sample.git
    cd X-Plane-12-VR-Window-Sample
    cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
  3. Build the project and copy the plugin DLL into the appropriate directory:
    pascal
    cmake --build ./build
    cp ./build/mac.xpl ./VR_Window_Sample/64/