I tried to build the hadoop source code on my laptop(Windows 7), the Maven build job encountered an error. the detailed information as below:
[exec] CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindPa
ckageHandleStandardArgs.cmake:148 (message):
[exec] Could NOT fi-- Configuring incomplete, errors occurred!
[exec] See also "C:/cygwin64/home/jding27/hadoop-2.7.1-src/hadoop-common-pr
oject/hadoop-cond ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
[exec] Call Stack (most recent call first):
[exec] C:/Program Files/CMake/share/cmake-3.6mmon/target/native/CMakeFile
s/CMakeOutput.log".
[exec] /Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MES
SAGE)
[exec] C:/Program Files/CMake/share/cmake-3.6/Modules/FindZLIB.cmake:124
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
[exec] CMakeLists.txt:107 (find_package)
[exec]
[exec]
[INFO] ------------------------------------------------------------------------
I have already configured the Windows System Environment variables below:
ZLIB_INCLUDE_DIR=C:\zlib128\include
ZLIB_LIBRARY=C:\zlib128\lib\zdll.lib
Those errors are not referring to environment variables, but to CMake variables that it was not able to determine. If you have ZLib not in Program Files you have to tell CMake where to find it with ZLIB_ROOT. Call
cmake -D ZLIB_ROOT:PATH=C:\zlib128 ....
Reference
FindZLIB CMake Module Documentation
Related
I'm trying to build solc from source, but I keep getting this error
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by "boost_filesystem"
(requested version 1.74.0) with any of the following names:
boost_filesystemConfig.cmake
boost_filesystem-config.cmake
Add the installation prefix of "boost_filesystem" to CMAKE_PREFIX_PATH or
set "boost_filesystem_DIR" to a directory containing one of the above
files. If "boost_filesystem" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
/usr/local/lib/python3.9/dist-packages/cmake/data/share/cmake-3.18/Modules/FindBoost.cmake:448 (find_package)
cmake/EthDependencies.cmake:40 (find_package)
CMakeLists.txt:42 (include)
I installed the AWS SDK for C++ on my Ubuntu box using the instructions given in the Amazon doc:
https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/setup.html
I was able to compile the SDK without error.
Then I followed the README for building the examples, for C++. when I run Cmake I get the following error:
CMake Error at CMakeLists.txt:15 (find_package):
By not providing "FindAWSSDK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "AWSSDK", but
CMake did not find one.
Could not find a package configuration file provided by "AWSSDK" with any
of the following names:
AWSSDKConfig.cmake
awssdk-config.cmake
Add the installation prefix of "AWSSDK" to CMAKE_PREFIX_PATH or set
"AWSSDK_DIR" to a directory containing one of the above files. If "AWSSDK"
provides a separate development package or SDK, be sure it has been
installed.
However AWSSDKConfig.cmake is definitely on my system:
$ locate AWSSDKConfig.cmake
/home/robert/Documents/GitHub/aws-sdk-cpp/cmake/AWSSDKConfig.cmake
So I tried adding the path to the configuration file directly using the CMake CMAKE_PREFIX_PATH command line argument:
sudo cmake -D CMAKE_PREFIX_PATH="/home/robert/Documents/GitHub/aws-sdk-cpp/cmake/" /home/robert/Documents/GitHub/aws-doc-sdk-examples/cpp/example_code/dynamodb
But then I get this set of error messages:
CMake Error at /home/robert/Documents/GitHub/aws-sdk-cpp/cmake/AWSSDKConfig.cmake:27 (include):
include could not find load file:
/home/robert/Documents/GitHub/aws-sdk-cpp/cmake/AWSSDKConfigVersion.cmake
Call Stack (most recent call first):
CMakeLists.txt:15 (find_package)
CMake Error at /home/robert/Documents/GitHub/aws-sdk-cpp/cmake/AWSSDKConfig.cmake:29 (include):
include could not find load file:
/home/robert/Documents/GitHub/aws-sdk-cpp/cmake/platformDeps.cmake
Call Stack (most recent call first):
CMakeLists.txt:15 (find_package)
CMake Error at /home/robert/Documents/GitHub/aws-sdk-cpp/cmake/AWSSDKConfig.cmake:86 (message):
AWS SDK for C++ is missing, please install it first
Call Stack (most recent call first):
CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/robert/Documents/GitHub/aws-doc-sdk-examples-build/dynamodb/CMakeFiles/CMakeOutput.log".
I figure I must be doing something fundamentally wrong at this point. How can I make this work?
This is the error which I am facing with:
-- Building for: Visual Studio 15 2017
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeDetermineSystem.cmake:174 (file):
file failed to open for writing (No such file or directory):
C:/Users/nEW u/Desktop/shogun_stable/shogun/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
CMakeLists.txt:27 (project)
CMake Error: Could not open file for write in copy operation C:/Users/nEW u/Desk top/shogun_stable/shogun/build/CMakeFiles/3.13.4/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeDetermineSys tem.cmake:186 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:27 (project)
CMake Error at CMakeLists.txt:27 (project):
Failed to make directory:
C:/Users/nEW u/Desktop/shogun_stable/shogun/build/CMakeFiles/3.13.4
-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: C:/Users/nEW u/Desktop/shogun_stable/sh ogun/build/CMakeCache.txt.tmp
CMake Error: : System Error: No such file or directory
CMake Error: Unable to open cache file for save. C:/Users/nEW u/Desktop/shogun_s table/shogun/build/CMakeCache.txt
CMake Error: : System Error: No such file or directory
I got WebRTC native package by following this https://webrtc.org/native-code/development/ and depot_tools at C:\depot_tools location. Then wanted to try this https://github.com/aisouard/libwebrtc to make development process easier but while following steps for windows at cmake -G "Visual Studio 14 2015 Win64" step i get error
CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
Could NOT find Git (missing: GIT_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.12/Modules/FindGit.cmake:83 (find_package
_handle_standard_args)
CMakeLists.txt:11 (find_package)
I would appreciate any help.
I'm trying to compile CGAL 4.5 on cygwin (windows 7). i have gcc-core, gcc-g++ and gmp installed but when i try to run cmake i get following error:
$ cmake .
-- The CXX compiler identification is GNU 4.8.3
CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeCXXCompiler.cmake
-- The C compiler identification is GNU 4.8.3
CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeCCompiler.cmake
CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15 (message):
CMake no longer defines WIN32 on Cygwin!
(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.
(2) If you are developing this project, add the line
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:7 (project)
CMake Error: Could not find cmake module file:/home/metalab/CGAL-4.5/CMakeFiles/2.8.11.2/CMakeRCCompiler.cmake
-- Check for working CXX compiler: /usr/bin/c++.exe
CMake Error at /usr/share/cmake-2.8.11.2/Modules/CMakeTestCXXCompiler.cmake:40 (try_compile):
Unknown extension ".cxx" for file
/home/metalab/CGAL-4.5/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
try_compile() works only for enabled languages. Currently these are:
C CXX RC
See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
-- Check for working CXX compiler: /usr/bin/c++.exe -- broken
CMake Error at /usr/share/cmake-2.8.11.2/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test
program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred!
i already tried playing with CMAKE_LEGACY_CYGWIN_WIN32 but no success.
I ran in a similar error. cmake seemed to not be able to find anything from Cygwin.
The fact is that you need to run the Cygwin version of cmake. If you installed cmake from an installer and it went under C:\Program Files, you have the wrong cmake and it won't find most everything which it should otherwise find.