Important: Please read the Qt Code of Conduct -

Can't build Hello World...

  • I am new to QT and I was ask to compile a project using QT 5.7.0 msvc2015_64bit version of Qt. The problem with this is I can't build my sample project "Hello World"

    Everytime I run my project I got this:
    Starting D:\Test Project\build-HelloWorld-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\debug\HelloWorld.exe...
    The program has unexpectedly finished.

    When i tried to debug it there's always a messagebox that pops up
    It says "CDB Process Terminated"

    What should I do? I can't even make a simple program using this.
    D:\File ni Faye\Test Project\build-HelloWorld-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug\debug\HelloWorld.exe crashed.

  • Lifetime Qt Champion

    @HashTagJF Can you show the code? How do you start the application: from QtCreator/VisualStudio?

  • Well I just use the codes I found here:

  • @jsulm I run it using the said version of QT.

  • If you get an exe, it means that it builds fine. If you do not get an exe but you get an compiler error, then building is a problem.

    So from what I see, you can build without an issue, but running the exe crashes.

    Most often this type of issue is due to the application loading the wrong versions of dlls that it needs. It might find other versions of platform files or even other versions of Qt. For example the application tries to load 32bit dlls instead of 64.

    Do you have other versions of Qt installed except for the MSVC 2015 64 bit?

  • @TheBadger I don't have any other qt installed in my computer.

    When I tried to run the .exe in my debug folder this is what I got.

    0_1472624239841_upload-cfae1f83-dcf8-4a1e-9657-2554c920fea0 ![0_1472624101702_upload-69b5e78f-72e0-4c38-a3d1-811a6e9d6977]
    I already tried to reinstall my qt and also my Visual studio but the problem is still the same
    I trie

  • Lifetime Qt Champion

    @HashTagJF If you try to start your application directly from Explorer it will not find the Qt libraries. You either should start it from VisualStudio or QtCreator. Or you deploy your application to create a package with all needed Qt DLLs and plug-ins:

Log in to reply