This is the Server for AWCustom. It is a C++ Server written principally using boost.beast.
It uses a MySQL server to persist data.
This server builds for Linux using GCC-14 or higher.
- boost (tested with 1.84.0)
- FreeImage (Not necessary for the server, but required for utilities)
- OpenSSL 1.1
- zlib (tested with 1.2.12)
- Setup Libraries
- Install Boost 1.84.0 or later
- This will require downloading of the source and building for the target environment. The defaults are fine, so from the command line it's just
./bootstrap
and./b2
.
- This will require downloading of the source and building for the target environment. The defaults are fine, so from the command line it's just
- Install OpenSSL
sudo apt install openssl
- Install FreeImage and zLib
- Install GCC-14 or later
- Run Cmake to setup build targets
- My usual setup is to make a directory
release
from the root of the project, and runcmake -DCMAKE_BUILD_TYPE=Release ..
from that directory - For debug the command is
cmake -DCMAKE_BUILD_TYPE=Debug ..
(which should be done from adebug
directory instead for disambiguation)
- Run
make
to build the project - Create
app.properties
in the build directory, filled with the following properties:
- serverPort=2001
- dbHostName=localhost
- dbPort=3306
- dbUser=
- dbPass=
- dbName=
- Run the server. From the
release
directory the command is./AWCustomServer/Server
(assumingapp.properties
is in therelease
folder)
The server will error when it tries to perform SQL operations because the server doesn't know how to setup the tables itself on the server. This will be fixed later.