BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.8k stars 1.81k forks source link

windows 编译失败 #70

Open buctbamboo opened 2 years ago

buctbamboo commented 2 years ago

-- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044. -- The C compiler identification is MSVC 19.29.30038.1 -- The CXX compiler identification is MSVC 19.29.30038.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.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:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- Using Win32 for window creation -- Build spdlog: 1.9.2 -- Build type: Release -- Configuring done -- Generating done -- Build files have been written to: D:/GameEngineLearn/Pilot/build 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.10.2+857e5a733 版权所有(C) Microsoft Corporation。保留所有权利。

Checking File Globs Checking Build System


**** [Precompile] BEGIN


Parsing reflection data for target "Pilot" Parsing project file: D:/GameEngineLearn/Pilot/engine/bin/precompile.json Parsing in D:/GameEngineLearn/Pilot/engine/../engine/source Generating the Source Include file: D:/GameEngineLearn/Pilot/build/parser_header.h Parsing the whole project... m_source_include_file_name D:/GameEngineLearn/Pilot/build/parser_header.h Start generate runtime schemas(30)... Completed in 513ms +++ Precompile finished +++ Building Custom Rule D:/GameEngineLearn/Pilot/engine/CMakeLists.txt Building Custom Rule D:/GameEngineLearn/Pilot/engine/3rdparty/CMakeLists.txt Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/axis.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/axis.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/axis.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/axis.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_directional_light_shadow.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_directional_light_shadow.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_directional_light_shadow.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_directional_light_shadow.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_inefficient_pick.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_inefficient_pick.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_inefficient_pick.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_inefficient_pick.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_point_light_shadow.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_point_light_shadow.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_point_light_shadow.geom.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_point_light_shadow.geom Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh_point_light_shadow.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh_point_light_shadow.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/mesh.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/mesh.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/particlebillboard.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/particlebillboard.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/particlebillboard.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/particlebillboard.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/post_process.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/post_process.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/post_process.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/post_process.vert Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/skybox.frag.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/skybox.frag Generating D:/GameEngineLearn/Pilot/engine/shader/generated/spv/skybox.vert.spv D:/GameEngineLearn/Pilot/engine/shader/glsl/skybox.vert Building Custom Rule D:/GameEngineLearn/Pilot/engine/shader/CMakeLists.txt Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/axis_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/axis_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_directional_light_shadow_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_directional_light_shadow_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_inefficient_pick_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_inefficient_pick_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_point_light_shadow_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_point_light_shadow_geom.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_point_light_shadow_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/mesh_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/particlebillboard_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/particlebillboard_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/post_process_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/post_process_vert.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/skybox_frag.h Generating D:/GameEngineLearn/Pilot/engine/shader/generated/cpp/skybox_vert.h Building Custom Rule D:/GameEngineLearn/Pilot/engine/3rdparty/glfw/src/CMakeLists.txt context.c init.c input.c monitor.c vulkan.c window.c win32_init.c win32_joystick.c win32_monitor.c win32_time.c win32_thread.c win32_window.c wgl_context.c egl_context.c osmesa_context.c glfw.vcxproj -> D:\GameEngineLearn\Pilot\build\3rdparty\glfw\src\Release\glfw3.lib Building Custom Rule D:/GameEngineLearn/Pilot/engine/3rdparty/CMakeLists.txt imgui.cpp imgui_demo.cpp imgui_draw.cpp imgui_tables.cpp imgui_widgets.cpp imgui_impl_glfw.cpp imgui_impl_vulkan.cpp C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\minwindef.h(130,1): warning C4005: “APIENTRY”: 宏重定义 (编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rd party\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译源 文件 D:\GameEng ineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxpr oj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\i mgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\GameEn gineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxp roj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“WndP rocNoInputs”的前面) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj]

hyv1001 commented 2 years ago

Seems that it's the problem of windows sdk. Could you build the glfw library standalone?

buctbamboo commented 2 years ago

Seems that it's the problem of windows sdk. Could you build the glfw library standalone?

image 这个可以单独编译成功

hyv1001 commented 2 years ago

(编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rd party\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译源 文件 D:\GameEng ineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxpr oj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\i mgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\GameEn gineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxp roj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“WndP rocNoInputs”的前面) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj]

Seems it's the imgui compile failed, could you try to compile the imgui library standalone?

buctbamboo commented 2 years ago

image bu不识别这个callback的宏

buctbamboo commented 2 years ago

(编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rd party\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译源 文件 D:\GameEng ineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxpr oj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\i mgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\GameEn gineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxp roj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“WndP rocNoInputs”的前面) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj]

Seems it's the imgui compile failed, could you try to compile the imgui library standalone?

image 不识别callback的宏

yjhgithub commented 2 years ago

(编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rd party\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译源 文件 D:\GameEng ineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxpr oj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\i mgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\GameEn gineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxp roj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“WndP rocNoInputs”的前面) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] Seems it's the imgui compile failed, could you try to compile the imgui library standalone?

image 不识别callback的宏

删除build目录,试一下重新构建工程。

buctbamboo commented 2 years ago

(编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rd party\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译源 文件 D:\GameEng ineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxpr oj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\i mgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\GameEn gineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxp roj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“WndP rocNoInputs”的前面) [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Pilot\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int [D:\GameEngineLearn\Pilot\build\3rdparty\imgui.vcxproj] Seems it's the imgui compile failed, could you try to compile the imgui library standalone?

image 不识别callback的宏

删除build目录,试一下重新构建工程。

试了,还是一样的错误

Giogiao commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。