No CMAKE_CXX_COMPILER could be found.

Hi,
I followed the guide from : http://ethdocs.org/en/latest/ethereum-clients/cpp-ethereum/building-from-source/windows.html#pre-requisites
But at the command:
mkdir build
cd build
cmake -G "Visual Studio 14 2015 Win64" ..
it get the following error:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:37 (project):
No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:37 (project):
No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "C:/Users/sfladi/cpp-ethereum/CMakeFiles/CMakeOutput.log".
See also "C:/Users/sfladi/cpp-ethereum/CMakeFiles/CMakeError.log".

Can anybody help me? It seems that cmake does not find the compiler - how can i configure that?

Comments

  • Wiss1616Wiss1616 Member Posts: 6
    ok i found the problem - i missed to install c++ components in Visual Studio - i can compile now but i get the following errors:

    CMake Error at cmake/EthCompilerSettings.cmake:184 (string):
    string sub-command REPLACE requires at least four arguments.
    Call Stack (most recent call first):
    utils/CMakeLists.txt:13 (include)


    CMake Error at cmake/EthCompilerSettings.cmake:185 (string):
    string sub-command REPLACE requires at least four arguments.
    Call Stack (most recent call first):
    utils/CMakeLists.txt:13 (include)


    CMake Error at cmake/EthCompilerSettings.cmake:186 (string):
    string sub-command REPLACE requires at least four arguments.
    Call Stack (most recent call first):
    utils/CMakeLists.txt:13 (include)
  • LuckyWishLuckyWish Member Posts: 1
    I had the same problem, how did you solve it? Thank you very much for helping me.
Sign In or Register to comment.