# cct **Repository Path**: xarvie/cct ## Basic Information - **Project Name**: cct - **Description**: cct 跨平台2d渲染框架 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 11 - **Forks**: 5 - **Created**: 2022-04-16 - **Last Updated**: 2025-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 编译: ### windows使用msys2编译 ``` sh pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-ninja mingw-w64-x86_64-cmake cd ./cct/App/ mkdir build cd build cmake .. -G "Ninja" cmake --build . -j4 ./APP.exe ``` ### macOS ``` sh cd ./cct/App/ mkdir build cd build cmake .. cmake --build . -j4 ./APP ``` ### Linux 目前使用的ubuntu 20.04环境开发,其他发行自己编下有问题再说。 先决条件: ``` sh sudo apt install gcc g++ cmake ``` ``` sh cd ./cct/App/ mkdir build cd build cmake .. cmake --build . -j4 ./APP ``` ## FAQ: ``` sh error on linux: Q make[3]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libudev.so', needed by 'APP'. Stop. A sudo apt install libudev-dev Q SDL_Init error : No available video device A glxinfo | grep "OpenGL" 你的电脑未安装显卡驱动 or 虚拟机安装ubuntu 20.04.4,虚拟机会自动安装显卡驱动 ``` Q 我修改了美术文件未生效 A ./cct/App/code/main.cpp if(!hasPackData || false) 修改成true,运行后打包美术文件,修改json或着美术文件后都需要打包一次。 法律声明:github上的项目虽然国内不能访问[https://github.com/mispd/cct](https://github.com/mispd/cct) ,与本项目无关。