CMake compilation error



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.