解决:Qt中启动错误,msg如下:The process could not be started!

问题描述:

程序无法通过 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
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值