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. GCC-15 currently issues assembler errors (probably the Boost Library).
- 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
./bootstrapand./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
releasefrom 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 adebugdirectory instead for disambiguation)
- Run
maketo build the project - Create
app.propertiesin the build directory, filled with the following properties:
- serverPort=2001
- dbHostName=localhost
- dbPort=3306
- dbUser=
- dbPass=
- dbName=
- Run the server. From the
releasedirectory the command is./AWCustomServer/Server(assumingapp.propertiesis in thereleasefolder)
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.