My OS is Centos 7,using cmake3 3.17.3,and I use cmake to download a package.When I type
cmake3 ..
I get
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem program_options
system) (Required is at least version "1.50")
Call Stack (most recent call first):
/usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake3/Modules/FindBoost.cmake:2166 (find_package_handle_standard_args)
CMakeLists.txt:20 (find_package)
However, with
rpm -qa|grep
I can find
boost-filesystem-1.53.0-28.el7.x86_64
boost-program-options-1.53.0-28.el7.i686
boost-system-1.53.0-28.el7.x86_64
So how can I solve this problem?
Related
This is in my CMakeLists.txt:
cmake_minimum_required(VERSION 3.1.0)
project(myProject)
set(EXECUTABLE_OUTPUT_PATH ./bin/${CMAKE_BUILD_TYPE})
find_package(Boost REQUIRED COMPONENTS filesystem)
I compiled Boost 1.64.0 from source. The Boost compilation succeeded, and the filesystem headers are present in the Boost installation directory. I then pointed Boost_INCLUDE_DIR to its base folder (the one containing bootstrap and b2.exe).
I get this CMake output:
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Boost (missing: filesystem) (found version "1.64.0")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.18/Modules/FindBoost.cmake:2177 (find_package_handle_standard_args)
CMakeLists.txt:9 (find_package)
Configuring incomplete, errors occurred!
What does this mean? How can CMake "NOT find Boost", but find version 1.64.0?
I am trying to build the Amazon IoT Device SDK from here
https://github.com/aws/aws-iot-device-sdk-cpp/blob/master/Platform.md
I followed the instructions by installing all the required tools including CMake and OpenSSL. I try to build the SDK with CMake but I get this error:
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.16/Modules/FindCURL.cmake:143 (find_package_handle_standard_args)
tests/unit/CMakeLists.txt:59 (find_package)
I don't understand why I am getting this error because I have the CURL Library installed from this link:
https://curl.haxx.se/libcurl/
I also tried the solution from this question but had no luck
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on CMake
I'm compiling an open source software and in the process of satisfying the required dependencies I'm getting the following errors. The source is located here.
Sony NMOS GIT Repository
The compilation errors appears to be related to C++ Boost and OpenSSL. It appears the c++ dependencies are not available. How can I compile c++ boost from source to resolve this issue? Second I will also have to compile OPENSSL and make the library available so the dependencies can be satisfied.
[root#nmos build]# cmake .. -DCMAKE_BUILD_TYPE:STRING="<Debug-or-Release>" -DWERROR:BOOL="0" -DBUILD_SAMPLES:BOOL="0" -DBUILD_TESTS:BOOL="0"
-- Setting gcc options
-- websocketpp not found, using the embedded version
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Warning at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:577 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:963 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/share/cmake-3.12/Modules/FindBoost.cmake:1622 (_Boost_MISSING_DEPENDENCIES)
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Error at /usr/local/share/cmake-3.12/Modules/FindBoost.cmake:2048 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
cmake/cpprest_find_boost.cmake:49 (find_package)
cmake/cpprest_find_websocketpp.cmake:17 (cpprest_find_boost)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
CMake Error at /usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR) (Required is at least version "1.0.0")
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.12/Modules/FindOpenSSL.cmake:412 (find_package_handle_standard_args)
cmake/cpprest_find_openssl.cmake:44 (find_package)
cmake/cpprest_find_websocketpp.cmake:18 (cpprest_find_openssl)
src/CMakeLists.txt:68 (cpprest_find_websocketpp)
-- Configuring incomplete, errors occurred!
See also "/home/admin/cpprestsdk/Release/build/CMakeFiles/CMakeOutput.log".
See also "/home/admin/cpprestsdk/Release/build/CMakeFiles/CMakeError.log".
Feel free to post questions like this as issues on the sony/nmos-cpp GitHub issue tracker: https://github.com/sony/nmos-cpp/issues. Thanks!
I'm trying to build SuperTux using this instruction:
But CMake 3.11 fails
D:\OpenSourceProjects\SuperTux\supertux\build>cmake ..
CMake Deprecation Warning at CMakeLists.txt:49 (CMAKE_POLICY):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1
956 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindOpenAL.cmake:96 (FIND_PACK
AGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:171 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "D:/OpenSourceProjects/SuperTux/supertux/build/CMakeFiles/CMakeOutput.l
og".
I'm trying to specify BOOST_INCLUDEDIR like
SET(BOOST_INCLUDEDIR, "/dependencies64/include/boost")
but nothing changes. In CMakeOutput.log Visual studio say that building was complete. What i do wrong?
I'm trying to install and use DeepLab for a segmentation project, but when trying to configure this using CMake it is unable to find boost libraries, despite identifying boost's version and location. I've tried following advice in similar questions by manually specifying locations but still encounter the same issue. Error messages attached below. Any idea what could be causing this issue?
Thanks in advance.
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1956 (message):
Unable to find the requested Boost libraries.
Boost version: 1.65.0
Boost include path: C:/local/boost_1_65_0
Could not find the following Boost libraries:
boost_system
boost_thread
boost_filesystem
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
cmake/Dependencies.cmake:5 (find_package)
CMakeLists.txt:50 (include)
Found gflags (include: C:/Program Files/gflags/include, library: optimized;C:/Program Files/gflags/lib;debug;C:/Program Files/gflags/lib)
Found glog (include: C:/Program Files/glog/include, library: optimized;C:/Program Files/glog/lib;debug;C:/Program Files/glog/lib)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:425 (file):
file STRINGS file
"C:/Users/Benn/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include/google/protobuf/google/protobuf/stubs/common.h"
cannot be read.
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:431 (math):
math cannot parse the expression: " / 1000000": syntax error, unexpected
exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:432 (math):
math cannot parse the expression: " / 1000 % 1000": syntax error,
unexpected exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or
exp_NUMBER (2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:433 (math):
math cannot parse the expression: " % 1000": syntax error, unexpected
exp_MOD, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
Found PROTOBUF Compiler: C:/Users/Benn/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include/google/protobuf
CMake Error at cmake/ProtoBuf.cmake:19 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS
HDF5_HL_LIBRARIES HL) (found version "")
Call Stack (most recent call first):
E:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
E:/Program Files/CMake/share/cmake-3.10/Modules/FindHDF5.cmake:905 (find_package_handle_standard_args)
cmake/Dependencies.cmake:27 (find_package)
CMakeLists.txt:50 (include)
Configuring incomplete, errors occurred!