airfightergr / Hello-World-SDK-3

Create X-Plane Hello World SDK 3 using Cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello-World-SDK-3

CMake

Using X-Plane Hello World (SDK3) Sample code from

https://developer.x-plane.com/code-sample/hello-world-sdk-3/

Create a CMake project with GitHub Actions

Building Hello-World-SDK-3 from source

On windows

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

    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:

    git clone https://github.com/sparker256/Hello-World-SDK-3.git
    cd Hello-World-SDK-3
    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:

    cmake --build .\build
    cp .\build\win.xpl .\HelloWorldSdk3\64\
    

On Ubuntu:

  1. Install required software:

    sudo apt-get install -y --no-install-recommends build-essential cmake git freeglut3-dev libudev-dev libopenal-dev
    
    
  2. Checkout and configure the project:

    git clone https://github.com/sparker256/Hello-World-SDK-3.git
    cd Hello-World-SDK-3
    cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
    
  3. Build the project and copy the plugin DLL into the appropriate directory:

    cmake --build ./build
    cp ./build/lin.xpl ./HelloWorldSdk3/64/
    

On OS X:

  1. Install XCode, Git, CMake (Homebrew can be convenient for this).

  2. Checkout and configure the project:

    git clone https://github.com/sparker256/Hello-World-SDK-3.git
    cd Hello-World-SDK-3
    cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
    
  3. Build the project and copy the plugin DLL into the appropriate directory:

    cmake --build ./build
    cp ./build/mac.xpl ./HelloWorldSdk3/64/
    

About

Create X-Plane Hello World SDK 3 using Cmake

License:MIT License


Languages

Language:Pascal 48.5%Language:C 46.9%Language:C++ 3.9%Language:CMake 0.7%