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

cmake编译imgui失败 #439

Open
buctbamboo opened this issue Mar 19, 2023 · 0 comments
Open

cmake编译imgui失败 #439

buctbamboo opened this issue Mar 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@buctbamboo
Copy link

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:
1.
2.
3.
4.
5.

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.

@buctbamboo buctbamboo added the bug Something isn't working label Mar 19, 2023
@buctbamboo buctbamboo changed the title Bug Report cmake编译imgui失败 Mar 19, 2023
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

1 participant