PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.93k stars 1.17k forks source link

Boost Failed #3102

Open MiyajiAnimation opened 2 months ago

MiyajiAnimation commented 2 months ago

Description of Issue

Trying to build boost fails :( in following error message: 'ERROR: Failed to run 'b2 --prefix="D:\USD" --build-dir="D:\USD\build" -j4 address-model=64 link=shared runtime-link=shared threading=multi variant=release --with-atomic --with-regex --with-python --user-config=python-config.jam toolset=msvc-14.3 install'

Steps to Reproduce

Downloaded the OpenUSD v24.05 from PixarAnimationsStudios Github Open x64 Native Tools 2022 Run > python "D:\OpenUSD - PIXAR\OpenUSD\build_scripts\build_usd.py" "D:\USD"

System Information (OS, Hardware)

Windows 10 Pro - 64 Bit | OS 19045.4291 RAM: 16GB x2+4GB CPU: Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz 3.50 GHz

Package Versions

Python 3.9.13 ( 64 bit ) VS 2022

Log files

Here's the log log.txt

asluk commented 2 months ago

can you try it with a simpler path setup, maybe something like c:\mytest\usd_install ? Could be Windows paths being finicky...

jesschimein commented 2 months ago

Filed as internal issue #USD-9716

hamedsabri commented 2 months ago

can you set the generator and see if it gives you the same error?

"--generator="Visual Studio 17 2022"

linesight commented 2 months ago

The root cause is latest vs2022 as of this writing has version 17.10, toolchain version 14.40.33807, old b2 doesn't recognize, so b2 returns error code 1 which fails build pipeline of openusd. Recent b2 has a fix for 17.10 https://github.com/bfgroup/b2/pull/394

pixnblox commented 1 week ago

FWIW, I was able to get around this by symlinking vcvarsall.bat to the location b2 is looking for, e.g. symlink from:

FROM C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat TO C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\vcvarsall.bat

The Boost build log will indicate the location it is looking (i.e. the target location to use), but the log itself does not obviously show a failure.

Lumengine commented 1 day ago

Hi, I've have the same issue. Another solution is linked to this item. https://github.com/boostorg/boost/issues/914#issuecomment-2262146091

But after I fixed this, I stiull have another issue with cmake

-- Found Boost: C:/Users/perri/Software/USD/Build/Debug/include/boost-1_82 (found version "1.82.0") -- Disabling boost-provided cmake config -- Found Python3: C:\Users\perri\AppData\Local\Programs\Python\Python311\python.exe (found version "3.11.9") found components: Interpreter Development Development.Module Development.Embed CMake Warning (dev) at cmake/defaults/Packages.cmake:132 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): CMakeLists.txt:23 (include) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find Boost (missing: python311) (found version "1.82.0") Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.30/Modules/FindBoost.cmake:2409 (find_package_handle_standard_args) cmake/defaults/Packages.cmake:132 (find_package) CMakeLists.txt:23 (include)

It seems that boost python311 is not found, and I'm struggling to find a solution.