使用qtcreator,选择cmake构建文件。
可能会报错:Qt: This does not seem to be a "Debug"build
解决:
点击左侧项目-编辑构建配置-添加写入CMAKE,点击左侧run-command line arguement写入"-DCMAKE_BUILD_TYPE=Debug"。
再按F5,就可以运行程序了。
解决Qt Creator CMake Debug构建问题
本文介绍如何解决在使用Qt Creator时遇到的This does not seem to be a 'Debug' build错误。通过调整CMake配置为Debug类型,可以确保项目正确地以调试模式运行。
使用qtcreator,选择cmake构建文件。
可能会报错:Qt: This does not seem to be a "Debug"build
解决:
点击左侧项目-编辑构建配置-添加写入CMAKE,点击左侧run-command line arguement写入"-DCMAKE_BUILD_TYPE=Debug"。
再按F5,就可以运行程序了。

被折叠的 条评论
为什么被折叠?