SOLVED: Application can't start
-
wrote on 26 Jul 2013, 12:12 last edited by
Hello,
I got a "file not recognized: file truncated...main.o error" whenever I tried to build my app and I deleted the debug and release directories so Qt could build from scratch. Qt was finally able to build, but the app can't run after building. Please advise on how to go about it.Thanks in advance
-
Hi,
Without any error message it would be only guessing so:
- What OS are you working on ?
- Which version of Qt are you using ?
- What compiler are you using ?
- What error message do you get ?
-
wrote on 26 Jul 2013, 13:49 last edited by
Maybe a problem with the kits? Or your trying to run a debug application outside a debugger environment. As SGalst said, more info please.
-
wrote on 26 Jul 2013, 14:19 last edited by
OS platform: Windows 7 64-bit
Qt version: 5.0.1
Compiler: MinGW 4.7 32-bit
Build Errors: NoneAdditional info
I have been monitoring the application from task manager. Before this problem, the application's process would run on 34mb of memory. But when I start Qt and build, it appears in the task manager processes and disappears when it reaches around 13mb of memory without showing up on the desktop. When I build for the second or third time it doesn't even show up in the task manager processes -
Does it also happen with a default constructed application ? (new project -> Qt GUI application and just build and run)
-
wrote on 26 Jul 2013, 22:16 last edited by
No, it doesn't happen with any other or default project. Just on this project only
-
wrote on 27 Jul 2013, 16:00 last edited by
It worked Eventually
Thanks guys -
Can you share what the problem was ? That might be useful to others
-
wrote on 27 Jul 2013, 19:40 last edited by
I copied all the dlls files needed into the release directory. So the app builds and runs. But it can't run alone without Qt. It terminates with Qt5Core.dll as the Fault Module
-
Do you mean starting from QtCreator or directly in the folder containing your executable ?
-
wrote on 27 Jul 2013, 20:16 last edited by
Starting from QtCreator works fine. It terminates with the error when I start the executable directly
-
wrote on 27 Jul 2013, 20:22 last edited by
It actually sounds weird, I thought it would be the executable working fine but its the other way round
-
When you are starting your application outside of QtCreator, the same rules applies as in the "deployment":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html documentation
1/13