问题描述:
程序无法通过 creator 运行,一直提示 The process could not be started! 错误,但直接双击可执行文件可以运行。
方法1:
I managed to fix it by:
erase all make files and debug files and also the .pro file (I had to
save the configuration of this .pro) also the ".project"
well i erase almost everything except my ".cpp" and .h" files
then
Use command line : "qmake -project" to recreate the .pro file
and rebuild everthing inside qt creator
which remade all make file and other stuff.
and it is working now. and it is now calling the right directory /debug
for the .exe
方法2:(不一定可行)
解决办法:在程序 pro 文件中贴入下列代码
debug {
DESTDIR=./debug
LIBS += -L./debug
} else:release {
DESTDIR=./release
LIBS += -L./release
}
本文解决了 Qt Creator 中无法启动程序的问题,提供了两种方法:一是清理项目并重新生成配置文件;二是修改 .pro 文件来指定正确的编译目录。
1万+

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



