一个用于 X-Plane 的 Lua 脚本插件
This is the official source code repository for the FlyWithLua plugin project.
FlyWithLua offers Lua scripting to X-Plane since X-Plane 9.
Discussions to general topics should be opened on the official forum at x-plane.org.
You will find a binary version ready to use in X-Plane 9 or 10 in the download area of x-plane.org.
You will find a binary version ready to use in X-Plane 11 only and the binary is also in the download area of x-plane.org.
The new versions are X-Plane 12 only and the binary is also in the download area of x-plane.org.
If you want to grab a most current binary, just download FlyWithLua_plugin.zip from the most recent GitHub Actions build and unpack it into your X-Plane's plugin folder.
Copyright (c) 2012 Carsten Lynker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Install required software using Chocolatey using admin command prompt:
choco install git cmake
choco install mingw --version 8.1.0You can also install the same programs manually if you prefer.
Checkout and configure the project:
git clone https://github.com/X-Friese/FlyWithLua.git
cd FlyWithLua
cmake -G "MinGW Makefiles" -S .\src -B .\build -DCMAKE_BUILD_TYPE=RelWithDebInfoBuild the project and copy the plugin DLL into the appropriate directory:
cmake --build .\build
mkdir .\FlyWithLua\win_x64
copy .\build\win.xpl .\FlyWithLua\win_x64\FlyWithLua.xplInstall required software:
sudo apt-get install -y --no-install-recommends build-essential cmake git freeglut3-dev libudev-dev libopenal-dev
Checkout and configure the project:
git clone https://github.com/X-Friese/FlyWithLua.git
cd FlyWithLua
cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfoBuild the project and copy the plugin DLL into the appropriate directory:
cmake --build ./build
mkdir ./FlyWithLua/lin_x64
cp ./build/lin.xpl ./FlyWithLua/lin_x64/FlyWithLua.xplInstall XCode, Git, CMake (Homebrew can be convenient for this).
Checkout and configure the project:
git clone https://github.com/X-Friese/FlyWithLua.git
cd FlyWithLua
cmake -S ./src -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfoBuild the project and copy the plugin DLL into the appropriate directory:
cmake --build ./build
mkdir ./FlyWithLua/mac_x64
cp ./build/mac.xpl ./FlyWithLua/mac_x64/FlyWithLua.xplHow to cross-compile FlyWithLua on Ubuntu for Windows and OS X
Note: this is documented just in case, but generally is not recommended. Using native builds and/or GitHub Actions workflow is more convenient and less prone to errors and bugs.
Install cross-compiling toolchains:
…Build FlyWithLua:
git clone https://github.com/X-Friese/FlyWithLua.git
cd FlyWithLua
# For Windows:
cmake -S ./src -B ./build-win -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=src/Toolchain-mingw-w64-x86-64.cmake
cmake --build ./build-win
# For OS X:
cmake -S ./src -B ./build-mac -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=src/Toolchain-ubuntu-osxcross-10.11.cmake -DCMAKE_FIND_ROOT_PATH=/usr/osxcross/SDK/MacOSX10.11.sdk/
cmake --build ./build-macHow to create Code Blocks Project From CmakeLists.txt File
mkdir CodeBlocksProjectscd D:\CodeBlocksProjectsgit clone https://github.com/X-Friese/FlyWithLua.gitcd FlyWithLua/srcmkdir buildcd buildcmake -G "CodeBlocks - MinGW Makefiles" ..At that point you should be able to build FlwWithLua.
How To Build Using QT Creator From the CmakeLists.txt File
mkdir QTCreatorProjectscd D:\QTCreatorProjectsgit clone https://github.com/X-Friese/FlyWithLua.gitAt that point you should be able to build FlyWithLua.
暂无开放 Issues,或尚未同步最近议题。