Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23997

Can't run any cmake application from Qt Creator 4.12 on Windows

    XMLWordPrintable

Details

    • Windows

    Description

      After upgrading to Qt Creator from 4.11 to 4.12, I couldn't run any cmake projects anymore.

      09:23:27: Starting D:\mchiasson\Documents\build-untitled-Desktop_Qt_5_12_4_MSVC2017_64bit-Debug\untitled.exe ...
       09:23:27: The program has unexpectedly finished.
       09:23:27: The process was ended forcefully.
       09:23:27: D:\mchiasson\Documents\build-untitled-Desktop_Qt_5_12_4_MSVC2017_64bit-Debug\untitled.exe crashed.

      I noticed that there were library files in the Run Path:

      So I manually modified the Path from

      C:\Qt\5.12.4\msvc2017_64\lib\Qt5Widgetsd.lib C:\Qt\5.12.4\msvc2017_64\lib\Qt5Guid.lib C:\Qt\5.12.4\msvc2017_64\lib;C:\Qt\5.12.4\msvc2017_64\lib\Qt5Widgetsd.lib C:\Qt\5.12.4\msvc2017_64\lib\Qt5Guid.lib C:\Qt\5.12.4\msvc2017_64\bin; ... ... ...

      to:

      C:\Qt\5.12.4\msvc2017_64\lib;C:\Qt\5.12.4\msvc2017_64\bin; ...

      And now I can run the application again. Any idea why there are library files in the Run Path now in Qt Creator 4.12?

      Attachments

        1. build-untitled-Desktop_Qt_5_12_4_MSVC2017_64bit-Debug.zip
          1.03 MB
          Mathieu-Andre Chiasson
        2. image-2020-05-06-23-19-35-001.png
          16 kB
          Mathieu-Andre Chiasson
        3. image-2020-05-06-23-22-03-969.png
          63 kB
          Mathieu-Andre Chiasson
        4. libs_in_run_path.png
          68 kB
          Mathieu-Andre Chiasson
        5. untitled.zip
          2 kB
          Mathieu-Andre Chiasson

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hunger Tobias Hunger
              mchiasson Mathieu-Andre Chiasson
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes