SonolusHaniwa
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • 1. 概述
  • 2. ハニプレ
  • 3. ユメステ
  • 4. Stellarity
  • 5. Phigros
  • 首页

    • 1. 概述
  • 玩家

    • 2. 安装服务
    • 3. 配置文件标准
    • 4. 服务使用方法
  • 开发者

    • 5. 自定义搜索函数
    • 6. 自定义资源创建接口
    • 7. 插件开发标准
  • 其他

    • 8. 更新日志
    • 9. 关于 srp 资源包
  • 1. 搭建开发环境
  • 2. Sonolus 基础
  • 3. 配置项目信息
  • 4. 基本数据类型
  • 5. 函数与语句块
  • 6. 注意事项
  • 1. 游玩模式基础
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode
  • Index

    • 1. Introduce
  • Basics

    • 1. Index
    • 2. Types
    • 3. Statements
    • 4. Resources
    • 5. Projects
    • 6. Commands
  • API

    • Index
    • Macros
    • Builtins
    • Engine Options
    • Engine UI
    • Play Mode
    • Tutorial Mode
    • Preview Mode
    • Watch Mode

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.

最近更新: 2025/8/1 15:21
Contributors: LittleYang0531