在我的电脑上跑liquidfun的艰难历程
实际上还没有结束,才刚刚cmake configure完成,得到Box2D.sln
但还是想记录一下
把liquidfun装进电脑要几步?
三步
好耶,第一步完成
第二步
先去学校its上面下VS2012pro(中文版),结果安装的时候报错
听科服队长的建议下了个visual c++2012没有解决,自己搜半天没有解决,最后反馈给了its,还没有回复
于是决定去官网下,下就下了最新的2022版,这回终于能用了,就是占空间有点大。
第三步
先是觉得自己很猛,下了个源代码版本的cmake,发现看不懂
果断下载有图形化安装界面的cmake,唉
然后兴高采烈地用cmake去“create the Visual Studio solution”,结果cmake告诉我
could not find any instance of Visual Studio 2022
在Visual Studio Installer中点了一下修复,似乎就把这个问题解决了
一波已平一波又起,接下来cmake告诉我一些头文件找不到了
然后在VS Installer中卸载了Windows 10 SDK (10.0.19041.0),安装了Windows 10 SDK(10.0.20348.0),这些头文件似乎出现在我电脑上了,这个问题也没有了
又一个问题
CMake Error at CMakeLists.txt:158 (set_target_properties): set_target_properties Can not find target to add properties to: Threads::Threads
一番网上搜索无果后,我自己去修改了一下CmakeList.txt
你不是找不到Threads::Treads 吗,就跳过它吧
在加上了这里第二行到第四行代码后,cmake过了