Ubuntu16.04 boost1.55,ros执行catkin_make时出现找不到boost_thread的错误,显示如下
- CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message):
- Unable to find the requested Boost libraries.
- Boost version: 1.55.0
- Boost include path: /usr/local/include
- Could not find the following Boost libraries:
- boost_thread
- 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.
借鉴网址
https://blog.csdn.net/landihao/article/details/78691981
https://blog.csdn.net/songhc1986/article/details/46324567
重新下载安装了boost1.65
-
sudo tar zxvf boost_1_65_1.tar.gz -C /opt/software
-
cd /opt/software/boost_1_65_1
-
sudo ./bootstrap.sh
-
sudo ./b2
-
sudo ./b2 install
其中,./bootstrap.sh ,执行以后,显示编译了所有的库
Performing configuration checks
- 32-bit : no
- 64-bit : yes
- arm : no
- mips1 : no
- power : no
- sparc : no
- x86 : yes
Building the Boost C++ Libraries.
- symlinks supported : yes
- C++11 mutex : no
- lockfree boost::atomic_flag : yes
- Boost.Config Feature Check: cxx11_auto_declarations : no
- Boost.Config Feature Check: cxx11_constexpr : no
- Boost.Config Feature Check: cxx11_defaulted_functions : no
- Boost.Config Feature Check: cxx11_final : no
- Boost.Config Feature Check: cxx11_hdr_mutex : no
- Boost.Config Feature Check: cxx11_hdr_tuple : no
- Boost.Config Feature Check: cxx11_lambdas : no
- Boost.Config Feature Check: cxx11_noexcept : no
- Boost.Config Feature Check: cxx11_nullptr : no
- Boost.Config Feature Check: cxx11_rvalue_references : no
- Boost.Config Feature Check: cxx11_template_aliases : no
- Boost.Config Feature Check: cxx11_thread_local : no
- Boost.Config Feature Check: cxx11_variadic_templates : no
- has_icu builds : yes
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes
- bzip2 : yes
- lzma : yes
- iconv (libc) : yes
- icu : yes
- native-atomic-int32-supported : yes
- native-syslog-supported : yes
- pthread-supports-robust-mutexes : yes
- compiler-supports-visibility : yes
- compiler-supports-ssse3 : yes
- compiler-supports-avx2 : yes
- gcc visibility : yes
- long double support : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- libbacktrace builds : yes
- addr2line builds : yes
- WinDbg builds : no
- WinDbgCached builds : no
- zlib : yes
- bzip2 : yes
- lzma : yes
Component configuration:
- atomic : building
- chrono : building
- container : building
- context : building
- coroutine : building
- date_time : building
- exception : building
- fiber : building
- filesystem : building
- graph : building
- graph_parallel : building
- iostreams : building
- locale : building
- log : building
- math : building
- metaparse : building
- mpi : building
- program_options : building
- python : building
- random : building
- regex : building
- serialization : building
- signals : building
- stacktrace : building
- system : building
- test : building
- thread : building
- timer : building
- type_erasure : building
- wave : building