#491·Piccolo

win11 cmake成功,make至5%时报错

Author: lzh0715Created Mar 13, 2025Updated Mar 13, 2025
Labelsbug

Describe the bug | Bug描述

  • cmake正常,make时进度条至5%时报错(报错太长只能截取一部分)

Screenshots/Logs | 截图/日志 PS D:\Piccolo-0.0.9> cd build PS D:\Piccolo-0.0.9\build> PS D:\Piccolo-0.0.9\build> PS D:\Piccolo-0.0.9\build> cmake .. -- Building for: MinGW Makefiles -- The C compiler identification is GNU 13.1.0 -- The CXX compiler identification is GNU 13.1.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/mingw64/bin/gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/mingw64/bin/c++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for dinput.h -- Looking for dinput.h - found -- Looking for xinput.h -- Looking for xinput.h - found -- Performing Test _GLFW_HAS_DEP -- Performing Test _GLFW_HAS_DEP - Success -- Performing Test _GLFW_HAS_ASLR -- Performing Test _GLFW_HAS_ASLR - Success -- Performing Test _GLFW_HAS_64ASLR -- Performing Test _GLFW_HAS_64ASLR - Success -- 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 (12.2s) -- Generating done (0.8s) -- Build files have been written to: D:/Piccolo-0.0.9/build PS D:\Piccolo-0.0.9\build> cd .. PS D:\Piccolo-0.0.9> ls

目录: D:\Piccolo-0.0.9

Mode LastWriteTime Length Name


d----- 2022/10/22 15:55 .github d----- 2022/10/22 15:55 .gitlab d----- 2025/3/13 11:59 .vs d----- 2025/3/13 12:02 build d----- 2022/10/22 15:55 cmake d----- 2025/3/13 2:31 engine d----- 2022/10/22 15:55 scripts -a---- 2022/10/22 15:55 3746 .clang-format -a---- 2022/10/22 15:55 7276 .clang-tidy -a---- 2022/10/22 15:55 7118 .gitignore -a---- 2022/10/22 15:55 1699 build_linux.sh -a---- 2022/10/22 15:55 729 build_macos.sh -a---- 2022/10/22 15:55 74 build_windows.bat -a---- 2022/10/22 15:55 619 CMakeLists.txt -a---- 2022/10/22 15:55 1077 LICENSE -a---- 2022/10/22 15:55 5036 README.md -a---- 2022/10/22 15:55 25736 ReleaseNotes.md

PS D:\Piccolo-0.0.9> cmake --build build [ 1%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/cursor/cursor.cpp.obj [ 1%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/cursor/cursor_type.cpp.obj [ 1%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/generator/generator.cpp.obj [ 2%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/generator/reflection_generator.cpp.obj [ 2%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/generator/serializer_generator.cpp.obj [ 2%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/language_types/class.cpp.obj [ 3%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/language_types/field.cpp.obj [ 3%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/language_types/type_info.cpp.obj [ 3%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/main.cpp.obj [ 4%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/meta/meta_info.cpp.obj [ 4%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/meta/meta_utils.cpp.obj [ 4%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/parser/parser.cpp.obj [ 5%] Building CXX object engine/source/meta_parser/CMakeFiles/PiccoloParser.dir/parser/template_manager/template_manager.cpp.obj [ 5%] Linking CXX executable D:\Piccolo-0.0.9\engine\bin\PiccoloParser.exe [ 5%] Built target PiccoloParser


**** [Precompile] BEGIN


Parsing meta data for target "CMakeFiles" Parsing in D:/Piccolo-0.0.9/engine/source Parsing project file: D:/Piccolo-0.0.9/engine/bin/precompile.json Generating the Source Include file: D:/Piccolo-0.0.9/build/parser_header.h Parsing the whole project... D:/Piccolo-0.0.9/engine/source\runtime/core/base/hash.h:7:26: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime/core/base/hash.h:13:26: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/log/log_system.h:14:31: error: use of undeclared identifier 'uint8_t' D:/Piccolo-0.0.9/engine/source/runtime/core/log/log_system.h:61:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/log/log_system.h:61:25: error: use of undeclared identifier 'spdlog' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:28:33: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:33:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:34:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:35:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:36:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:37:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:38:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:39:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:40:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:41:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:42:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:43:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/function/global/global_context.h:44:9: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/json.h:3:15: error: use of undeclared identifier 'json11' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:62:33: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:62:38: error: expected class name D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:66:37: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:66:73: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:66:86: error: 'T' does not refer to a value D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:65:23: note: declared here D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:66:89: error: expected expression D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:66:92: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:76:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:77:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:78:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:79:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:80:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:81:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:82:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:84:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:84:39: error: unknown type name 'PJson' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:85:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:85:37: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:85:38: error: expected expression D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:86:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:88:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:90:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:92:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:116:45: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:118:64: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:119:59: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:119:88: error: unknown type name 'PJson' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:120:20: error: unknown type name 'PJson' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:120:51: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:122:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:135:22: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:138:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:138:40: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:138:55: error: 'FieldAccessor' does not refer to a value D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:72:15: note: declared here D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:140:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:230:27: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:281:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:283:30: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/meta/reflection/reflection.h:338:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:10:43: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:10:48: error: expected a qualified name after 'typename' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:10:48: error: expected ';' after alias declaration D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:14:38: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:71:38: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:72:38: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/random.h:99:46: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:13:44: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:13:69: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:13:72: error: no member named 'infinity' in the global namespace D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:14:45: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:14:70: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:14:73: error: no member named 'infinity' in the global namespace D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:21:44: error: use of undeclared identifier 'log' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:24:41: error: use of undeclared identifier 'FLT_EPSILON' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:25:41: error: use of undeclared identifier 'DBL_EPSILON' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:212:68: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:212:93: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:212:96: error: no member named 'epsilon' in the global namespace D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:207:48: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:208:46: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:210:50: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:213:68: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:214:72: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:223:55: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:224:49: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:225:55: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:226:49: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:227:55: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:228:49: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:231:57: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:232:67: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:237:20: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:235:28: error: no return statement in constexpr function D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:243:20: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:241:28: error: no return statement in constexpr function D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:249:20: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:247:28: error: no return statement in constexpr function D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:255:20: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source/runtime/core/math/math.h:253:28: error: no return statement in constexpr function D:/Piccolo-0.0.9/engine/source\runtime\core\math\quaternion.h:97:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\quaternion.h:129:39: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:29:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:35:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:58:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:64:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:80:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:155:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:164:13: error: use of undeclared identifier 'assert' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:179:39: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:245:28: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:431:55: error: use of undeclared identifier 'fabsf' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:431:65: error: use of undeclared identifier 'fabsf' D:/Piccolo-0.0.9/engine/source\runtime\core\math\vector3.h:431:75: error: use of undeclared identifier 'fabsf' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:13: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:38: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:41: error: no member named 'max' in the global namespace D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:48: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:73: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:76: error: no member named 'max' in the global namespace D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:83: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:108: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:30:111: error: no member named 'max' in the global namespace D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:32:14: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:32:39: error: expected '(' for function-style cast or type construction D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:32:42: error: no member named 'max' in the global namespace D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:32:50: error: use of undeclared identifier 'std' D:/Piccolo-0.0.9/engine/source\runtime\core\math\axis_aligned.h:32:75: error: expected '(' for function-styl