scarsty / kys-cpp

《金庸群侠传》c++复刻版,已完工
BSD 3-Clause "New" or "Revised" License
2.57k stars 370 forks source link

运行时SDL_assert(renderer && renderer->magic == &renderer_magic)断言失败 #38

Closed Dachuan-Liu closed 3 years ago

Dachuan-Liu commented 3 years ago

大神好,我按照文档编译成功,但但运行时断言失败: 金庸群侠传SDL错误弹窗 金庸群侠传SDL错误详细信息 IDE:VS19 Community 第三方库:均使用vcpkg安装,其中由于vcpkg设置问题(https://github.com/Microsoft/vcpkg/commit/3d8ba3e775c13816f4c298ba16b8094e2affc4dd)而手动添加SDL2.lib与SDL2main.lib所在目录

烦请指点,不胜感激~

Dachuan-Liu commented 3 years ago

问题解决了,手动添加SDL2.lib与SDL2main.lib所在目录与编译模式不匹配,vcpkg的release库在vcpkg\installed\x64-windows\lib,debug库在vcpkg\installed\x64-windows\debug\lib。 大家引以为戒啊!(┬_┬)