Невозможно собрать библиотеку Boost в Windows 11.C++

Программы на C++. Форум разработчиков
Anonymous
 Невозможно собрать библиотеку Boost в Windows 11.

Сообщение Anonymous »

Я использую Windows 11 и не могу собрать библиотеку Boost C++.
Я успешно установил Microsoft Visual Sutdio 2022, скачал boost1.83.0, разархивировал его, сделал это из Microsoft Visual Studio Командная строка

Код: Выделить всё

C:\boost_1_83_0>bootstrap.bat
Building Boost.Build engine
LOCALAPPDATA=C:\Users\vboxuser\AppData\Local
Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Community
Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Community
Call_If_Exists "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\..\..\VC\Auxiliary\Build\vcvarsall.bat"  AMD64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.10.5
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
###
### Using 'vc143' toolset.
###

C:\boost_1_83_0\tools\build\src\engine>"cl" /nologo -TP /wd4996 /wd4675 /EHs /GR /Zc:throwingNew /O2 /Ob2 /W3 /MD /Zc:forScope /Zc:wchar_t /Zc:inline /Gw /favor:blend /Feb2   -DNDEBUG  builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filent.cpp filesys.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp /link kernel32.lib advapi32.lib user32.lib
builtins.cpp
class.cpp
command.cpp
compile.cpp
constants.cpp
cwd.cpp
debug.cpp
debugger.cpp
execcmd.cpp
execnt.cpp
execunix.cpp
filent.cpp
filesys.cpp
fileunix.cpp
frames.cpp
function.cpp
glob.cpp
hash.cpp
hcache.cpp
hdrmacro.cpp
Generating Code...
Compiling...
headers.cpp
jam.cpp
jamgram.cpp
lists.cpp
make.cpp
make1.cpp
md5.cpp
mem.cpp
modules.cpp
native.cpp
object.cpp
option.cpp
output.cpp
parse.cpp
pathnt.cpp
pathsys.cpp
pathunix.cpp
regexp.cpp
rules.cpp
scan.cpp
Generating Code...
Compiling...
search.cpp
jam_strings.cpp
startup.cpp
subst.cpp
sysinfo.cpp
timestamp.cpp
variable.cpp
w32_getreg.cpp
order.cpp
path.cpp
property-set.cpp
regex.cpp
sequence.cpp
set.cpp
Generating Code...

C:\boost_1_83_0\tools\build\src\engine>dir *.exe
Volume in drive C has no label.
Volume Serial Number is 1026-75B0

Directory of C:\boost_1_83_0\tools\build\src\engine

08/07/2024  12:17 AM           253,440 b2.exe
1 File(s)        253,440 bytes
0 Dir(s)  157,039,542,272 bytes free

Generating Boost.Build configuration in project-config.jam for msvc...

Bootstrapping is done.  To build, run:

.\b2

To adjust configuration, edit 'project-config.jam'.
Further information:

- Command line help:
.\b2 --help

- Getting started guide:
http://boost.org/more/getting_started/windows.html

- Boost.Build documentation:
http://www.boost.org/build/

а затем, когда я делаю b2, я получаю следующие ошибки...

Код: Выделить всё

C:\boost_1_83_0>b2.exe
Performing configuration checks

- default address-model    : none (cached) [1]
- default architecture     : none (cached) [1]

Building the Boost C++ Libraries.

