Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

向项目添加openvdb失败 Could not install openvdb #4135

Closed
wang-mengdi opened this issue May 24, 2024 · 16 comments
Closed

向项目添加openvdb失败 Could not install openvdb #4135

wang-mengdi opened this issue May 24, 2024 · 16 comments
Labels

Comments

@wang-mengdi
Copy link

Xmake Version

2.9.2+dev.d8818c5b

Operating System Version and Architecture

Windows 10 Pro 10.0.19045

Describe Bug

Cannot add openvdb package to a project because the compilation of boost 1.84 failed when installing openvdb.

It's different with issue #4043 because adding boost itself to the project is fine. The problem is that openvdb is not properly installed.

Expected Behavior

Compile the project

Project Configuration

xmake.lua

add_rules("mode.debug", "mode.release", "mode.releasedbg")
set_languages("cxx17")

--add_requires("cuda")
add_requires("openvdb",{configs={nanovdb=true}})

target("my_project")
    set_kind("binary")
    add_files("src/*.cu", "src/.cpp")

    add_packages("openvdb")

main.cpp (under folder src)

#include <iostream>
int main() {
    std::cout<<"hello world\n";
    return 0;
}

Additional Information and Error Logs

c:\Code\test
λ xmake -v -y
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.33901
checking for zig ... no
checking for zig ... no
checking for nim ... no
checking for nim ... no
checking for unzip ... ok
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
git rev-parse HEAD
checking for Cuda SDK directory ... C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
checking for cmake ... no
checking for cmake ... no
checking for cmake ... no
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for xmake::boost ... no
checking for pkg-config ... no
checking for pkgconf ... no
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
> checking for c links(boost)
> checking for c snippet(find_package/boost)
checking for boost ... no
checking for xmake::zlib ... zlib v1.3.1
checking for xmake::lz4 ... lz4 v1.9.4
checking for xmake::blosc ... blosc v1.21.5
checking for xmake::tbb ... tbb 2021.11.0
checking for xmake::cuda ... no
checking for xmake-repo::cuda ... cuda
checking for xmake::optix ... no
checking for xmake-repo::optix ... optix 8.0.0
checking for xmake::openvdb ... no
> checking for c links(openvdb)
> checking for c snippet(find_package/openvdb)
checking for openvdb ... no
checking for ping ... ok
pinging the host(github.com) ... 59 ms
checking for 7z ... C:\Users\mengdimwang\xmake\winenv\bin\7z
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y boost-1.84.0.tar.gz -oC:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240523\_9674D13D4C0A4560840B9D29BC4506A0.tar

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 123792694 bytes (119 MiB)

Extracting archive: boost-1.84.0.tar.gz
--
Path = boost-1.84.0.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       555141120
Compressed: 123792694
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240523\_9674D13D4C0A4560840B9D29BC4506A0.tar\boost-1.84.0.tar -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 555141120 bytes (530 MiB)

Extracting archive: C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240523\_9674D13D4C0A4560840B9D29BC4506A0.tar\boost-1.84.0.tar
--
Path = C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240523\_9674D13D4C0A4560840B9D29BC4506A0.tar\boost-1.84.0.tar
Type = tar
Physical Size = 555141120
Headers Size = 32190976
Code Page = UTF-8

Everything is Ok

Folders: 5338
Files: 55706
Size:       508382688
Compressed: 555141120
bootstrap.bat msvc
Building Boost.Build engine
Call_If_Exists "bin\VCVARS32.BAT"
###
### Using 'msvc' toolset.
###

C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\b\boost\1.84.0\source\tools\build\src\engine>"cl" /nologo /MP /MT /TP /Feb2 /wd4996 /O2 /GL /EHsc   -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
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
order.cpp
path.cpp
property-set.cpp
regex.cpp
sequence.cpp
set.cpp
Generating code
Finished generating code

C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\b\boost\1.84.0\source\tools\build\src\engine>dir *.exe
 Volume in drive C is Windows
 Volume Serial Number is 3AAC-D64E

 Directory of C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\b\boost\1.84.0\source\tools\build\src\engine

05/23/2024  08:11 PM           531,968 b2.exe
               1 File(s)        531,968 bytes
               0 Dir(s)  1,618,930,511,872 bytes free

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

Bootstrapping is done. To build, run:

    .\b2

    To generate header files, run:

    .\b2 headers

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/

checking for clang-cl.exe ... no
checking for clang-cl.exe ... no
checking for clang-cl.exe ... no
checking for clang-cl.exe ... no
checking for Microsoft Visual Studio (x64) version ... no
error: build toolchain not found!
  => install boost 1.84.0 .. failed
error: install failed!
warning: please use package:runtimes() or package:has_runtime() instead of package:config("vs_runtime")
@waruqi
Copy link
Member

waruqi commented May 24, 2024

it works for me. you can check

assert(build_toolchain:check(), "build toolchain not found!")

@wang-mengdi
Copy link
Author

I'm using Visual Studio 2022 Preview with MSVC v143 and Windows 11 SDK 10.0.22621.0.

I installed C++ Clang tools for Windows (17.0.3 - x64/x86) in Visual Studio and manually added the installed clang-cl.exe to PATH. After that, xmake successfully installed boost1.84 when installing openvdb, but the compilation of openvdb failed:

finding boost from xmake ..
checking for xmake::boost ... boost 1.84.0
{
  static = true,
  defines = "BOOST_ALL_NO_LIB",
  version = "1.84.0",
  linkdirs = {
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib"
  },
  sysincludedirs = {
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\include"
  },
  links = {
    "libboost_regex-mt-s",
    "libboost_system-mt-s",
    "libboost_atomic-mt-s",
    "libboost_iostreams-mt-s",
    "libboost_filesystem-mt-s"
  },
  libfiles = {
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\libboost_regex-mt-s.lib",
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\libboost_system-mt-s.lib",
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\libboost_atomic-mt-s.lib",
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\libboost_iostreams-mt-s.lib",
    "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\libboost_filesystem-mt-s.lib"
  },
  license = "BSL-1.0"
}

patching C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib\pkgconfig\boost.pc ..
checking for C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\cl.exe ... ok
checking for flags (-MT) ... ok
> cl.exe "-MT" "-nologo"
checking for flags (cl_external_includedir) ... ok
> cl.exe "-external:W0" "-external:IC:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\include" "-nologo"
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\cl.exe" -c -nologo -MT -std:c++14 -DBOOST_ALL_NO_LIB /EHsc -external:W0 -external:IC:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\include -FoC:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_60719514AE2340708F339F2F3F4BA3E0.o C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_30B5E98FD1734C4383CE607874386DE7.cpp
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33901\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -nodefaultlib:msvcrt.lib -libpath:C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.84.0\181f551113cc4c97956bbd6e006e3004\lib libboost_regex-mt-s.lib libboost_system-mt-s.lib libboost_atomic-mt-s.lib libboost_iostreams-mt-s.lib libboost_filesystem-mt-s.lib -out:C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_60719514AE2340708F339F2F3F4BA3E0.b C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_60719514AE2340708F339F2F3F4BA3E0.o
> checking for c++ links(libboost_regex-mt-s, libboost_system-mt-s, libboost_atomic-mt-s, libboost_iostreams-mt-s, libboost_filesystem-mt-s)
> checking for c++ snippet(test)
  => install boost 1.84.0 .. ok
checking for curl ... C:\Users\mengdimwang\xmake\winenv\bin\curl
C:\Users\mengdimwang\xmake\winenv\bin\curl -SL -A "Xmake/2.9.2+dev.4cdcaa477 (Windows;) curl/8.2.1" https://github.com/oneapi-src/oneTBB/archive/v2021.12.0.tar.gz -o v2021.12.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2555k    0 2555k    0     0  2237k      0 --:--:--  0:00:01 --:--:-- 7197k
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y v2021.12.0.tar.gz -oC:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_A00A1CA8DDFD407088948CF6DBD12DD0.tar

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 2617255 bytes (2556 KiB)

Extracting archive: v2021.12.0.tar.gz
--
Path = v2021.12.0.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       12072960
Compressed: 2617255
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_A00A1CA8DDFD407088948CF6DBD12DD0.tar\v2021.12.0.tar -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 12072960 bytes (12 MiB)

Extracting archive: C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_A00A1CA8DDFD407088948CF6DBD12DD0.tar\v2021.12.0.tar
--
Path = C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240524\_A00A1CA8DDFD407088948CF6DBD12DD0.tar\v2021.12.0.tar
Type = tar
Physical Size = 12072960
Headers Size = 602624
Code Page = UTF-8

Everything is Ok

Folders: 121
Files: 1048
Size:       11198964
Compressed: 12072960
  => download https://github.com/oneapi-src/oneTBB/archive/v2021.12.0.tar.gz .. ok
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\link.exe
checking for the static library archiver (ar) ... link.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33901\bin\HostX64\x64\link.exe
checking for the shared library linker (sh) ... link.exe
C:\Program Files\CMake\bin\cmake -DTBB_TEST=OFF -DTBB_STRICT=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\mengdimwang\AppData\Local\.xmake\packages\t\tbb\2021.12.0\bf68da2b715a42839a0e48893d932df4 -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v144 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE=  -MT" "-DCMAKE_CXX_FLAGS_RELEASE=  -MT" C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:56 (project):
  Failed to run MSBuild command:

    C:/Program Files/Microsoft Visual Studio/2022/Preview/MSBuild/Current/Bin/amd64/MSBuild.exe

  to get the value of VCTargetsPath:

    MSBuild version 17.11.0-preview-24230-06+4be99f898 for .NET Framework
    Build started 5/24/2024 11:49:23 AM.

    Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source\build_bf68da2b\CMakeFiles\3.29.3\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v144 (Platform Toolset = 'v144') cannot be found. To build using the v144 build tools, please install v144 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source\build_bf68da2b\CMakeFiles\3.29.3\VCTargetsPath.vcxproj]
    Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source\build_bf68da2b\CMakeFiles\3.29.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source\build_bf68da2b\CMakeFiles\3.29.3\VCTargetsPath.vcxproj" (default target) (1) ->
    (PrepareForBuild target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v144 (Platform Toolset = 'v144') cannot be found. To build using the v144 build tools, please install v144 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source\build_bf68da2b\CMakeFiles\3.29.3\VCTargetsPath.vcxproj]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.17


  Exit code: 1



-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\CMake\bin\cmake -DTBB_TEST=OFF -DTBB_STRICT=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\Users\mengdimwang\AppData\Local\.xmake\packages\t\tbb\2021.12.0\bf68da2b715a42839a0e48893d932df4 -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v144 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=  -nodefaultlib:msvcrt.lib" "-DCMAKE_C_FLAGS_RELEASE=  -MT" "-DCMAKE_CXX_FLAGS_RELEASE=  -MT" C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\t\tbb\2021.12.0\source) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\sandbox\modules\os.lua:378]:
    [@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
    [@programdir\modules\package\tools\cmake.lua:1174]: in function 'install'
    [...\.xmake\repositories\xmake-repo\packages\t\tbb\xmake.lua:116]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:404]:

  => install tbb 2021.12.0 .. failed
error: @programdir\core\main.lua:329: @programdir\core\sandbox\modules\import\core\base\task.lua:65: @programdir\modules\async\runjobs.lua:322: ...\modules\private\action\require\impl\actions\install.lua:506: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:506]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:370]:
    [...modules\private\action\require\impl\install_packages.lua:489]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:238]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
warning: please use package:runtimes() or package:has_runtime() instead of package:config("vs_runtime")

@wang-mengdi
Copy link
Author

wang-mengdi commented May 25, 2024

Fixed with the following steps:

  1. Replace visual studio 2022 professional preview with visual studio community 2022 (Encountered similar problems with #4772 that saying 'cannot find toolchain v144' whey trying other steps)
  2. Install clang-cl module in Visual Studio and manually add clang-cl to PATH
  3. (Might be unnecessary) Manually replace line 43 of openvdb's xmake.lua with:
                package:add("deps", package:version():ge("9.0.0") and "tbb <2021.0")

Then it compiled.

waruqi added a commit that referenced this issue May 25, 2024
@waruqi
Copy link
Member

waruqi commented May 25, 2024

等 patch 后再试试 #4152

waruqi added a commit that referenced this issue May 25, 2024
@waruqi
Copy link
Member

waruqi commented May 25, 2024

再试试

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


try again

@wang-mengdi
Copy link
Author

Still not working

λ xmake -v -D -y
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33808
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for unzip ... ok
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
git rev-parse HEAD
checking for Cuda SDK directory ... C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
checking for cmake ... no
checking for cmake ... no
checking for cmake ... no
checking for cmake ... C:\Program Files\CMake\bin\cmake
finding boost from xmake ..
checking for xmake::boost ... boost 1.85.0
finding zlib from xmake ..
checking for xmake::zlib ... zlib v1.3.1
finding lz4 from xmake ..
checking for xmake::lz4 ... lz4 v1.9.4
finding blosc from xmake ..
checking for xmake::blosc ... blosc v1.21.5
finding tbb from xmake ..
checking for xmake::tbb ... tbb 2021.12.0
finding cuda from xmake ..
checking for xmake::cuda ... no
checking for xmake-repo::cuda ... cuda
finding optix from xmake ..
checking for xmake::optix ... no
checking for xmake-repo::optix ... optix 8.0.0
finding openvdb from xmake ..
checking for xmake::openvdb ... no
finding openvdb from vcpkg ..
finding openvdb from conan ..
finding openvdb from pkgconfig ..
checkinfo: cannot runv(pkg-config.exe --version), No such file or directory
checking for pkg-config ... no
checkinfo: cannot runv(pkgconf.exe --version), No such file or directory
checking for pkgconf ... no
finding openvdb from system ..
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for the c compiler (cc) ... cl.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_E80CDF4F3CC348408B586829FAA8B9A0.o C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_775FB00633BC4F66BF87D39CCDE5CF30.c
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
> "C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 openvdb.lib -out:C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_E80CDF4F3CC348408B586829FAA8B9A0.b C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_E80CDF4F3CC348408B586829FAA8B9A0.o
> checking for c links(openvdb)
> checking for c snippet(find_package/openvdb)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: cannot open input file 'openvdb.lib'

stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\modules\core\tools\link.lua:175]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\link.lua:150]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]:
    [@programdir\core\tool\linker.lua:221]: in function 'link'
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
    [@programdir\modules\package\manager\system\find_package.lua:103]:
    [@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
    [@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
    [@programdir\modules\package\manager\find_package.lua:194]:
    [@programdir\modules\lib\detect\find_package.lua:109]:
    [@programdir\core\package\package.lua:1835]: in function '_fetch_library'
    [@programdir\core\package\package.lua:2002]: in function 'fetch'
    [...modules\private\action\require\impl\install_packages.lua:334]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:238]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\async\runjobs.lua:220]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:406]:

checking for openvdb ... no
finding nlohmann_json from xmake ..
checking for xmake::nlohmann_json ... nlohmann_json v3.11.3
checking for ping ... ok
pinging the host(github.com) ... 58 ms
checking for 7z ... C:\Users\mengdimwang\xmake\winenv\bin\7z
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y v11.0.0.tar.gz -oC:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_343B79E7F94842208ABDB588152EA650.tar

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 4620858 bytes (4513 KiB)

Extracting archive: v11.0.0.tar.gz
--
Path = v11.0.0.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       21749760
Compressed: 4620858
C:\Users\mengdimwang\xmake\winenv\bin\7z x -y C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_343B79E7F94842208ABDB588152EA650.tar\v11.0.0.tar -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 21749760 bytes (21 MiB)

Extracting archive: C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_343B79E7F94842208ABDB588152EA650.tar\v11.0.0.tar
--
Path = C:\Users\MENGDI~1\AppData\Local\Temp\.xmake\240528\_343B79E7F94842208ABDB588152EA650.tar\v11.0.0.tar
Type = tar
Physical Size = 21749760
Headers Size = 745984
Code Page = UTF-8

Everything is Ok

