MarkusJx / install-boost

Install boost on Github actions
MIT License
60 stars 3 forks source link

I could not compile b2 #46

Closed Wernickel closed 5 hours ago

Wernickel commented 3 months ago

Hello, I just downloaded and unpacked boost_1_85_0. My OS ist Win11 with Compiler Visual Studio 2022, version 17.9.6. WinSDK is C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0

Unfortunately the bootstrap.bat returns an error Include file "assert.h" could not be found, called by cassert If I set the INCLUDE vairable to (WINSDK)\ucrt, the file was found and the build.bat continues until file windows.h was not found. If I set INCLUDE to all subdirectories in WINSDK, the compile continues but stops because it doesn't find files.obj which shouldn't be built due to build.bat.

I tested it with my private computer with Win 10, but the errors are the same.

D:\NONBKU\boost_1_85_1\boost_1_85_0>bootstrap.bat Building Boost.Build engine LOCALAPPDATA=C:\Users\WernerWMeyer\AppData\Local Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Professional Found with vswhere C:\Program Files\Microsoft Visual Studio\2022\Professional Call_If_Exists "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools....\VC\Auxiliary\Build\vcvarsall.bat" AMD64


Visual Studio 2022 Developer Command Prompt v17.9.6 Copyright (c) 2022 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x64'

Using 'vc143' toolset.

D:\NONBKU\boost_1_85_1\boost_1_85_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 bindjam.cpp 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 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 tasks.cpp timestamp.cpp value.cpp variable.cpp w32_getreg.cpp mod_jam_builtin.cpp mod_jam_class.cpp mod_jam_errors.cpp mod_jam_modules.cpp mod_order.cpp mod_path.cpp mod_property_set.cpp mod_regex.cpp mod_sequence.cpp mod_set.cpp mod_string.cpp mod_summary.cpp mod_sysinfo.cpp mod_version.cpp /link kernel32.lib advapi32.lib user32.lib /MANIFEST:EMBED /MANIFESTINPUT:b2.exe.manifest bindjam.cpp D:\NONBKU\boost_1_85_1\boost_1_85_0\tools\build\src\engine\timestamp.h(18): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "windows.h": No such file or directory builtins.cpp D:\NONBKU\boost_1_85_1\boost_1_85_0\tools\build\src\engine\timestamp.h(18): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "windows.h": No such file or directory class.cpp ...

So I am not able to generate b2.exe in order to install boost. Perhaps you might find a fundamental error because it seems that I'm the only one with this problem... :-)

MarkusJx commented 3 months ago

I'm not quite sure if this is the right place to ask this as this is the repository a GitHub action for installing prebuilt boost binaries in GitHub workflows. Apart from that, it seems like you are missing some headers and/or include paths.

MarkusJx commented 5 hours ago

Closing due to inactivity