Amazon Linux (RHEL/CentOS-like)
gcc48-c++.x86_64
cmake .
CMake Warning at CMakeLists.txt:21 (message):
Building with CMake 3.0 or higher is strongly suggested; current version is
2.8.12
-- Found Git: /usr/bin/git (found version "2.13.6")
-- TARGET_ARCH not specified; inferring host OS to be platform compilation target
-- Building AWS libraries as shared objects
-- Generating linux build config
-- Building project version: 1.4.33
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_VERSION_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_VERSION_COMPILER
CMake Error: Could not find cmake module file: /home/ec2-user/aws-sdk-cpp/CMakeFiles/2.8.12.2/CMakeVERSIONCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_1.4.33_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_1.4.33_COMPILER
CMake Error: Could not find cmake module file: /home/ec2-user/aws-sdk-cpp/CMakeFiles/2.8.12.2/CMake1.4.33Compiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file: /home/ec2-user/aws-sdk-cpp/CMakeFiles/2.8.12.2/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.8.5
CMake Error: Could not find cmake module file: CMakeVERSIONInformation.cmake
CMake Error: Could not find cmake module file: CMake1.4.33Information.cmake
CMake Error: Could not find cmake module file: CMakeLANGUAGESInformation.cmake
Hi, thanks for reporting this problem to us.
Based on the error output you supplied above, you were using 2.8.12 version of CMake, which may cause problems, so it's not recommended by us.
See here:
https://github.com/aws/aws-sdk-cpp/blob/60739e5b04629bb91149296d3f84309ff741c9be/CMakeLists.txt#L18
Is that possible for you to update CMake on Amazon Linux and try again?
Ok great - it works with cmake 3.0.0. Thanks for the quick response!
One minor suggestion:
The latest version you can get through yum install is 2.8, so I had to do something like sudo rpm -Uv ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Application:/Geo/CentOS_6/x86_64/cmake-3.0.0-143.1.x86_64.rpm
So, updating the README/documentation to provide cmake version info would be helpful.
Thanks again!