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 compilation error
Qt 6.11 is out! See what's new in the release blog

CMake compilation error

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 2.4k 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.
  • U Offline
    U Offline
    usimoncic
    wrote on last edited by
    #1

    I want to build one project (ParaView) using Qt creator+MSVC2010 in Win 7. The project uses CMake. I am able to build the project with CMake-gui and MSVC2010 Express. I am also able to build Examples (that are not using CMake) in Qt Creator.

    However, when trying to build the Paraview in QT Creator, I get the error below; the error occurs when pressing "Run CMake" in second step of CMake Wizard. Anybody knows what I have to set in Qt Creator or CMake in order to build the Paraview or perhaps any other project using CMake?

    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_CXX_COMPILER_ENV_VAR
    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_CXX_COMPILER
    CMake Error: Could not find cmake module file:C:/pw/ParaView-v4.0.1-source-build/CMakeFiles/2.8.11.2/CMakeCXXCompiler.cmake
    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_C_COMPILER_ENV_VAR
    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_C_COMPILER
    CMake Error: Could not find cmake module file:C:/pw/ParaView-v4.0.1-source-build/CMakeFiles/2.8.11.2/CMakeCCompiler.cmake
    CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
    -- Configuring incomplete, errors occurred!

    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