Skip to content

Latest commit

 

History

History
91 lines (61 loc) · 2.1 KB

building-from-source.md

File metadata and controls

91 lines (61 loc) · 2.1 KB

Building from source

Learn how to build Lampray from source. When you're finished, you'll be able to mod your games using Lampray.

Step 1: Clone the repository

To clone the Lampray repository into your home directory, run the following command:

git clone [email protected]:CHollingworth/Lampray.git ~

Step 2: Install dependencies

Lampray requires the following:

Type Name
Build Tool C++
Build Tool CMake
Build Tool GCC
Build Tool ninja-build
Library libcurl4-openssl-dev
Library pkg-config
Library SDL2
System Tool 7-Zip
System Tool Zenity

Note: In most cases, Lampray can find your 7-zip installation. However, if it's located in a non-standard location, you'll need to manually set the path to 7-Zip.

You can either these dependencies manually or use the included setup script. To use the setup script, run the following command:

~/Lampray/setup.sh

If your setup is successful, you'll see the following output:

==> 💁 [ASDF] Done ✅

Step 3: Build from source

You can build Lampray by using the Lampray build script or by manually running commands.

Build script (recommended)

To build Lampray using the included build script, run the following command:

~/Lampray/build.sh

If your build is successful, you'll see the following output:

📦 Build complete

Finally, launch Lampray.

~/Lampray/Build/Lampray

Manual

To generate and configure Lampray's build files manually, run the following command:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S ./ -B ./Build

Open the newly created Build directory.

cd Build

Build the Lampray executable.

ninja

Finally, launch Lampray.

~/Lampray/Build/Lampray