- x86                      : no [2]
- arm                      : no [2]
- mips1                    : no [2]
- power                    : no [2]
- sparc                    : no [2]
- has synchronization.lib  : no [2]
error: No best alternative for libs/context/build/asm_sources with ms 32 off pe fcontext off object on linker on on off off static yes yes off NT 
on on off off abi address-model architecture binary-format toolset on on shared native off windows on win32 multi 14.3 msvc debug off hidden off on desktop
no match: aapcs 32 arm elf multi clang
no match: aapcs 32 arm elf multi gcc
no match: aapcs 32 arm elf multi qcc
no match: aapcs 32 arm mach-o multi clang
no match: aapcs 32 arm mach-o multi darwin
no match: aapcs 32 arm pe multi msvc
no match: aapcs 64 arm elf multi clang
no match: aapcs 64 arm elf multi gcc
no match: aapcs 64 arm mach-o multi clang
no match: aapcs 64 arm mach-o multi darwin
no match: aapcs 64 arm pe multi msvc
no match: sysv 64 loongarch elf multi gcc
no match: o32 32 mips elf multi clang
no match: o32 32 mips elf multi gcc
no match: n64 64 mips elf multi clang
no match: n64 64 mips elf multi gcc
no match: sysv 32 power elf multi clang
no match: sysv 32 power elf multi gcc
no match:  sysv 32 power mach-o multi clang
no match: sysv 32 power mach-o multi gcc
no match: sysv 32 power mach-o multi darwin
no match: sysv 32 power xcoff multi clang
no match: sysv 32 power xcoff multi gcc
no match: sysv 64 power elf multi clang
no match: sysv 64 power elf multi gcc
no match: sysv 64 power mach-o multi clang
no match: sysv 64 power mach-o multi gcc
no match: sysv 64 power mach-o multi darwin
no match: sysv 64 power xcoff multi clang
no match: sysv 64 power xcoff multi gcc
no match: sysv 32_64 power mach-o multi
no match: sysv 64 riscv elf multi clang
no match: sysv 64 riscv elf multi gcc
no match: sysv 64 s390x elf multi gcc
no match: sysv 64 s390x elf multi clang
no match: sysv 32 x86 elf multi clang
no match: sysv 32 x86 elf multi gcc
no match: sysv 32 x86 elf multi intel
no match: sysv 32 x86 mach-o multi clang
no match: sysv 32 x86 mach-o multi darwin
no match: ms 32 x86 pe multi clang
no match: ms 32 x86 pe multi clang-win
no match: ms 32 x86 pe multi gcc
no match: ms 32 x86 pe multi intel
no match: ms 32 x86 pe multi msvc
no match: ms 32 x86 pe multi embarcadero
no match: ms 32 x86 pe multi borland
no match: sysv 64 x86 elf multi clang
no match: sysv 64 x86 elf multi gcc
no match: sysv 64 x86 elf multi intel
no match:  sysv 64 x86 mach-o multi clang
no match: sysv 64 x86 mach-o multi gcc
no match: sysv 64 x86 mach-o multi darwin
no match: sysv 64 x86 mach-o multi intel
no match: ms 64 x86 pe multi clang
no match: ms 64 x86 pe multi clang-win
no match: ms 64 x86 pe multi gcc
no match: ms 64 x86 pe multi intel
no match: ms 64 x86 pe multi msvc
no match: ms 64 x86 pe multi embarcadero
no match: x32 32 x86 elf multi clang
no match: x32 32 x86 elf multi gcc
no match: x32 32 x86 elf multi intel
no match: sysv 32_64 x86 mach-o multi
no match: sysv arm+x86 mach-o multi
- has std::atomic_ref      : no [2]
- has statx                : no [2]
- has statx syscall        : no [2]
- has BCrypt API           : no [2]
- is Windows CE            : no [2]
- has init_priority attribute : no [2]
- has stat::st_blksize     : no [2]
- has stat::st_mtim        : no [2]
- has stat::st_mtimensec   : no [2]
- has stat::st_mtimespec   : no [2]
- has stat::st_birthtim    : no [2]
- has stat::st_birthtimensec : no [2]
- has stat::st_birthtimespec : no [2]
- has fdopendir(O_NOFOLLOW) : no [2]
- has dirent::d_type       : no [2]
- has POSIX *at APIs       : no [2]
- cxx11_auto_declarations  : no [2]
- cxx11_auto_declarations  : no [3]
- has_icu builds           : no [2]
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam.
note: to suppress this message, pass "--without-graph_parallel" to bjam.
- zlib                     : no  (cached) [4]
- bzip2                    : no  (cached) [4]
- lzma                     : no  (cached) [4]
- zstd                     : no  (cached) [4]
- has_lzma_cputhreads builds : no [2]
- cxx11_constexpr          : no [2]
- cxx11_constexpr          : no [3]
- iconv (libc)             : no [2]
- iconv (separate)         : no [2]
- icu                      : no [2]
- iconv (libc)             : no [3]
- iconv (separate)         : no [3]
- icu                      : no [3]
- native atomic int32 supported : no [2]
- mips                     : no [2]
- has message compiler     : no [2]
- native syslog supported  : no [2]
- pthread supports robust mutexes : no [2]
- gcc visibility           : no [2]
- cxx11_noexcept           : no [2]
- gcc visibility           : no [3]
- cxx11_noexcept           : no [3]
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.
warning: No python installation configured and autoconfiguration
note: failed.   See http://www.boost.org/libs/python/doc/building.html
note: for configuration instructions or pass --without-python to
note: suppress this message and silently skip all Boost.Python targets
- libbacktrace builds      : no [2]
- libbacktrace builds      : no [3]
- addr2line builds         : no [2]
- addr2line builds         : no [3]
- WinDbg builds            : no [2]
- WinDbg builds            : no [3]
- WinDbgCached builds      : no [2]
- WinDbgCached builds      : no [3]
- BOOST_COMP_GNUC >= 4.3.0 : no [2]
- x86                      : no [5]
- arm                      : no [5]
- mips1                    : no [5]
- power                    : no [5]
- sparc                    : no [5]
- has synchronization.lib  : no [5]
error: No best alternative for libs/context/build/asm_sources with ms 32 off pe fcontext off object off linker on on off full static yes yes speed NT on on off off abi address-model architecture binary-format toolset on off shared native off windows on win32 multi 14.3 msvc release off hidden off on desktop
no match: aapcs 32 arm elf multi clang
no match: aapcs 32 arm elf multi gcc
no match: aapcs 32 arm elf multi qcc
no match: aapcs 32 arm mach-o multi clang
no match: aapcs 32 arm mach-o multi darwin
no match: aapcs 32 arm pe multi msvc
no match: aapcs 64 arm elf multi clang
no match: aapcs 64 arm elf multi gcc
no match: aapcs 64 arm mach-o multi clang
no match: aapcs 64 arm mach-o multi darwin
no match: aapcs 64 arm pe multi msvc
no match: sysv 64 loongarch elf multi gcc
no match: o32 32 mips elf multi clang
no match: o32 32 mips elf multi gcc
no match: n64 64 mips elf multi clang
no match: n64 64 mips elf multi gcc
no match: sysv 32 power elf multi clang
no match: sysv 32 power elf multi gcc
no match: sysv 32 power mach-o multi clang
no match:  sysv 32 power mach-o multi gcc
no match: sysv 32 power mach-o multi darwin
no match: sysv 32 power xcoff multi clang
no match: sysv 32 power xcoff multi gcc
no match: sysv 64 power elf multi clang
no match: sysv 64 power elf multi gcc
no match: sysv 64 power mach-o multi clang
no match: sysv 64 power mach-o multi gcc
no match: sysv 64 power mach-o multi darwin
no match: sysv 64 power xcoff multi clang
no match: sysv 64 power xcoff multi gcc
no match: sysv 32_64 power mach-o multi
no match: sysv 64 riscv elf multi clang
no match: sysv 64 riscv elf multi gcc
no match: sysv 64 s390x elf multi gcc
no match: sysv 64 s390x elf multi clang
no match: sysv 32 x86 elf multi clang
no match: sysv 32 x86 elf multi gcc
no match: sysv 32 x86 elf multi intel
no match: sysv 32 x86 mach-o multi clang
no match: sysv 32 x86 mach-o multi darwin
no match: ms 32 x86 pe multi clang
no match: ms 32 x86 pe multi clang-win
no match: ms 32 x86 pe multi gcc
no match: ms 32 x86 pe multi intel
no match: ms 32 x86 pe multi msvc
no match: ms 32 x86 pe multi embarcadero
no match: ms 32 x86 pe multi borland
no match: sysv 64 x86 elf multi clang
no match: sysv 64 x86 elf multi gcc
no match: sysv 64 x86 elf multi intel
no match: sysv 64 x86 mach-o multi clang
no match:  sysv 64 x86 mach-o multi gcc
no match: sysv 64 x86 mach-o multi darwin
no match: sysv 64 x86 mach-o multi intel
no match: ms 64 x86 pe multi clang
no match: ms 64 x86 pe multi clang-win
no match: ms 64 x86 pe multi gcc
no match: ms 64 x86 pe multi intel
no match: ms 64 x86 pe multi msvc
no match: ms 64 x86 pe multi embarcadero
no match: x32 32 x86 elf multi clang
no match: x32 32 x86 elf multi gcc
no match: x32 32 x86 elf multi intel
no match: sysv 32_64 x86 mach-o multi
no match: sysv arm+x86 mach-o multi
- has std::atomic_ref      : no [5]
- has statx                : no [5]
- has statx syscall        : no [5]
- has BCrypt API           : no [5]
- is Windows CE            : no [5]
- has init_priority attribute : no [5]
- has stat::st_blksize     : no [5]
- has stat::st_mtim        : no [5]
- has stat::st_mtimensec   : no [5]
- has stat::st_mtimespec   : no [5]
- has stat::st_birthtim    : no [5]
- has stat::st_birthtimensec : no [5]
- has stat::st_birthtimespec : no [5]
- has fdopendir(O_NOFOLLOW) : no [5]
- has dirent::d_type       : no [5]
- has POSIX *at APIs       : no [5]
- cxx11_auto_declarations  : no [5]
- cxx11_auto_declarations  : no [6]
- has_icu builds           : no [5]
Знаете ли вы, что здесь не так и что мне следует сделать, чтобы, скажем, файл libboost_filesystem-vc143-mt-sgd-x64-1_83.lib был правильно построен ?
Спасибо :)

Подробнее здесь: https://stackoverflow.com/questions/788 ... windows-11

Вернуться в «C++»