-
Notifications
You must be signed in to change notification settings - Fork 10
Building from Source
Building ARRCON from source is a relatively painless process, and is automated with git submodules.
git
-
cmake
v3.22 or newer - C Compiler:
- Windows: MSVC 17.0 or newer
-
Linux:
gcc-10
or newer -
macOS:
clang
16 or newer
(Prior to v4, the macOS version was compiled withgcc-10
)
ninja
(Credits: FelixKLG)
- XCode
- XCode Command Line Tools
Once XCode has been installed, you can install the commandline tools by runningxcode-select --install
from a terminal. -
(optional) Homebrew
Recommended for installing the prerequisites as packages from the commandline.
Once installed, you can setup all of the other prerequisites by runningbrew install llvm@16 cmake ninja
from a terminal.
Run the following commands in a terminal:
git clone https://github.com/radj307/ARRCON
cd ARRCON
git submodule update --init --recursive
cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build --config Release
The executable will be located at build/ARRCON/ARRCON
(or build/ARRCON/ARRCON.exe
on Windows).
Using your preferred terminal (or git client), cd
to a workspace directory of your choice, then enter the following commands:
-
First, we'll need a copy of the source code:
git clone https://github.com/radj307/ARRCON && cd ARRCON
-
Next we'll need to download the dependencies:
git submodule update --init --recursive
Note: If you're using Linux or macOS, you can use this command instead:git submodule update --init --recursive 307lib
-
Finally, we'll build the executable for your OS using
cmake-gui
:
Opencmake-gui
:
If you're using CMake CLI, I'll assume you already know what you're doing & won't spend time writing the same guide twice. -
Enter the path to the root
ARRCON
directory in "Where is the source code"
-
Create a build output directory:
ARRCON/out
, and enter its location in "Where to build the binaries"
-
Next, click Configure and select a compiler.
Once the configuring step is complete, you should see this message:
You can ignore any warnings that appear, so long as they aren't errors. -
Click Generate to generate the project files using your compiler.
-
Now we'll open the generated project files using whichever generator you chose in step 6.
-
Open the project and compile it using your preferred compiler.
- Switch the configuration to Release or MinSizeRel
- Then R Click on the ARRCON project in the solution explorer, and select "Build"
- The generated executable will be located in this subdirectory:
out/build/<CONFIGURATION>/ARRCON/