Folders: 126
Files: 1320
Size:       20649116
Compressed: 21749760
checking for cmake ... C:\Program Files\CMake\bin\cmake
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe
checking for the static library archiver (ar) ... link.exe
checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe
checking for the shared library linker (sh) ... link.exe
C:\Program Files\CMake\bin\cmake -DOPENVDB_BUILD_DOCS=OFF -DUSE_PKGCONFIG=OFF -DBoost_USE_STATIC_LIBS=ON -DUSE_CCACHE=OFF -DBLOSC_USE_EXTERNAL_SOURCES=ON -DOPENVDB_CORE_SHARED=OFF -DOPENVDB_CORE_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DBoost_USE_STATIC_RUNTIME=ON -DOPENVDB_BUILD_VDB_LOD=OFF -DOPENVDB_BUILD_VDB_PRINT=ON -DOPENVDB_BUILD_VDB_RENDER=OFF -DOPENVDB_BUILD_VDB_VIEW=OFF -DOPENVDB_BUILD_VDB_AX=OFF -DUSE_BLOSC=ON -DUSE_IMATH_HALF=OFF -DUSE_NANOVDB=ON -DNANOVDB_BUILD_TOOLS=OFF -DNANOVDB_USE_CUDA=ON -DCMAKE_INSTALL_PREFIX=C:\Users\mengdimwang\AppData\Local\.xmake\packages\o\openvdb\v11.0.0\229044b882d0408382163eb8b435857f -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v143 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_C_FLAGS_RELEASE=/DWIN32 /D_WINDOWS /W3  /O2 /Ob2 /DNDEBUG -MT" "-DCMAKE_CXX_FLAGS_RELEASE=/DWIN32 /D_WINDOWS /W3 /GR /EHsc  /O2 /Ob2 /DNDEBUG -MT" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=/machine:x64 /INCREMENTAL:NO -nodefaultlib:msvcrt.lib" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=/machine:x64 /INCREMENTAL:NO -nodefaultlib:msvcrt.lib" "-DCMAKE_STATIC_LINKER_FLAGS_RELEASE=/machine:x64  -nodefaultlib:msvcrt.lib" C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The CXX compiler identification is MSVC 19.40.33808.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_MSVC_RUNTIME_LIBRARY set to target MultiThreaded
-- Suppressing some noisy MSVC CXX warnings, set OPENVDB_CXX_STRICT=ON to re-enable them.
-- Configuring for OpenVDB Version 11.0.0
-- Configuring for OpenVDB ABI Version 11
-- ----------------------------------------------------
-- ------------- Configuring OpenVDBCore --------------
-- ----------------------------------------------------
-- Boost toolset is unknown (compiler MSVC 19.40.33808.0)
-- Found Boost: C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/boost/1.85.0/33c10d7fd2734f0a83c46d416d6097d0/lib/cmake/Boost-1.85.0/BoostConfig.cmake (found suitable version "1.85.0", minimum required is "1.73") found components: iostreams
-- Found TBB: C:/Users/mengdimwang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/include (found suitable version "2021.12", minimum required is "2020.3") found components: tbb
-- Found Blosc: C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/blosc/v1.21.5/caed37b9203c4380808510e8dd0a5dd3/lib/libblosc.lib (found suitable version "1.21.5", minimum required is "1.17.0")
-- Found ZLIB: C:/Users/mengdimwang/AppData/Local/.xmake/packages/z/zlib/v1.3.1/2c9beb78ffda4ae08e1631f3e05b41e3/lib/zlib.lib (found suitable version "1.3.1", minimum required is "1.2.7")
-- ----------------------------------------------------
-- ----------- Configuring OpenVDBBinaries ------------
-- ----------------------------------------------------
-- Found TBB: C:/Users/mengdimwang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/include (found suitable version "2021.12", minimum required is "2020.3") found components: tbbmalloc
-- The C compiler identification is MSVC 19.40.33808.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- ----------------------------------------------------
-- --------------- Configuring NanoVDB ----------------
-- ----------------------------------------------------
-- The CUDA compiler identification is NVIDIA 12.4.99
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found TBB: C:/Users/mengdimwang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/include (found version "2021.12") found components: tbb tbbmalloc tbbmalloc_proxy
-- Found Blosc: C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/blosc/v1.21.5/caed37b9203c4380808510e8dd0a5dd3/lib/libblosc.lib (found version "1.21.5") -- Found ZLIB: C:/Users/mengdimwang/AppData/Local/.xmake/packages/z/zlib/v1.3.1/2c9beb78ffda4ae08e1631f3e05b41e3/lib/zlib.lib (found version "1.3.1")
-- Configuring done (13.6s)
-- Generating done (0.2s)
-- Build files have been written to: C:/Users/mengdimwang/AppData/Local/.xmake/cache/packages/2405/o/openvdb/v11.0.0/source/build_229044b8
checking for msbuild.exe ... C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\msbuild.exe
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\msbuild.exe C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln -nologo -t:Rebuild /nr:false -m:66 -p:Configuration=Release -p:Platform=x64
Build started 5/28/2024 4:31:20 PM.

     1>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" on node 1 (Rebuild target(
       s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|x64".
       ValidateProjects:
         The project "INSTALL" is not selected for building in solution configuration "Release|x64".
         The project "RUN_TESTS" is not selected for building in solution configuration "Release|x64".
         The project "uninstall" is not selected for building in solution configuration "Release|x64".
     1>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" (1) is building "C:\Users\
       mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ZERO_CHECK.vcxproj" (5) on node 2 (Rebuild target(s)).
     5>CoreClean:
         Creating directory "x64\Release\ZERO_CHECK\".
       PrepareForBuild:
         Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for
         more details.
         Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
       InitializeBuildStatus:
         Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
         Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
       CustomBuild:
         1>Checking Build System
       FinalizeBuildStatus:
         Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
         Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
     5>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ZERO_CHECK.vcxproj" (Rebu
       ild target(s)).
     1>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" (1) is building "C:\Users\
       mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metaproj" (2) on node 1 (Rebuild target
       (s)).
     2>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metaproj" (2) is buil
       ding "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_static.vcxproj.met
       aproj" (3) on node 1 (Rebuild target(s)).
     3>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_static.vcxproj.
       metaproj" (3) is building "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openv
       db_static.vcxproj" (6) on node 1 (Rebuild target(s)).
     6>CoreClean:
         Creating directory "openvdb_static.dir\Release\".
       PrepareForBuild:
         Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for
         more details.
         Creating directory "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\Release\".
         Creating directory "openvdb_static.dir\Release\openvdb_static.tlog\".
       InitializeBuildStatus:
         Creating "openvdb_static.dir\Release\openvdb_static.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
         Touching "openvdb_static.dir\Release\openvdb_static.tlog\unsuccessfulbuild".
       CustomBuild:
         Building Custom Rule C:/Users/mengdimwang/AppData/Local/.xmake/cache/packages/2405/o/openvdb/v11.0.0/source/openvdb/openvdb/CMakeLists.txt
       MakeDirsForCl:
         Creating directory "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\pdb".
       ClCompile:
         C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\CL.exe /c /IC:\Users\mengdimwang\AppData\Local\
         .xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\.. /IC:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11
         .0.0\source\build_229044b8\openvdb\openvdb /IC:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\o
         penvdb\openvdb\openvdb /IC:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\. /I"C:\Program File
         s\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" /nologo /W3 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D OPENVDB_
         USE_DELAYED_LOADING /D OPENVDB_STATICLIB /D OPENVDB_PRIVATE /D WIN32_LEAN_AND_MEAN /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_WARNINGS /D __TBB_N
         O_IMPLICIT_LINKAGE=1 /D BOOST_IOSTREAMS_NO_LIB /D BOOST_ALL_NO_LIB /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forS
         cope /Zc:inline /GR /std:c++17 /permissive- /Fo"openvdb_static.dir\Release\\" /Fd"pdb\Release" /external:W0 /Gd /TP /wd4244 /wd4251 /wd4267 /wd4275
         /wd4305 /errorReport:queue  /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/include
         " /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/blosc/v1.21.5/caed37b9203c4380808510e8dd0a5dd3/include" /external:I "C:/Users/me
         ngdimwang/AppData/Local/.xmake/packages/z/zlib/v1.3.1/2c9beb78ffda4ae08e1631f3e05b41e3/include" /external:I "C:/Users/mengdimwang/AppData/Local/.xma
         ke/packages/b/boost/1.85.0/33c10d7fd2734f0a83c46d416d6097d0/include" /bigobj /Zc:throwingNew C:\Users\mengdimwang\AppData\Local\.xmake\cache\package
         s\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\VolumeToSpheres.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\pac
         kages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\VolumeToMesh.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\pa
         ckages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\VolumeAdvect.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\p
         ackages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\VelocityFields.cc C:\Users\mengdimwang\AppData\Local\.xmake\cach
         e\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\VectorTransformer.cc C:\Users\mengdimwang\AppData\Local\.xmak
         e\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\ValueTransformer.cc C:\Users\mengdimwang\AppData\Local\
         .xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\TopologyToLevelSet.cc C:\Users\mengdimwang\AppData
         \Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Statistics.cc C:\Users\mengdimwang\AppData\
         Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\SignedFloodFill.cc C:\Users\mengdimwang\AppD
         ata\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\RayTracer.cc C:\Users\mengdimwang\AppDat
         a\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\RayIntersector.cc C:\Users\mengdimwang\App
         Data\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Prune.cc C:\Users\mengdimwang\AppData\L
         ocal\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PotentialFlow.cc C:\Users\mengdimwang\AppData
         \Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PoissonSolver.cc C:\Users\mengdimwang\AppDa
         ta\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PointsToMask.cc C:\Users\mengdimwang\AppD
         ata\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PointScatter.cc C:\Users\mengdimwang\App
         Data\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PointPartitioner.cc C:\Users\mengdimwan
         g\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PointIndexGrid.cc C:\Users\mengdim
         wang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\PointAdvect.cc C:\Users\mengdim
         wang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\ParticlesToLevelSet.cc C:\Users
         \mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\ParticleAtlas.cc C:\Use
         rs\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\NodeVisitor.cc C:\Use
         rs\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\MultiResGrid.cc C:\Us
         ers\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Morphology.cc C:\Use
         rs\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\MeshToVolume.cc C:\Us
         ers\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Merge.cc C:\Users\me
         ngdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Mask.cc C:\Users\mengdimwa
         ng\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetUtil.cc C:\Users\mengdimw
         ang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetTracker.cc C:\Users\meng
         dimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetSphere.cc C:\Users\m
         engdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetRebuild.cc C:\Use
         rs\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetPlatonic.cc C
         :\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetMorph.cc
          C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetMeasur
         e.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\LevelSetFr
         acture.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Level
         SetFilter.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Le
         velSetAdvect.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations
         \Interpolation.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiatio
         ns\GridTransformer.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instanti
         ations\GridOperators.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instan
         tiations\FindActiveValues.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\i
         nstantiations\Filter.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instan
         tiations\FastSweeping.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\insta
         ntiations\Diagnostics.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\insta
         ntiations\DenseSparseTools.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\
         instantiations\Dense.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instan
         tiations\Count.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiatio
         ns\Composite.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations
         \Clip.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\Change
         Background.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\instantiations\A
         ctivate.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\Grid.cc C:\Users\mengdimwang\AppDa
         ta\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\io\Archive.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\
         2405\o\openvdb\v11.0.0\source\openvdb\openvdb\io\Compression.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\sour
         ce\openvdb\openvdb\io\DelayedLoadMetadata.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\
         io\File.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\io\GridDescriptor.cc C:\Users\meng
         dimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\io\Queue.cc C:\Users\mengdimwang\AppData\Local\.xmake\cach
         e\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\io\Stream.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.
         0\source\openvdb\openvdb\io\TempFile.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\math\
         Half.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\math\Maps.cc C:\Users\mengdimwang\App
         Data\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\math\Proximity.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\pac
         kages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\math\QuantizedUnitVec.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb
         \v11.0.0\source\openvdb\openvdb\math\Transform.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\ope
         nvdb\Metadata.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\MetaMap.cc C:\Users\mengdimw
         ang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\openvdb.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\pac
         kages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\Platform.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\sour
         ce\openvdb\openvdb\points\AttributeArray.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\p
         oints\AttributeArrayString.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\points\Attribut
         eGroup.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\points\AttributeSet.cc C:\Users\men
         gdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\points\StreamCompression.cc C:\Users\mengdimwang\AppData\
         Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\points\points.cc C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\
         2405\o\openvdb\v11.0.0\source\openvdb\openvdb\util\Formats.cc
         VolumeToSpheres.cc
         VolumeToMesh.cc
         VolumeAdvect.cc
         VelocityFields.cc
         VectorTransformer.cc
         ValueTransformer.cc
         TopologyToLevelSet.cc
         Statistics.cc
         SignedFloodFill.cc
         RayTracer.cc
         RayIntersector.cc
         Prune.cc
         PotentialFlow.cc
         PoissonSolver.cc
         PointsToMask.cc
         PointScatter.cc
         PointPartitioner.cc
         PointIndexGrid.cc
         PointAdvect.cc
         ParticlesToLevelSet.cc
         Generating Code...
         Compiling...
         ParticleAtlas.cc
         NodeVisitor.cc
         MultiResGrid.cc
         Morphology.cc
         MeshToVolume.cc
         Merge.cc
     6>C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1388,17): warning C4804: '+=': un
       safe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\op
       envdb\openvdb_static.vcxproj]
         (compiling source file 'instantiations/Merge.cc')
             C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1388,17):
             the template instantiation context (the oldest one first) is
                 C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1575,48):
                 see reference to class template instantiation 'openvdb::v11_0::tools::SumMergeOp<openvdb::v11_0::MaskTree>' being compiled
                 C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1276,1):
                 while compiling class template member function 'bool openvdb::v11_0::tools::SumMergeOp<openvdb::v11_0::MaskTree>::operator ()(openvdb::v11_0
         ::tree::RootNode<openvdb::v11_0::tree::InternalNode<openvdb::v11_0::tree::InternalNode<openvdb::v11_0::tree::LeafNode<T,3>,4>,5>> &,size_t) const'
                 with
                 [
                     T=openvdb::v11_0::ValueMask
                 ]

     6>C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1391,17): warning C4804: '+=': un
       safe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\op
       envdb\openvdb_static.vcxproj]
         (compiling source file 'instantiations/Merge.cc')

     6>C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1407,9): warning C4804: '+=': uns
       afe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\ope
       nvdb\openvdb_static.vcxproj]
         (compiling source file 'instantiations/Merge.cc')

         Mask.cc
         LevelSetUtil.cc
         LevelSetTracker.cc
         LevelSetSphere.cc
         LevelSetRebuild.cc
         LevelSetPlatonic.cc
         LevelSetMorph.cc
         LevelSetMeasure.cc
         LevelSetFracture.cc
         LevelSetFilter.cc
         LevelSetAdvect.cc
         Interpolation.cc
         GridTransformer.cc
         GridOperators.cc
         Generating Code...
         Compiling...
         FindActiveValues.cc
         Filter.cc
         FastSweeping.cc
         Diagnostics.cc
         DenseSparseTools.cc
         Dense.cc
         Count.cc
         Composite.cc
         Clip.cc
         ChangeBackground.cc
         Activate.cc
         Grid.cc
         Archive.cc
         Compression.cc
         DelayedLoadMetadata.cc
         File.cc
         GridDescriptor.cc
         Queue.cc
         Stream.cc
         TempFile.cc
         Generating Code...
         Compiling...
         Half.cc
         Maps.cc
         Proximity.cc
         QuantizedUnitVec.cc
         Transform.cc
         Metadata.cc
         MetaMap.cc
         openvdb.cc
         Platform.cc
         AttributeArray.cc
         AttributeArrayString.cc
         AttributeGroup.cc
         AttributeSet.cc
         StreamCompression.cc
         points.cc
         Formats.cc
         Generating Code...
       Lib:
         C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\Lib.exe /OUT:"C:\Users\mengdimwang\AppData\Loca
         l\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\Release\libopenvdb.lib" /NOLOGO /MACHINE:X64  /machine:x64 /mac
         hine:x64 -nodefaultlib:msvcrt.lib openvdb_static.dir\Release\VolumeToSpheres.obj
         openvdb_static.dir\Release\VolumeToMesh.obj
         openvdb_static.dir\Release\VolumeAdvect.obj
         openvdb_static.dir\Release\VelocityFields.obj
         openvdb_static.dir\Release\VectorTransformer.obj
         openvdb_static.dir\Release\ValueTransformer.obj
         openvdb_static.dir\Release\TopologyToLevelSet.obj
         openvdb_static.dir\Release\Statistics.obj
         openvdb_static.dir\Release\SignedFloodFill.obj
         openvdb_static.dir\Release\RayTracer.obj
         openvdb_static.dir\Release\RayIntersector.obj
         openvdb_static.dir\Release\Prune.obj
         openvdb_static.dir\Release\PotentialFlow.obj
         openvdb_static.dir\Release\PoissonSolver.obj
         openvdb_static.dir\Release\PointsToMask.obj
         openvdb_static.dir\Release\PointScatter.obj
         openvdb_static.dir\Release\PointPartitioner.obj
         openvdb_static.dir\Release\PointIndexGrid.obj
         openvdb_static.dir\Release\PointAdvect.obj
         openvdb_static.dir\Release\ParticlesToLevelSet.obj
         openvdb_static.dir\Release\ParticleAtlas.obj
         openvdb_static.dir\Release\NodeVisitor.obj
         openvdb_static.dir\Release\MultiResGrid.obj
         openvdb_static.dir\Release\Morphology.obj
         openvdb_static.dir\Release\MeshToVolume.obj
         openvdb_static.dir\Release\Merge.obj
         openvdb_static.dir\Release\Mask.obj
         openvdb_static.dir\Release\LevelSetUtil.obj
         openvdb_static.dir\Release\LevelSetTracker.obj
         openvdb_static.dir\Release\LevelSetSphere.obj
         openvdb_static.dir\Release\LevelSetRebuild.obj
         openvdb_static.dir\Release\LevelSetPlatonic.obj
         openvdb_static.dir\Release\LevelSetMorph.obj
         openvdb_static.dir\Release\LevelSetMeasure.obj
         openvdb_static.dir\Release\LevelSetFracture.obj
         openvdb_static.dir\Release\LevelSetFilter.obj
         openvdb_static.dir\Release\LevelSetAdvect.obj
         openvdb_static.dir\Release\Interpolation.obj
         openvdb_static.dir\Release\GridTransformer.obj
         openvdb_static.dir\Release\GridOperators.obj
         openvdb_static.dir\Release\FindActiveValues.obj
         openvdb_static.dir\Release\Filter.obj
         openvdb_static.dir\Release\FastSweeping.obj
         openvdb_static.dir\Release\Diagnostics.obj
         openvdb_static.dir\Release\DenseSparseTools.obj
         openvdb_static.dir\Release\Dense.obj
         openvdb_static.dir\Release\Count.obj
         openvdb_static.dir\Release\Composite.obj
         openvdb_static.dir\Release\Clip.obj
         openvdb_static.dir\Release\ChangeBackground.obj
         openvdb_static.dir\Release\Activate.obj
         openvdb_static.dir\Release\Grid.obj
         openvdb_static.dir\Release\Archive.obj
         openvdb_static.dir\Release\Compression.obj
         openvdb_static.dir\Release\DelayedLoadMetadata.obj
         openvdb_static.dir\Release\File.obj
         openvdb_static.dir\Release\GridDescriptor.obj
         openvdb_static.dir\Release\Queue.obj
         openvdb_static.dir\Release\Stream.obj
         openvdb_static.dir\Release\TempFile.obj
         openvdb_static.dir\Release\Half.obj
         openvdb_static.dir\Release\Maps.obj
         openvdb_static.dir\Release\Proximity.obj
         openvdb_static.dir\Release\QuantizedUnitVec.obj
         openvdb_static.dir\Release\Transform.obj
         openvdb_static.dir\Release\Metadata.obj
         openvdb_static.dir\Release\MetaMap.obj
         openvdb_static.dir\Release\openvdb.obj
         openvdb_static.dir\Release\Platform.obj
         openvdb_static.dir\Release\AttributeArray.obj
         openvdb_static.dir\Release\AttributeArrayString.obj
         openvdb_static.dir\Release\AttributeGroup.obj
         openvdb_static.dir\Release\AttributeSet.obj
         openvdb_static.dir\Release\StreamCompression.obj
         openvdb_static.dir\Release\points.obj
         openvdb_static.dir\Release\Formats.obj
         openvdb_static.vcxproj -> C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\Rele
         ase\libopenvdb.lib
       FinalizeBuildStatus:
         Deleting file "openvdb_static.dir\Release\openvdb_static.tlog\unsuccessfulbuild".
         Touching "openvdb_static.dir\Release\openvdb_static.tlog\openvdb_static.lastbuildstate".
     6>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_s
       tatic.vcxproj" (Rebuild target(s)).
     3>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_s
       tatic.vcxproj.metaproj" (Rebuild target(s)).
     2>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metaproj" (2) is buil
       ding "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj.me
       taproj" (4) on node 1 (Rebuild target(s)).
     4>Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj
       .metaproj" (4) is building "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_prin
       t\vdb_print.vcxproj" (7) on node 1 (Rebuild target(s)).
     7>CoreClean:
         Creating directory "vdb_print.dir\Release\".
       PrepareForBuild:
         Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for
         more details.
         Creating directory "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\Rele
         ase\".
         Creating directory "vdb_print.dir\Release\vdb_print.tlog\".
       InitializeBuildStatus:
         Creating "vdb_print.dir\Release\vdb_print.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
         Touching "vdb_print.dir\Release\vdb_print.tlog\unsuccessfulbuild".
       CustomBuild:
         Building Custom Rule C:/Users/mengdimwang/AppData/Local/.xmake/cache/packages/2405/o/openvdb/v11.0.0/source/openvdb_cmd/vdb_print/CMakeLists.txt
       MakeDirsForCl:
         Creating directory "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\pdb"
         .
       ClCompile:
         C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\CL.exe /c /IC:\Users\mengdimwang\AppData\Local\
         .xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\.. /IC:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11
         .0.0\source\build_229044b8\openvdb\openvdb /IC:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\o
         penvdb\openvdb\openvdb /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" /nologo /W3 /WX- /diagnostics:column /O2 /Ob2 /D _MBCS /
         D WIN32 /D _WINDOWS /D NDEBUG /D WIN32_LEAN_AND_MEAN /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_WARNINGS /D OPENVDB_USE_DELAYED_LOADING /D OPENVD
         B_STATICLIB /D __TBB_NO_IMPLICIT_LINKAGE=1 /D BOOST_IOSTREAMS_NO_LIB /D BOOST_ALL_NO_LIB /D __TBB_MALLOC_NO_IMPLICIT_LINKAGE=1 /D "CMAKE_INTDIR=\"Re
         lease\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /permissive- /Fo"vdb_print.dir\Release\\" /Fd"pdb\Release
         " /external:W0 /Gd /TP /wd4244 /wd4251 /wd4267 /wd4275 /wd4305 /errorReport:queue  /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/t
         /tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/include" /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/blosc/v1.21.5/caed37b9203
         c4380808510e8dd0a5dd3/include" /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/z/zlib/v1.3.1/2c9beb78ffda4ae08e1631f3e05b41e3/includ
         e" /external:I "C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/boost/1.85.0/33c10d7fd2734f0a83c46d416d6097d0/include" /bigobj /Zc:throwingNew
         C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb_cmd\vdb_print\main.cc
         main.cc
       Link:
         C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\meng
         dimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\Release\vdb_print.exe" /INCREMENTAL:N
         O /NOLOGO /LIBPATH:C:/Users/mengdimwang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/lib /LIBPATH:C:/Users/mengdim
         wang/AppData/Local/.xmake/packages/t/tbb/2021.12.0/bf68da2b715a42839a0e48893d932df4/lib/Release /LIBPATH:C:/Users/mengdimwang/AppData/Local/.xmake/p
         ackages/b/blosc/v1.21.5/caed37b9203c4380808510e8dd0a5dd3/lib /LIBPATH:C:/Users/mengdimwang/AppData/Local/.xmake/packages/b/blosc/v1.21.5/caed37b9203
         c4380808510e8dd0a5dd3/lib/Release /LIBPATH:"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\lib\x64" ..\..\openvdb\openvdb\Release\libopenv
         db.lib C:\Users\mengdimwang\AppData\Local\.xmake\packages\t\tbb\2021.12.0\bf68da2b715a42839a0e48893d932df4\lib\tbbmalloc.lib C:\Users\mengdimwang\Ap
         pData\Local\.xmake\packages\t\tbb\2021.12.0\bf68da2b715a42839a0e48893d932df4\lib\tbb.lib C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\blosc\
         v1.21.5\caed37b9203c4380808510e8dd0a5dd3\lib\libblosc.lib "lz4_LIBRARY_RELEASE-NOTFOUND.lib" C:\Users\mengdimwang\AppData\Local\.xmake\packages\z\zl
         ib\v1.3.1\2c9beb78ffda4ae08e1631f3e05b41e3\lib\zlib.lib "C:\Users\mengdimwang\AppData\Local\.xmake\packages\b\boost\1.85.0\33c10d7fd2734f0a83c46d416
         d6097d0\lib\libboost_iostreams-mt-s.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib adv
         api32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/mengdimwang/AppData/Local/.xmake/cache/packages
         /2405/o/openvdb/v11.0.0/source/build_229044b8/openvdb_cmd/vdb_print/Release/vdb_print.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLI
         B:"C:/Users/mengdimwang/AppData/Local/.xmake/cache/packages/2405/o/openvdb/v11.0.0/source/build_229044b8/openvdb_cmd/vdb_print/Release/vdb_print.lib
         " /MACHINE:X64  /machine:x64 /machine:x64 -nodefaultlib:msvcrt.lib vdb_print.dir\Release\main.obj
     7>LINK : fatal error LNK1181: cannot open input file 'lz4_LIBRARY_RELEASE-NOTFOUND.lib' [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o
       \openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj]
     7>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb
       _print.vcxproj" (Rebuild target(s)) -- FAILED.
     4>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb
       _print.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.
     2>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metapro
       j" (Rebuild target(s)) -- FAILED.
     1>Done Building Project "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" (Rebuild tar
       get(s)) -- FAILED.

Build FAILED.

       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" (Rebuild target) (1) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metaproj" (Rebuild target) (2
       ) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_static.vcxproj.metaproj
       " (Rebuild target) (3) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\openvdb\openvdb_static.vcxproj" (Rebuil
       d target) (6) ->
       (ClCompile target) ->
         C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1388,17): warning C4804: '+=':
       unsafe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\
       openvdb\openvdb_static.vcxproj]
         C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1391,17): warning C4804: '+=':
       unsafe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\
       openvdb\openvdb_static.vcxproj]
         C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\openvdb\openvdb\tools\Merge.h(1407,9): warning C4804: '+=': u
       nsafe use of type 'bool' in operation [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb\o
       penvdb\openvdb_static.vcxproj]


       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln" (Rebuild target) (1) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\ALL_BUILD.vcxproj.metaproj" (Rebuild target) (2
       ) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj.metapro
       j" (Rebuild target) (4) ->
       "C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj" (Rebui
       ld target) (7) ->
       (Link target) ->
         LINK : fatal error LNK1181: cannot open input file 'lz4_LIBRARY_RELEASE-NOTFOUND.lib' [C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405
       \o\openvdb\v11.0.0\source\build_229044b8\openvdb_cmd\vdb_print\vdb_print.vcxproj]

    3 Warning(s)
    1 Error(s)

