I have installed QTCreator in ubuntu 12.04 through sudo apt-get install. My problem is that QTcreator is not able to recognize the executable in debug mode, although it is running fine without debugging..when I simply run my program. The error which the QTCreator throws at me while debugging is:
s/Prog": not in executable format: File format not recognized
I can use gdb outside QtCreator. All my tool chain just shows me GCC(x86 64 bit)...is this setting fine. If not please recommend.
I had the same problem on my
Ubuntu 13.10
and what I did wassudo apt-get install gdb
and after that the debugger worked fine. What seemed strange for me, however, is that although I already hadgdb
andgdb64
in/usr/bin
,apt
didn't say thatgdb
is already installed and it installed it(maybe an upgraded version).Also check out your tool chain and make sure you're using
gdb 64-bit
if your executable is built on64-bits
.I use
Qt Creator 3.1.0
, maybe you should upgrade yourQtCreator
as well.Hope this helps.