box2d、blend2d、sdl2
This is a Box2D example project that is built using CMake. Due to the differences in operating systems, CPU architecture, and platform, it is recommended that you first compile the Blend2D static library and Box2D static library that can be used on your own platform, replace the header files in the include directory and the static library in the static directory of this project, and then try to run it. If you want to use dynamic libraries, you need to remove the static directory and modify the CMake file.If you want to learn more,you can see my blog,openlearnc.cc
这是一个box2d示例项目,使用cmake构建。由于操作系统、cpu架构平台的不同,建议先编译可以在你自己的平台上使用的blend2d静态库与box2d静态库,再替换这个项目中include目录下的头文件与static目录下的静态库,然后,尝试运行。如果,你想使用动态库,需要移除static目录,修改cmake文件。你可以在blog,openlearnc.cc上学习更多。
在linux系统上,例如debian、ubuntu,执行以下命令运行:
cmake .
make
./Main