Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't build Hello World...
Forum Update on Monday, May 27th 2025

Can't build Hello World...

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HashTagJFH Offline
    HashTagJFH Offline
    HashTagJF
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • HashTagJFH HashTagJF

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      HashTagJFH 1 Reply Last reply
      0
      • HashTagJFH Offline
        HashTagJFH Offline
        HashTagJF
        wrote on last edited by
        #3

        Well I just use the codes I found here: https://wiki.qt.io/Qt_for_Beginners
        0_1472620014882_upload-63cc95fd-e0fc-4b97-a0f6-61a085d99437

        1 Reply Last reply
        0
        • jsulmJ jsulm

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

          HashTagJFH Offline
          HashTagJFH Offline
          HashTagJF
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • TheBadgerT Offline
            TheBadgerT Offline
            TheBadger
            wrote on last edited by
            #5

            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?


            Check out my SpellChecker Plugin for Qt Creator @ https://github.com/CJCombrink/SpellChecker-Plugin

            HashTagJFH 1 Reply Last reply
            0
            • TheBadgerT TheBadger

              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?

              HashTagJFH Offline
              HashTagJFH Offline
              HashTagJF
              wrote on last edited by HashTagJF
              #6

              @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]
              (/uploads/files/1472624104167-upload-69b5e78f-72e0-4c38-a3d1-811a6e9d6977.png)
              I already tried to reinstall my qt and also my Visual studio but the problem is still the same
              I trie

              jsulmJ 1 Reply Last reply
              0
              • HashTagJFH HashTagJF

                @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]
                (/uploads/files/1472624104167-upload-69b5e78f-72e0-4c38-a3d1-811a6e9d6977.png)
                I already tried to reinstall my qt and also my Visual studio but the problem is still the same
                I trie

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @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: http://doc.qt.io/qt-5/windows-deployment.html

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved