google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

Error while installing usd_from_gltf: DRACO: ERROR: [Error 2] The system cannot find the file specified #63

Closed Nnadozie closed 3 years ago

Nnadozie commented 3 years ago

I'm at a loss for where to begin debugging this error, given that the missing file isn't specified. Hoping at first for suggestions.


C:\Users\neoke>python .\usd_from_gltf\tools\ufginstall\ufginstall.py .\usd_from_gltf_build .\usd-20-11-win64_py27_release --testdata
Install Settings:
  Source Directory:   C:\Users\neoke\usd_from_gltf
  Install Directory:  C:\Users\neoke\usd_from_gltf_build
  USD Directory:      C:\Users\neoke\usd-20-11-win64_py27_release
  Download Directory: C:\Users\neoke\usd_from_gltf_build\src
  Build Directory:    C:\Users\neoke\usd_from_gltf_build\build
  Build Config:       Release
  CMake Generator:    Default
  Already Installed:  <none>
  Installing:         DRACO, GIF, JPG, JSON, ZLIB, PNG, STB_IMAGE, TCLAP, TESTDATA_SAMPLES, TESTDATA_REFERENCE, USD_FROM_GLTF

-------- Installing DRACO --------
  DRACO: File already exists, skipping download: C:\Users\neoke\usd_from_gltf_build\src\draco.zip
  DRACO: Unpacking to: C:\Users\neoke\usd_from_gltf_build\src\draco-1.3.5
  DRACO: CWD: C:\Users\neoke\usd_from_gltf_build\build\draco-1.3.5
  DRACO: Run: cmake C:\Users\neoke\usd_from_gltf_build\src\draco-1.3.5 -DCMAKE_INSTALL_PREFIX=C:\Users\neoke\usd_from_gltf_build -DCMAKE_PREFIX_PATH=C:\Users\neoke\usd_from_gltf_build -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCMAKE_GENERATOR_PLATFORM=x64
  DRACO: ERROR: [Error 2] The system cannot find the file specified
Nnadozie commented 3 years ago

If it helps, I'm using Windows 10 with prebuilt usd binaries from Nvidia.

After a a bit of digging, I've narrowed down the place throwing the error to a subprocess call, but still no progress with finding out which file is missing.

def run(args):
    ....
    status('got here y')
    process = subprocess.Popen(
        args,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
        universal_newlines=True)
    status('got here z')

terminal output

C:\Users\neoke>python .\usd_from_gltf\tools\ufginstall\ufginstall.py .\usd_build .\Downloads\usd-20-11-win64_py27_release
Install Settings:
  Source Directory:   C:\Users\neoke\usd_from_gltf
  Install Directory:  C:\Users\neoke\usd_build
  USD Directory:      C:\Users\neoke\Downloads\usd-20-11-win64_py27_release
  Download Directory: C:\Users\neoke\usd_build\src
  Build Directory:    C:\Users\neoke\usd_build\build
  Build Config:       Release
  CMake Generator:    Default
  Already Installed:  <none>
  Installing:         DRACO, GIF, JPG, JSON, ZLIB, PNG, STB_IMAGE, TCLAP, USD_FROM_GLTF

-------- Installing DRACO --------
  DRACO: File already exists, skipping download: C:\Users\neoke\usd_build\src\draco.zip
  DRACO: Unpacking to: C:\Users\neoke\usd_build\src\draco-1.3.5
  DRACO: CWD: C:\Users\neoke\usd_build\build\draco-1.3.5
  DRACO: Run: cmake C:\Users\neoke\usd_build\src\draco-1.3.5 -DCMAKE_INSTALL_PREFIX=C:\Users\neoke\usd_build -DCMAKE_PREFIX_PATH=C:\Users\neoke\usd_build -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCMAKE_GENERATOR_PLATFORM=x64
  DRACO: log path: C:\Users\neoke\usd_build\build\draco-1.3.5\log.txt
  DRACO: got here 1
  DRACO: got here y
  DRACO: ERROR: [Error 2] The system cannot find the file specified
Nnadozie commented 3 years ago

Update:

Turns out I was missing cmake.

Given I used prebuilt binaries from Nvidia, I skipped the USD build step, which would have required me to download cmake.

That said, I'm still getting build errors as shown below, but at this point I'm closing this issue and going to explore using the Docker builds discussed in #39

-------- Installing DRACO --------
  DRACO: File already exists, skipping download: C:\Users\neoke\usd_build\src\draco.zip
  DRACO: Unpacking to: C:\Users\neoke\usd_build\src\draco-1.3.5
  DRACO: CWD: C:\Users\neoke\usd_build\build\draco-1.3.5
  DRACO: Run: cmake C:\Users\neoke\usd_build\src\draco-1.3.5 -DCMAKE_INSTALL_PREFIX=C:\Users\neoke\usd_build -DCMAKE_PREFIX_PATH=C:\Users\neoke\usd_build -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCMAKE_GENERATOR_PLATFORM=x64
  DRACO: log path: C:\Users\neoke\usd_build\build\draco-1.3.5\log.txt
  DRACO: got here 1
  DRACO: got here y
  DRACO: got here z
  DRACO: got here 2
  DRACO: got here 3
-- Building for: Visual Studio 14 2015
INFO|Draco: ignoring empty build type, forcing release mode.
-- Selecting Windows SDK version  to target Windows 10.0.16299.
CMake Error at CMakeLists.txt:11 (project):
  Failed to run MSBuild command:

    C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 14.0.25420.1
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 30/10/2020 16:42:20.
    Project "C:\Users\neoke\usd_build\build\draco-1.3.5\CMakeFiles\3.18.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\neoke\usd_build\build\draco-1.3.5\CMakeFiles\3.18.2\VCTargetsPath.vcxproj]
    Done Building Project "C:\Users\neoke\usd_build\build\draco-1.3.5\CMakeFiles\3.18.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.