Piccolo
Piccolo copied to clipboard
Bug Report
Describe the bug | Bug描述 Bug描述 在直接git clone之后运行build_windows.bat遇到如下错误: Piccolo\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.cpp(115,27): error C3688: 文本后缀“us”无效;未找到文文本运算符或文本运算符模板“operator """"us” [F:\forfun\Piccolo\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj] (编译源文件“../../../../../engine/3rdparty/JoltPhysics/Jolt/Core/JobSystemThreadPool.cpp”)
Piccolo\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.cpp(151,18): error C2672: “std::this_thread::sleep_for”: 未找到匹配的重载函数 [F:\forfun\Piccolo\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
(编译源文件“../../../../../engine/3rdparty/JoltPhysics/Jolt/Core/JobSystemThreadPool.cpp”)
D:\VisualStudio\VC\Tools\MSVC\14.43.34808\include\thread(222,10):
可能是“void std::this_thread::sleep_for(const std::chrono::duration<_Rep,_Period> &)”
追加:大约在1月份的时候有过编译,那个时候可以正常生成bin文件夹
请问一下问题解决了吗,遇到同样的问题了
解决了,将报错的源文件的this_thread::sleep_for(100us);修改成std::this_thread::sleep_for(std::chrono::microseconds(100));就能正常编译了
See https://github.com/BoomingTech/Piccolo/pull/496