Skip to content

使用VS2022提示Jolt错误 #336

Answered by Ol6rin
Suceru asked this question in Q&A
Discussion options

You must be logged in to vote

使用VS直接打开文件夹的方式其实也是利用了CMake,只是用的是VS中的内置CMake。如果不做任何配置,默认使用的Generator是Ninja。Windows上目前我们没有支持使用Ninja作为Generator的情况。
如果需要使用VS内置CMake编译,可以通过Project->CMake Settings for Piccolo中的高级设置


更改CMake generator为Visual Studio 17 2022 Win64,生成VS2022的工程编译。

另外,通过这种方式配置的工程直接调试启动会因为配置文件的相对路径问题找不到资源运行失败。可以手动运行顶层bin目录下的exe然后附加到进程调试。

WIndows下的最佳开发体验我们依然推荐先运行命令行通过外部CMake生成工程之后再用VS打开工程开发。

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Ol6rin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #331 on August 31, 2022 13:15.