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 #390

Open
Assassin-Gamer opened this issue Nov 18, 2022 · 1 comment
Open

Bug Report #390

Assassin-Gamer opened this issue Nov 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Assassin-Gamer
Copy link

Describe the bug | Bug描述
编译时链接失败报1104

Steps to reproduce | 如何复现
新clone下来的文件用cmake后初次生成显示链接joit物理引擎中的joit.lib文件失败,debug和release都不行

Screenshots/Logs | 截图/日志
image
报错信息:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK1104 无法打开文件“....\3rdparty\JoltPhysics\Build\Debug\Jolt.lib” PiccoloEditor G:\github\Piccolo\build\engine\source\editor\LINK 1

Desktop | 桌面环境

  • OS: [Windows]
  • Version [ Win11]
  • CPU [Intel I7-11875H]
  • GPU [ NVidia RTX 2070]
  • Memory [16GB]
  • Compiler [ MSVC2022]

Additional context | 补充信息
我自己电脑Piccolo\engine\3rdparty\JoltPhysics\Build这个目录下并没有debug文件夹,
image
这是不是我有什么操作不懂没做,这个debug文件要怎么生成出来

@Assassin-Gamer Assassin-Gamer added the bug Something isn't working label Nov 18, 2022
@ShenMian
Copy link
Contributor

看上去是 Werror 选项导致 JPH 因编译器警告没能通过编译, 因此没生成库文件.
一个简单粗暴的解决办法是去除 engine\3rdparty\JoltPhysics\Build\CMakeLists.txt 文件第 45 行的 /WX(MSVC) 选项.

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