CMakeLists.txt (10.5 KB)
Hi Raymond,
I’m attempting to compile the resolvers from: VFX-UsdAssetResolver@htps://lucascheller.github.io/VFX-UsdAssetResolver/
as well.
But I’m running into some errors.
Can I ask you a few details of the CMakefile modifications?
What modifications and packages/DCC/git clones did you use and specified in CMakeList.txt?
Here’s a summary the ones I’ve made and the output log results of the make:
Using VS2019 (vs142)
Maya 2024.2
OpenUSD 0.22.11/USD
Also tried with download prebuilt v0.26.0 from :htps://github.com/Autodesk/maya-usd/tree/release/v0.26.0
CMakefile changes:
PXR USD include/libs (AR_PYTHON):
git clone and build version from OpenUSD v0.22.11:
compiled with VS2019 to my D:\build_openUSD_vs2019
lib: D:\build_openUSD_vs2019\lib
includes :D:\build_openUSD_vs2019\include
I’ve also try using the downloaded Maya USD version 0.26.0 from: htps://github.com/Autodesk/maya-usd/tree/release/v0.26.0 and
CHANGED: AR_PXR_LIB_PREFIX to “usd_” (From “pxr_” or “libpxr_”)
Python srcs (AR_PYTHON):
Python lib/includes, using Maya2024.2’s python 3.10 included bins and includes:
Python lib: C:\Program Files\Autodesk\Maya2024\lib\python310.lib
sitepackages:C:\Program Files\Autodesk\Maya2024\Python\Lib\site-packages
Boost srcs (AR_BOOST):
Boost src and includes:
Boost: from downloaded Maya USD build v0.26.0 from @ htps://github.com/Autodesk/maya-usd/tree/release/v0.26.0 and
installed to: C:/Program Files/Autodesk/MayaUSD/Maya2024/0.26.0_202311130904-e634cda/
change AR_BOOST_NAMESPACE to boost (From hboost)
lib name:boost_python310-vc142-mt-x64-1_76
lib path: C:/Program Files/Autodesk/MayaUSD/Maya2024/0.26.0_202311130904-e634cda/mayausd/USD/lib
includes: C:/Program Files/Autodesk/MayaUSD/Maya2024/0.26.0_202311130904-e634cda/mayausd/USD/include/boost-1_76":
As mentioned before,For PXR USD and BOOST usd includes, I’ve optionally try using:
- cmake’d pixar USD git download (OpenUSD) : my D:\build_openUSD_vs2019\includes
- Downloaded prebuild and installed Maya USD v0.26.0 from htps://github.com/PixarAnimationStudios/OpenUSD. ie: C:\Program Files\Autodesk\MayaUSD\Maya2024\0.26.0_202311130904-e634cda\mayausd\USD\devkit.zip’s version.
The output log (and errors) I’m encountering are:
C:\developer\testdev\VFX-UsdAssetResolver>cmake --build build --clean-first --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
1>Checking Build System
Building Custom Rule C:/developer/testdev/VFX-UsdAssetResolver/src/FileResolver/CMakeLists.txt
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileRe
solver\fileResolver.vcxproj]
debugCodes.cpp
resolver.cpp
resolverContext.cpp
D:\build_dec10_2019\include\pxr/base/gf/ilmbase_halfLimits.h(66,17): error C2059: syntax error: ‘)’ [C:\developer\testd
ev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/ilmbase_halfLimits.h(66,1): error C2334: unexpected token(s) preceding ‘:’; ski
pping apparent function body [C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/ilmbase_halfLimits.h(109,1): error C2143: syntax error: missing ‘)’ before ‘;’
[C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/ilmbase_halfLimits.h(109,1): error C2059: syntax error: ‘)’ [C:\developer\testd
ev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/ilmbase_halfLimits.h(109,1): error C2238: unexpected token(s) preceding ‘;’ [C:
\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/traits.h(31,1): error C2059: syntax error: ‘namespace’ [C:\developer\testdev\VF
X-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
<.. truncated middle log section...>
D:\build_dec10_2019\include\pxr/base/gf/vec2h.h(65): message : see declaration of ‘std::pxrInternal_v0_22__pxrReserved_
::GfVec2h’ [C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/vec2h.h(304,1): error C4430: missing type specifier - int assumed. Note: C++ do
es not support default-int [C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/vec2h.h(305,5): error C2065: 'data’: undeclared identifier [C:\developer\testd
ev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/vec2h.h(305,23): error C2676: binary ‘[’: 'const std::pxrInternal_v0_22__pxrRes
erved::GfVec2f’ does not define this operator or a conversion to a type acceptable to the predefined operator [C:\dev
eloper\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
D:\build_dec10_2019\include\pxr/base/gf/vec2h.h(305,23): fatal error C1003: error count exceeds 100; stopping compilati
on [C:\developer\testdev\VFX-UsdAssetResolver\build\src\FileResolver\fileResolver.vcxproj]
resolverTokens.cpp
Generating Code…
C:\developer\testdev\VFX-UsdAssetResolver>cmake --install build
– Install configuration: “Release”
– Installing: C:/developer/testdev/VFX-UsdAssetResolver/dist/fileResolver/resources/plugInfo.json
CMake Error at build/src/FileResolver/cmake_install.cmake:55 (file):
file INSTALL cannot find
“C:/developer/testdev/VFX-UsdAssetResolver/build/src/FileResolver/Release/fileResolver.dll”:
File exists.
Call Stack (most recent call first):
build/cmake_install.cmake:37 (include)
C:\developer\testdev\VFX-UsdAssetResolver>
############ END OF LOG ###########
< END OF LOG Segment >