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. CMake can't find C++ compiler inside Qt Creator; project builds successfully in terminal
Forum Updated to NodeBB v4.3 + New Features

CMake can't find C++ compiler inside Qt Creator; project builds successfully in terminal

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 2.5k 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.
  • J Offline
    J Offline
    johnglen
    wrote on last edited by
    #1

    I have set CXX and CMAKE_CXX_COMPILER to /usr/bin/g++ in the user environment. This is the correct path to the binary. I can use g++ in the command line. I have installed cmake, gcc, g++, ninja, and make. g++ is the same version that is specified in the cmake.

    Qt Creator is telling me that CXX and CMAKE_CXX_COMPILER are not set. The only qt kit I have successfully finds the C and C++ compilers.
    So what could possibly be wrong?

    This is the output of "cmake <PROJECT_NAME>" in the terminal
    The CXX compiler identification is GNU 11.2.1
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/g++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Configuring done
    -- Generating done

    Qt Creator screws up when it gets to CXX in the CMakeLists.txt, but the terminal has no problem with it.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      johnglen
      wrote on last edited by
      #2

      A system restart has fixed the issue. I am wondering why Qt Creator could not see the updated user variables after restarting Qt Creator.

      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