Closed tahv closed 8 months ago
Hello, I successfully configured the project using Visual Studio 2019. For transparency, here are the versions I'm using: Python: 3.10.4 CMake: 3.28.3 git: 2.39.0.windows.1
The error you're encountering appears to relate primarily to Git and CMake, specifically a failure in retrieving the Git hash for the GTest HEAD. This is unusual and might indicate an underlying issue with your Git or CMake installations. Could you please provide your versions of Git and CMake? Also, is there anything else in the log file at "
You probably already tried this but please make sure to clean your build directory first just to make sure nothing is lingering around that could be interfering.
You could also try running the command that is failing in your terminal:
CMake Error at
function(get_hash_for_ref ref out_var err_var)
execute_process(
COMMAND "C:/Program Files/Git/cmd/git.exe" --git-dir=.git rev-parse "${ref}^0"
WORKING_DIRECTORY "C:/git/USD-Fileformat-plugins/build/_deps/googletest-src"
RESULT_VARIABLE error_code
OUTPUT_VARIABLE ref_hash
ERROR_VARIABLE error_msg
OUTPUT_STRIP_TRAILING_WHITESPACE
)
If you need a workaround, you can try installing gtest locally and pass -DGTest_ROOT as a cmake parameter to prevent it from fetching gtest.
Lastly, next release should make the gtest dependency go away unless you are actually building the tests when USD_FILEFORMATS_BUILD_TESTS is on.
Thanks for the quick response,
You are correct, the issue was my CMake version.
MSVC 2019 installed CMake 3.20
, I used a more recent version and it worked.
Actual Behaviour
I'm trying to build the
usdfbx
plugin but I get a CMake error during the Fetching GTest phase.This only occur when I build with Visual Studio Build Tools 2019. It work with 2022.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
3.9.2
23.05
1.0.2
2020.2.1
Sample Code that illustrates the problem