Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Project ERROR: Cannot run compiler 'g++'. Output (centos7)
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Cannot run compiler 'g++'. Output (centos7)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 771 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.
  • lyyaoziL Offline
    lyyaoziL Offline
    lyyaozi
    wrote on last edited by
    #1

    I installed Qt5.12.3 on centos7.When i create Qt Application project first time and build it,a bug occurs 'Project ERROR: Cannot run compiler 'g++'. Output'.
    Before this,i upgrade my gcc/g++ from 4.8.5 to 9.3.0 and set the soft link for /usr/bin.gcc/g++ 93.0 is valid.
    Does anyone know how this is caused?

    jsulmJ 1 Reply Last reply
    0
    • lyyaoziL lyyaozi

      I installed Qt5.12.3 on centos7.When i create Qt Application project first time and build it,a bug occurs 'Project ERROR: Cannot run compiler 'g++'. Output'.
      Before this,i upgrade my gcc/g++ from 4.8.5 to 9.3.0 and set the soft link for /usr/bin.gcc/g++ 93.0 is valid.
      Does anyone know how this is caused?

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

      @lyyaozi Can you run the compiler from command line and compile a simple C++ program?
      Is the Kit configured properly in QtCreator?

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

      lyyaoziL 1 Reply Last reply
      0
      • jsulmJ jsulm

        @lyyaozi Can you run the compiler from command line and compile a simple C++ program?
        Is the Kit configured properly in QtCreator?

        lyyaoziL Offline
        lyyaoziL Offline
        lyyaozi
        wrote on last edited by
        #3

        @jsulm yes,i try to compile a demo cpp with command line,it works.I configure a new compiler in kit,and i set it's path to /usr/bin

        jsulmJ 1 Reply Last reply
        0
        • lyyaoziL lyyaozi

          @jsulm yes,i try to compile a demo cpp with command line,it works.I configure a new compiler in kit,and i set it's path to /usr/bin

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

          @lyyaozi said in Project ERROR: Cannot run compiler 'g++'. Output (centos7):

          path to /usr/bin

          Including the executable? Like /usr/bin/gcc?

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

          lyyaoziL 1 Reply Last reply
          0
          • jsulmJ jsulm

            @lyyaozi said in Project ERROR: Cannot run compiler 'g++'. Output (centos7):

            path to /usr/bin

            Including the executable? Like /usr/bin/gcc?

            lyyaoziL Offline
            lyyaoziL Offline
            lyyaozi
            wrote on last edited by
            #5

            @jsulm yes,i configure the C Compiler "/usr/bin/gcc" and C++ Compiler "/usr/bin/g++buzh"

            jsulmJ 1 Reply Last reply
            0
            • lyyaoziL lyyaozi

              @jsulm yes,i configure the C Compiler "/usr/bin/gcc" and C++ Compiler "/usr/bin/g++buzh"

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

              @lyyaozi said in Project ERROR: Cannot run compiler 'g++'. Output (centos7):

              /usr/bin/g++buzh

              What is buzh? Is it a typo or part of the file name?
              Before you wrote: /usr/bin.gcc/g++ 93.0
              Can you please post what exactly the symbolic links look like and to what do they point?

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

              lyyaoziL 1 Reply Last reply
              1
              • jsulmJ jsulm

                @lyyaozi said in Project ERROR: Cannot run compiler 'g++'. Output (centos7):

                /usr/bin/g++buzh

                What is buzh? Is it a typo or part of the file name?
                Before you wrote: /usr/bin.gcc/g++ 93.0
                Can you please post what exactly the symbolic links look like and to what do they point?

                lyyaoziL Offline
                lyyaoziL Offline
                lyyaozi
                wrote on last edited by
                #7

                @jsulm thx,i think i may know how it caused under your inspiration.Maybe i should make a link from /usr/bin/g++ to /usr/bin/g++buzh.I'm going to try it now.By the way,g++buzh is a executable file generated by compiling gcc 9.3.0.

                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