Centos 7上的CMake和Boost错误-找不到以下Boost库

时间:2019-03-22 08:41:30

标签: boost cmake

我正在Centos 7上运行,并尝试将dropEst安装到PC。 [https://github.com/hms-dbmi/dropEst][1]

我的配置是 CentOS Linux 7 boost_1_69_0 cmake-3.14.0-rc1

运行CMake和Boost时出现以下错误。

找不到以下Boost库:

boost_filesystem boost_system boost_thread boost_unit_test_framework

这是命令的输出。

(base) [ly@localhost boost_1_69_0]$ ./b2 cxxflags="-std=c++11"
include="$LOCAL_LIBS/include/" search="$LOCAL_LIBS/lib/" link=static
threading=multi install --prefix=$LOCAL_LIBS
  

执行配置检查

- default address-model    : 64-bit (cached)
- default architecture     : x86 (cached)
- zlib                     : yes (cached)
- bzip2                    : yes (cached)
- lzma                     : yes (cached)
- zstd                     : no  (cached)
- native-atomic-int32-supported : yes (cached)
- native-syslog-supported  : yes (cached)
- pthread-supports-robust-mutexes : yes (cached)
- compiler-supports-ssse3  : yes (cached)
- compiler-supports-avx2   : yes (cached)
- has_icu builds           : yes (cached)
- lockfree boost::atomic_flag : yes (cached)
- BOOST_COMP_GNUC >= 4.3.0 : no  (cached)
     

组件配置:

- atomic                   : not building
- chrono                   : not building
- container                : not building
- context                  : not building
- contract                 : not building
- coroutine                : not building
- date_time                : not building
- exception                : not building
- fiber                    : not building
- filesystem               : building
- graph                    : not building
- graph_parallel           : not building
- iostreams                : building
- locale                   : not building
- log                      : building
- math                     : not building
- mpi                      : not building
- program_options          : not building
- python                   : not building
- random                   : not building
- regex                    : not building
- serialization            : not building
- stacktrace               : not building
- system                   : building
- test                     : building
- thread                   : building
- timer                    : not building
- type_erasure             : not building
- wave                     : not building
     

...耐心... ...耐心... ...耐心... ...耐心... ...发现   32829个目标...更新42个目标... common.copy   /home/ly/local/lib/libboost_iostreams.a gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / codecvt_error_category.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / operations.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / path.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / path_traits.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / portability.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / unique_path.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / utf8_codecvt_facet.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / windows_file_codecvt.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / error_code.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / lockpool.o gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / gregorian / greg_month.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / gregorian / greg_weekday.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / gregorian / date_generators.o gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / c_regex_traits.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / cpp_regex_traits.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / cregex.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / fileiter.o gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / icu.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / instances.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / posix_api.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / regex.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / regex_debug.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / regex_raw_buffer.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / regex_traits_defaults.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / static_mutex.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / w32_regex_traits.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / wc_regex_traits.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / wide_posix_api.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / winstances.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / usinstances.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / pthread / thread.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / pthread / once.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / future.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / chrono.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / thread_clock.o   gcc.compile.c ++   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / process_cpu_clocks.o   gcc.archive   bin.v2 / libs / log / build / gcc-4.8.5 / release / link-static / threadapi-pthread / threading-multi / visibility-hidden / libboost_log.a   common.copy /home/ly/local/lib/libboost_log.a ...更新了42个目标...

(base) [ly@localhost ~]$ cd dropEst/build
(base) [ly@localhost build]$ cmake .. && make
  

CMake错误于   /home/ly/local/share/cmake-3.14/Modules/FindBoost.cmake:2124   (消息):找不到请求的Boost库。

     

提升版本:1.69.0

     

增强包含路径:/ home / ly / boost_1_69_0

     

找不到以下Boost库:

      boost_filesystem
      boost_system
      boost_thread
      boost_unit_test_framework
     

找到了一些(但不是全部)必需的Boost库。您   可能需要安装这些附加的Boost库。   或者,将BOOST_LIBRARYDIR设置为包含以下内容的目录   Boost库或BOOST_ROOT到Boost的位置。调用堆栈   (最近通话先):CMake / deps.cmake:19(find_package)
  CMakeLists.txt:18(包括)

     

CMake / deps.cmake:34(find_package)上的CMake警告(dev):策略   未设置CMP0074:find_package使用_ROOT变量。
  运行“ cmake --help-policy CMP0074”以获取策略详细信息。使用   cmake_policy命令设置策略并禁止显示此警告。

     

CMake变量R_ROOT设置为:

/usr/lib64/R
     

出于兼容性考虑,CMake忽略了该变量。调用堆栈(大多数   最近通话优先):CMakeLists.txt:18(包括)此警告适用于   项目开发人员。使用-Wno-dev抑制它。

     

-找到R:/ usr / lib64 / R   -配置不完整,发生错误!另请参阅“ /home/ly/dropEst/build/CMakeFiles/CMakeOutput.log”。也可以看看   “ /home/ly/dropEst/build/CMakeFiles/CMakeError.log”。

0 个答案:

没有答案