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

生成的exe文件可以正常运行,但在VS下直接打开却无法正常运行 #23

Closed
TSaber7 opened this issue Apr 5, 2022 · 18 comments
Labels
bug Something isn't working

Comments

@TSaber7
Copy link

TSaber7 commented Apr 5, 2022

目前通过 #14 这里提到的设置Vulkan Configurator的方法可以正常运行bin下的exe文件,以及\build\source\editor\Release下通过vs编译生成的exe文件,但在vs下直接运行PilotEditor项目却无法正常运行
image
输出如下调试信息
image

@hyv1001 hyv1001 added the bug Something isn't working label Apr 5, 2022
@MikeXuQ
Copy link

MikeXuQ commented Apr 6, 2022

我也遇到了一个类似的,debug模式无法启动,release模式可以启动
image

@EoralMilk
Copy link

vs2019 在debug模式生成的exe无法启动,release可以启动

@hanyangl5
Copy link

@EoralMilk @MikeXuQ Have you installed Vulkan SDK? Vulkan validation layer is enabled in debug mode, It requires Vulkan SDK installed.

@metoor
Copy link

metoor commented Apr 7, 2022

@EoralMilk @MikeXuQ Have you installed Vulkan SDK? Vulkan validation layer is enabled in debug mode, It requires Vulkan SDK installed.

您好,我也遇到这个问题了,请问下有Vulkan SDK下载链接吗?

@ShenMian
Copy link
Contributor

ShenMian commented Apr 7, 2022

@metoor https://vulkan.lunarg.com/sdk/home, 如果没安装需要安装一下, 否则是没有 validation layers 的.

@MikeXuQ
Copy link

MikeXuQ commented Apr 7, 2022

@v4vendeta Thanks a lot!

@metoor
Copy link

metoor commented Apr 7, 2022

@ShenMian 好的,多谢啦~

@jj391
Copy link

jj391 commented Apr 7, 2022

装完vulkan SDK还是不行啊。debug还是运行不了。
5e1d60dc6738fc231503f547f8f76572

@WenjianShao
Copy link

装完vulkan SDK还是不行啊。debug还是运行不了。 5e1d60dc6738fc231503f547f8f76572

我也是碰到这个问题,release下是可以的,但是debug下,会crash到这里

@metoor
Copy link

metoor commented Apr 8, 2022

@jj391 安装的时候有个调式的库的可选项,记得勾选一下对应平台,我安装完就没问题了

@SynTime
Copy link

SynTime commented Apr 8, 2022

是不是vsc没有配置好vulkan

@jj391
Copy link

jj391 commented Apr 8, 2022

@jj391 安装的时候有个调式的库的可选项,记得勾选一下对应平台,我安装完就没问题了

可以了。谢谢啊

@WenjianShao
Copy link

@jj391 安装的时候有个调式的库的可选项,记得勾选一下对应平台,我安装完就没问题了

可以了。谢谢啊

为什么我安装了,勾选调试的可选项,还是不行,请问有什么其他需要配置的吗
企业微信截图_20220415101846

@Junking1
Copy link

Junking1 commented Jul 6, 2022

遇到问题:Debug模式下,可以生成,但是无法启动,报错:VS All_BUILD 无法启动,拒绝访问。
Debug模式下生成输出:13>PilotEditor.vcxproj -> F:\Games\104\Piccolo\build\source\editor\Debug\PilotEditor.exe
测试1:VS环境下,Release模式可以生成,可以启动。
测试2:非VS环境下,Release生成的exe文件可以直接运行
测试3:非VS环境下,Debug生成的exe文件可以直接运行

综上,应该是VS在Debug模式下的启动项出现错误。
在把Engine/PilotEditor设为启动项目

问题解决。

@ShenMian
Copy link
Contributor

ShenMian commented Jul 6, 2022

@Junking1 请问你使用的是 6204072 (v0.0.3) 提交后的版本吗? ( 9b8a3bf )
按照现在 CMakeLists.txt 的配置, 生成的 Visual Studio 工程文件(.sln) 应该会自动将启动项目选为 PiccoloEditor(之前是 PilotEditor).

@Junking1
Copy link

Junking1 commented Jul 6, 2022

@Junking1 请问你使用的是 6204072 (v0.0.3) 提交后的版本吗? ( 9b8a3bf ) 按照现在 CMakeLists.txt 的配置, 生成的 Visual Studio 工程文件(.sln) 应该会自动将启动项目选为 PiccoloEditor(之前是 PilotEditor).

V0.0.1:70c8c0b82cbc422136efa61e174c7772205fc61c

@ShenMian
Copy link
Contributor

ShenMian commented Jul 6, 2022

@Junking1 那么这个问题已经解决了, 切换到较新的版本即可 :D

@TSaber7 TSaber7 closed this as completed Jul 6, 2022
@Junking1
Copy link

Junking1 commented Jul 6, 2022

@Junking1 那么这个问题已经解决了, 切换到较新的版本即可 :D

hhh,好的,我还在从原始版本开始看

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

12 participants