이 링크 는이 질문과 관련이 있습니다.
apt-get 버전을 사용하는 대신 소스에서 향상을 컴파일 할 수도 있습니다.
인수 --layout
, threading
그리고 build-type
의지에 도움이됩니다.
--layout=<layout> Determines whether to choose library names
and header locations such that multiple
versions of Boost or multiple compilers can
be used on the same system.
versioned - Names of boost binaries
include the Boost version number, name and
version of the compiler and encoded build
properties. Boost headers are installed in a
subdirectory of <HDRDIR> whose name contains
the Boost version number.
tagged -- Names of boost binaries include the
encoded build properties such as variant and
threading, but do not including compiler name
and version, or Boost version. This option is
useful if you build several variants of Boost,
using the same compiler.
system - Binaries names do not include the
Boost version number or the name and version
number of the compiler. Boost headers are
installed directly into <HDRDIR>. This option
is intended for system integrators who are
building distribution packages.
The default value is 'versioned' on Windows, and
'system' on Unix.
따라서 다음 명령을 사용하여 boost를 설치하십시오 bootstrap.sh --prefix=/path/of/yours
.
./b2 install -j16 threading=multi --layout=tagged --build-type=complete
그런 다음 모든 -mt
라이브러리를 얻습니다 .
libboost-thread-dev
설치되어 있습니까?