Time Elapsed 00:13:08.33
error: @programdir\core\sandbox\modules\os.lua:378: execv(C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\msbuild.exe C:\Users\mengdimwang\AppData\Local\.xmake\cache\packages\2405\o\openvdb\v11.0.0\source\build_229044b8\OpenVDB.sln -nologo -t:Rebuild /nr:false -m:66 -p:Configuration=Release -p:Platform=x64) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\sandbox\modules\os.lua:378]:
    [@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
    [@programdir\modules\package\tools\cmake.lua:1007]: in function '_install_for_msvc'
    [@programdir\modules\package\tools\cmake.lua:1201]: in function 'install'
    [...ake\repositories\xmake-repo\packages\o\openvdb\xmake.lua:118]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:404]:

  => install openvdb v11.0.0 .. failed
error: @programdir\core\main.lua:329: @programdir\core\sandbox\modules\import\core\base\task.lua:65: @programdir\modules\async\runjobs.lua:322: ...\modules\private\action\require\impl\actions\install.lua:506: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:506]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:370]:
    [...modules\private\action\require\impl\install_packages.lua:489]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:238]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
warning: please use package:runtimes() or package:has_runtime() instead of package:config("vs_runtime")

@waruqi
Copy link
Member

waruqi commented May 29, 2024

