Sonolus.h
C++ based developer toolkit for Sonolus.
Install MinGW
For Windows users, you need to manually install MinGW(g++). We have prepared a suitable MinGW zip package, which you can download from the following link: https://github.com/LittleYang0531/LittleYang0531/releases/download/g%2B%2B13/windows-x64.zip.
This package contains g++13 and includes the required dependency libraries such as libcurl, openssl, libjsoncpp, libmysqlclient, libsqlite, libz, and libzip.
Extract the package and place it in any location. Then add the bin
directory under the MinGW directory to your system environment variables.
After completing the setup, you can enter g++ -v
in the command line. If the g++ version is returned, the installation is successful.
Installation
Sonolus.h depends on Sonolus Server, which means that you need to install Sonolus Server first.
Please go to https://github.com/SonolusHaniwa/sonolus-server-cpp/releases/latest to download the pre-compiled package of Sonolus Server for your operator system.
If you are using a Linux system, you may need to install the following dependences in advance:
# For Ubuntu/Debian
sudo apt install g++ libjsoncpp-dev libmysqlclient-dev libssl-dev libsqlite3-dev libcurl4 libzip-dev -y
In subsequent sections, when entering commands, they are run in the root directory of Sonolus Server if not specified.
In the root directory of Sonolus Server, enter the following commands to pull Sonolus.h repository and compile Sonolus.h interpreter:
./sonolus synccpp
Getting Started
Enter the following command to create a new project in the root directory of Sonolus Server:
./sonolus initcpp <name>
Documentation
See Basics for basic usage for Sonolus.h.
See API for details informations for Sonolus.h API.