# DantyServer **Repository Path**: dantylee/DantyServer ## Basic Information - **Project Name**: DantyServer - **Description**: cpp 服务器 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-19 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DantyServer #### 介绍 cpp 服务器 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 基于linux平台 1. cmake -S . -B build/linux 2. cmake --build build/linux -DCMAKE_BUILD_TYPE Debug -j 8 3. bin/test_log 基于window平台 1. cmake -S . -B build/pc 2. cmake -B build/pc -DBUILD_SHARED_DANTY=OFF -DBUILD_STATIC_DANTY=ON 3. cmake --build build/pc --config Debug -j 8 #### 依赖项 - **Boost**: `boost/lexical_cast.hpp` (recommended Boost >= 1.75). On Windows install via vcpkg or set `BOOST_ROOT` to a local Boost install. 使用 vcpkg (示例): ```powershell git clone https://github.com/microsoft/vcpkg.git .\vcpkg\bootstrap-vcpkg.bat .\vcpkg\vcpkg.exe install boost:x64-windows # Configure cmake to use vcpkg toolchain cmake -S . -B build/pc -DCMAKE_TOOLCHAIN_FILE=E:\path\to\vcpkg\scripts\buildsystems\vcpkg.cmake ``` - 或者从 https://boost.org 下载并安装 Boost,然后在构建前设置环境变量 `BOOST_ROOT` 或 `BOOST_INCLUDEDIR` 指向 Boost 安装目录。 - **yaml-cpp**: 已由项目 CMake 配置尝试自动获取或使用系统安装的版本。 # 只生成 shared(Release) cmake -S . -B build/linux -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_DANTY=ON -DBUILD_STATIC_DANTY=OFF cmake --build build/linux -j 8 # 只生成 static(Debug) cmake -S . -B build/linux -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_DANTY=OFF -DBUILD_STATIC_DANTY=ON cmake --build build/linux -j 8 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)