Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
SOLVED: Application can't start
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
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 ?
Jeroentjehome 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.
OS platform: Windows 7 64-bit
Qt version: 5.0.1
Compiler: MinGW 4.7 32-bit
Build Errors: None
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)
No, it doesn't happen with any other or default project. Just on this project only
It worked Eventually
Can you share what the problem was ? That might be useful to others
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 ?
Starting from QtCreator works fine. It terminates with the error when I start the executable directly
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