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. Project ERROR: Cannot run compiler 'clang++'
QtWS25 Last Chance

Project ERROR: Cannot run compiler 'clang++'

Scheduled Pinned Locked Moved Solved General and Desktop
clang++errorwindows 10directory
3 Posts 2 Posters 2.2k 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.
  • Q Offline
    Q Offline
    qwerty11111122
    wrote on 9 Jul 2019, 13:53 last edited by aha_1980 7 Sept 2019, 15:09
    #1

    Hi All,

    This is a report on an error that has been solved so that if/when another person finds a similar problem, here is the solution.

    After working on a project for a while, the IDE stopped functioning correctly. When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.

    I am working in Windows 10 with this setup:

    0_1562680311011_QtSetup.png

    When I would try to compile the project, I would receive: Project ERROR: Cannot run compiler 'clang++'.

    I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!

    A 1 Reply Last reply 9 Jul 2019, 15:09
    1
    • Q qwerty11111122
      9 Jul 2019, 13:53

      Hi All,

      This is a report on an error that has been solved so that if/when another person finds a similar problem, here is the solution.

      After working on a project for a while, the IDE stopped functioning correctly. When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.

      I am working in Windows 10 with this setup:

      0_1562680311011_QtSetup.png

      When I would try to compile the project, I would receive: Project ERROR: Cannot run compiler 'clang++'.

      I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 9 Jul 2019, 15:09 last edited by
      #2

      @qwerty11111122 said in [SOLVED] Project ERROR: Cannot run compiler 'clang++':

      I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!

      You usually get *.pro.user.16fe832 files if you copy the project to another machine and open it there without deleting the .pro.user first. As this file is not intended to be shared, it should not be copied and not be checked into version control systems.

      When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.

      I saw this yesterday on a colleagues PC too. In his case, no MSVC compiler was installed. However, there was no error message beside "Project ERROR: Cannot run compiler 'clang++'" which made debugging a challenge.

      Qt has to stay free or it will die.

      Q 1 Reply Last reply 9 Jul 2019, 15:28
      1
      • A aha_1980
        9 Jul 2019, 15:09

        @qwerty11111122 said in [SOLVED] Project ERROR: Cannot run compiler 'clang++':

        I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!

        You usually get *.pro.user.16fe832 files if you copy the project to another machine and open it there without deleting the .pro.user first. As this file is not intended to be shared, it should not be copied and not be checked into version control systems.

        When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.

        I saw this yesterday on a colleagues PC too. In his case, no MSVC compiler was installed. However, there was no error message beside "Project ERROR: Cannot run compiler 'clang++'" which made debugging a challenge.

        Q Offline
        Q Offline
        qwerty11111122
        wrote on 9 Jul 2019, 15:28 last edited by
        #3

        @aha_1980 said in Project ERROR: Cannot run compiler 'clang++':

        You usually get *.pro.user.16fe832 files if you copy the project to another machine and open it there without deleting the .pro.user first.

        ...yes. I suppose that's a missing piece of information. The machine I developed on couldn't properly report to github, so I copied it to a flash drive.

        1 Reply Last reply
        0

        3/3

        9 Jul 2019, 15:28

        • Login

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