BoomingTech / Piccolo

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

cmake编译imgui失败 #439

Open buctbamboo opened 1 year ago

buctbamboo commented 1 year ago

Describe the bug | Bug描述 A clear and concise description of what the bug is. 编译imgui失败

C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\minwindef.h(130,1): warning C4005: “APIENTRY”: 宏重定义 (编译源文件 D:\GameEngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Piccolo\build \engine\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Piccolo\engine\3rdparty\glfw\include\GLFW/glfw3.h(123): message : 参见“APIENTRY”的前一个定义 (编译 源文件 D:\GameE ngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Piccolo\build\engine\3rdpart y\imgui.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\wingdi.h(36,1): warning C4005: “WINGDIAPI”: 宏重定义 ( 编译源文件 D:\GameEngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Piccolo\build\engine \3rdparty\imgui.vcxproj] D:\GameEngineLearn\Piccolo\engine\3rdparty\glfw\include\GLFW/glfw3.h(133): message : 参见“WINGDIAPI”的前一个定义 (编译源文件 D:\Game EngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp) [D:\GameEngineLearn\Piccolo\build\engine\3rdpar ty\imgui.vcxproj] D:\GameEngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(861,25): error C2146: 语法错误: 缺少“;”(在标识符“Wn dProcNoInputs”的前面) [D:\GameEngineLearn\Piccolo\build\engine\3rdparty\imgui.vcxproj] D:\GameEngineLearn\Piccolo\engine\3rdparty\imgui\backends\imgui_impl_glfw.cpp(862,1): error C4430: 缺少类型说明符 - 假定为 int。注意 : C++ 不支持默认 int [D:\GameEngineLearn\Piccolo\build\engine\3rdparty\imgui.vcxproj]

Steps to reproduce | 如何复现 Steps to reproduce the behavior:

Expected behavior | 预期行为 A clear and concise description of what you expected to happen.

Actual behavior | 实际行为 A clear and concise description of what actually happened.

Screenshots/Logs | 截图/日志 If applicable, add screenshots and/or a video to help explain your problem.

Desktop | 桌面环境 -- 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/Piccolo/build 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.10.2+857e5a733 版权所有(C) Microsoft Corporation。保留所有权利。

Additional context | 补充信息 Add any other context about the problem here.