-
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.
- CMake v3.22 or newer
- A C++ Compiler
- I use MSVC 17.0 on windows, and gcc 10 on Linux.
You can use any compiler you want, so long as it is compatible with C++20 features, like concepts &
constexpr
std::string
.
- I use MSVC 17.0 on windows, and gcc 10 on Linux.
You can use any compiler you want, so long as it is compatible with C++20 features, like concepts &
If you're building from source as a user, you can skip this step as the process is automated with git.
The Windows version requires an additional library:
Submodules for both are included in the repository, and will automatically be cloned in step 3.
You can use this one-liner command to quickly clone & build the project files in the current working directory.
git clone https://github.com/radj307/ARRCON && cd ARRCON && git submodule update --init --recursive && cmake -S . -B out
You can then skip to part 4.
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.
This section assumes that you are familiar with compiling C++ code, unless you're using Visual Studio.
- 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/