Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report cmake -S . -B build 失败,错误信息如下 #472

Open
dongyuang opened this issue Jan 1, 2024 · 1 comment
Open

Bug Report cmake -S . -B build 失败,错误信息如下 #472

dongyuang opened this issue Jan 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dongyuang
Copy link

-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- Using Win32 for window creation
-- Build spdlog: 1.9.2
-- Build type: Release
CMake Deprecation Warning at engine/3rdparty/tinyobjloader/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done (0.2s)
-- Generating done (0.3s)
-- Build files have been written to: C:/Users/yu/Desktop/Piccolo-main/build
MSBuild version 17.6.3+07e294721 for .NET Framework

Checking File Globs
PiccoloParser.vcxproj -> C:\Users\yu\Desktop\Piccolo-main\engine\bin\PiccoloParser.exe


**** [Precompile] BEGIN


Parsing meta data for target "Piccolo"
Parsing in C:/Users/yu/Desktop/Piccolo-main/engine/source
Parsing project file: C:/Users/yu/Desktop/Piccolo-main/engine/bin/precompile.json
Generating the Source Include file: C:/Users/yu/Desktop/Piccolo-main/build/parser_header.h
Parsing the whole project...
Start generate runtime schemas(39)...
Completed in 373ms
+++ Precompile finished +++
JobSystemThreadPool.cpp
Body.cpp
BodyCreationSettings.cpp
BodyInterface.cpp
BodyManager.cpp
Character.cpp
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): error C2220: 以下警告被视为错误 (编译源文件
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.cpp) [C:\Users\yu\Desktop\Pi
ccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystem.h(52): note: 查看对正在编译的 类 模板 实例化“JPH::
RefJPH::JobSystem::Job”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemT
hreadPool.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): warning C5266: 返回类型上的 "const"
限定符不起作用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.cpp) [C:\User
s\yu\Desktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): note: 要简化迁移,请考虑暂时 对用于生成且不引发警告
的编译器版本使用 /Wv:18 标记 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.
cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(121): warning C5266: 返回类型上的 "const"
限定符不起作用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.cpp) [C:\User
s\yu\Desktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(121): note: 要简化迁移,请考虑暂时 对用于生成且不引发警告
的编译器版本使用 /Wv:18 标记 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\JobSystemThreadPool.
cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): error C2220: 以下警告被视为错误 (编译源文件
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.cpp) [C:\Users\yu\Desktop\Pi
ccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Result.h(158): note: 查看对正在编译的 类 模板 实例化“JPH::Re
fJPH::Shape”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.c
pp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Collision\Shape\Shape.h(135): note: 查看对正在编译
的 类 模板 实例化“JPH::Result<JPH::RefJPH::Shape>”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics
Jolt\Physics\Body\BodyManager.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): warning C5266: 返回类型上的 "const"
限定符不起作用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.cpp) [C:\User
s\yu\Desktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): note: 要简化迁移,请考虑暂时 对用于生成且不引发警告
的编译器版本使用 /Wv:18 标记 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.
cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(121): warning C5266: 返回类型上的 "const"
限定符不起作用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.cpp) [C:\User
s\yu\Desktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(121): note: 要简化迁移,请考虑暂时 对用于生成且不引发警告
的编译器版本使用 /Wv:18 标记 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyManager.
cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): error C2220: 以下警告被视为错误 (编译源文件
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\Body.cpp) [C:\Users\yu\Desktop\Piccolo-m
ain\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Result.h(158): note: 查看对正在编译的 类 模板 实例化“JPH::Re
fJPH::Shape”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\Body.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): error C2220: 以下警告被视为错误 (编译源文件
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyCreationSettings.cpp) [C:\Users\yu\D
esktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Result.h(158): note: 查看对正在编译的 类 模板 实例化“JPH::Re
fJPH::Shape”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\BodyCreationS
ettings.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Collision\Shape\Shape.h(135): note: 查看对正在编译
的 类 模板 实例化“JPH::Result<JPH::RefJPH::Shape>”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics
Jolt\Physics\Body\Body.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Collision\Shape\Shape.h(135): note: 查看对正在编译
的 类 模板 实例化“JPH::Result<JPH::RefJPH::Shape>”的引用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics
Jolt\Physics\Body\BodyCreationSettings.cpp)
C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Core\Reference.h(117): warning C5266: 返回类型上的 "const"
限定符不起作用 (编译源文件 C:\Users\yu\Desktop\Piccolo-main\engine\3rdparty\JoltPhysics\Jolt\Physics\Body\Body.cpp) [C:\Users\yu\De
sktop\Piccolo-main\build\engine\3rdparty\JoltPhysics\Build\Jolt.vcxproj]

@dongyuang dongyuang added the bug Something isn't working label Jan 1, 2024
@virtualRooom
Copy link

试一下这个评论的解决方法 #395 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants