Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Hello World Crashed using MSVC 2015 as a compiler, Help please
Forum Updated to NodeBB v4.3 + New Features

Hello World Crashed using MSVC 2015 as a compiler, Help please

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
9 Posts 3 Posters 1.5k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Anes
    wrote on last edited by
    #1

    Hello,

    I'm new in Qt, I've install Qt 5.9.2 with Qt creator 4.4.1, and I need to use MSVC 2015 as a compiler so I install visual studio 2015 and SDK for windows (I'm in Windows 10), so I've a problem of "LNK1158: cannot run 'rc.exe" and I fixed it using this solution https://forum.qt.io/topic/90839/lnk1158-cannot-run-rc-exe/2
    and now when I compile it open a little bit after it crash

    help me please
    0_1554887023162_Capture.PNG

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Run your app with debugger attached (F5), it will show you where the crash occurs.

      (Z(:^

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Anes
        wrote on last edited by
        #3

        @sierdzio thank u for ur reply
        this is what it done
        0_1554888615891_Capture.PNG

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Hm, that's bad. Can you compile any program from command line? Does it work? Perhaps your environment is not configured correctly.

          Try printing some debug messages in your main.cpp, to see where the crash occurs. Or paste your code here, otherwise I can't possibly know what crashes.

          (Z(:^

          A 1 Reply Last reply
          0
          • sierdzioS sierdzio

            Hm, that's bad. Can you compile any program from command line? Does it work? Perhaps your environment is not configured correctly.

            Try printing some debug messages in your main.cpp, to see where the crash occurs. Or paste your code here, otherwise I can't possibly know what crashes.

            A Offline
            A Offline
            Anes
            wrote on last edited by
            #5

            @sierdzio
            I solve this by copying the missing dll into debug file, this picture shows what I did 0_1554892154300_Capture.PNG

            and now I can debug and this is what it done
            0_1554892265613_Capture1.PNG

            about the code is a simple Hello world window in qml

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Hm that's a bug or bad configuration of Qt Creator. Qt Creator should automatically modify the path so that Qt libraries are found.

              (Z(:^

              A 1 Reply Last reply
              0
              • sierdzioS sierdzio

                Hm that's a bug or bad configuration of Qt Creator. Qt Creator should automatically modify the path so that Qt libraries are found.

                A Offline
                A Offline
                Anes
                wrote on last edited by
                #7

                @sierdzio yes u r right, I change PATH value to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin cuz I've a problem in rc.exe can not found, now turn it to C:\Qt\Qt5.9.2\5.9.2\msvc2015_64\bin 0_1554894349750_Capture2.PNG

                and th debug show me this error :
                0_1554894374627_Capture1.PNG
                and then close Qt automatically

                1 Reply Last reply
                0
                • hskoglundH Online
                  hskoglundH Online
                  hskoglund
                  wrote on last edited by
                  #8

                  Hi, try updating your Intel graphics driver, more here

                  A 1 Reply Last reply
                  5
                  • hskoglundH hskoglund

                    Hi, try updating your Intel graphics driver, more here

                    A Offline
                    A Offline
                    Anes
                    wrote on last edited by
                    #9

                    @hskoglund said in Hello World Crashed using MSVC 2015 as a compiler, Help please:

                    updating your Intel graphic

                    Thank you so match it works

                    1 Reply Last reply
                    1

                    • Login

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