我只是修了 boost 的问题,openvbd 我没修。。

lz4_LIBRARY_RELEASE-NOTFOUND.lib

应该是 openvbd 里面对 lz4 的依赖处理有问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I only fixed the boost problem, but not openvbd. .

lz4_LIBRARY_RELEASE-NOTFOUND.lib

There should be a problem with lz4 dependency processing in openvbd

@star-hengxing
Copy link
Contributor

这块要把级联依赖拆开才行,等我有时间看看

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This requires taking apart the cascading dependencies. I’ll take a look at it when I have time.

@wang-mengdi
Copy link
Author

I worked out with forcing boost =1.78.0 in packages/o/openvdb/xmake.lua:

    --add_deps("boost >1.73", {configs = {regex = true, system = true, iostreams = true}})
    add_deps("boost =1.78", {configs = {regex = true, system = true, iostreams = true}})

Otherwise it will automatically install boost 1.85.0, even boost 1.78 is already installed. Is there a way to allow it using boost 1.78?

@star-hengxing
Copy link
Contributor

@wang-mengdi
Copy link
Author

Thanks, done!

@heheda123123
Copy link
Contributor

使用workflow时遇到了同样的问题,更新到dev分支后解决

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I encountered the same problem when using workflow, and solved it after updating to the dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants