Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
769 stars 201 forks source link

Issue compiling with Windows 10 #86

Closed devGitHub48 closed 5 years ago

devGitHub48 commented 5 years ago

Hi!

I tried to compile the plugin for Maya 2020 (PR109) on Windows 10 with Visual 2017 compiler. I just compiled USD 19_11. Everything went fine! (I haven't compile the Maya plugin)

but I tried to compiled the maya-usd, plugin, I wasn't able.

I attached the build_log.txt

Is there anything I did wrong?

Thanks

`D:\github\maya-usd>python build.py --maya-location="c:\Program Files\autodesk\Maya2020" --pxrusd-location="d:\myproject\usd_19_11" --devkit-location="e:\myproject\external\Maya\sdk\2020" d:\maya_usd

Building with settings: Source directory D:\github\maya-usd Workspace directory d:\maya_usd Build directory d:\maya_usd\build\RelWithDebInfo Install directory d:\maya_usd\install\RelWithDebInfo Variant RelWithDebInfo CMake generator Default Build Log d:\maya_usd\build\RelWithDebInfo\build_log.txt Stages arguments ['clean', 'configure', 'build', 'install'] 2019-10-28 14:50 cmake -DCMAKE_INSTALL_PREFIX="d:\maya_usd\install\RelWithDebInfo" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Visual Studio 15 2017 Win64" -DMAYA_LOCATION="c:\Program Files\autodesk\Maya2020" -DPXR_USD_LOCATION="d:\myproject\usd_19_11" -DMAYA_DEVKIT_LOCATION="e:\myproject\external\Maya\sdk\2020" "D:\github\maya-usd" -- The C compiler identification is MSVC 19.16.27031.1 -- The CXX compiler identification is MSVC 19.16.27031.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.14", minimum required is "2.7") -- _PYTHON_VERSION_LIST: 2.7.14.final.0 -- PYTHON_PREFIX: C:\Python27 -- PYTHON_INCLUDE_DIR: C:\Python27\include -- PYTHON_SITE_PACKAGES: C:\Python27\Lib\site-packages -- PYTHON_MODULE_EXTENSION: .pyd -- PYTHON_IS_DEBUG: 0 -- PYTHON_SIZEOF_VOID_P: 8 -- PYTHON_LIBRARY_SUFFIX: 27 -- PYTHON_LIBDIR: -- PYTHON_MULTIARCH: -- Found PythonLibs: C:/Python27/libs/Python27.lib -- Found USD: d:\myproject\usd_19_11 (found version "0.19.11") Updated PYTHONPATH: d:\myproject\usd_19_11\lib\python Updated PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\FSharp\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\;C:\Program Files (x86)\SCE\ORBIS SDKs\6.500\host_tools\bin;C:\Program Files (x86)\SCE\Common\SceVSI-VS15\bin;C:\Program Files (x86)\SCE\Common\SceVSI-VS14\bin;C:\Program Files (x86)\SCE\ORBIS\Tools\Publishing Tools\bin;C:\Program Files (x86)\SCE\ORBIS\Tools\Target Manager Server\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Users\enassif_can.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Zeranoe\FFmpeg\git-a8ad7e420140225\Bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Autodesk\Backburner\;e:\myproject\external\Houdini\bin\;E:\myproject\external\Houdini\bin\;C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages;D:\soft\maya\PySide2\pyside-setup\pyside2-setup\sources\pyside2-tools;C:\Program Files\doxygen\bin;C:\Program Files\Nasm;D:\soft\usd\CMake\bin;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\cmake\bin;C:\Program Files\TortoiseSVN\bin;E:\myproject_openworld\external\Houdini\bin\;C:\Program Files\Perforce\;C:\Program Files\Collaborator Client;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\fdevic\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Collaborator Client;C:\Users\fdevic\AppData\Local\GitHubDesktop\bin;e:\myproject\external\Houdini\bin\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64;E:\myproject\external\Houdini\bin\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;E:\myproject_openworld\external\Houdini\bin\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;d:\myproject\usd_19_11\bin;d:\myproject\usd_19_11\lib -- C++ namespace configured to (external) pxr, (internal) pxrInternal_v0_19 ========== Pixar USD Plugin ========== -- Found Maya: C:/Program Files/Autodesk/Maya2020/bin/maya.exe (found version "20200000") -- Skipping validation of Maya fragment XML files because PXR_VALIDATE_GENERATED_CODE=OFF ========== AL USD Plugin ========== CMake Deprecation Warning at plugin/al/CMakeLists.txt:7 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.14") CMake Error at C:/Program Files/cmake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find UFE (missing: UFE_INCLUDE_DIR UFE_LIBRARY UFE_VERSION) Call Stack (most recent call first): C:/Program Files/cmake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindUFE.cmake:71 (find_package_handle_standard_args) plugin/al/CMakeLists.txt:38 (find_package)

-- Configuring incomplete, errors occurred! See also "D:/maya_usd/build/RelWithDebInfo/CMakeFiles/CMakeOutput.log".

Traceback (most recent call last): File "build.py", line 482, in InstallMayaUSD(context, context.buildArgs, context.stagesArgs) File "build.py", line 319, in InstallMayaUSD RunCMake(context, extraArgs, stagesArgs) File "build.py", line 283, in RunCMake extraArgs=(" ".join(extraArgs) if extraArgs else ""))) File "build.py", line 189, in Run .format(cmd=cmd, log=os.path.abspath(context.logFileLocation))) RuntimeError: Failed to run 'cmake -DCMAKE_INSTALL_PREFIX="d:\maya_usd\install\RelWithDebInfo" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Visual Studio 15 2017 Win64" -DMAYA_LOCATION="c:\Program Files\autodesk\Maya2020" -DPXR_USD_LOCATION="d:\myproject\usd_19_11" -DMAYA_DEVKIT_LOCATION="e:\myproject\external\Maya\sdk\2020" "D:\github\maya-usd"' See d:\maya_usd\build\RelWithDebInfo\build_log.txt for more details. build_log.txt `

BigRoy commented 5 years ago

It seems to be unable to find the UFE SDK which is part of the Maya devkit. Is your Maya devkit location set correctly? I noticed it was the only path trying to read from disk e: where the others refer to disk d:. Might be on purpose, just double check if your devkit path is set correctly.

Edit: actually it seems to misread your command line and read this as the devkit path: DMAYA_DEVKIT_LOCATION="e:\myproject\external\Maya\sdk\2020" "D:\github\maya-usd"'

Try without the = after the flags/arguments but use a space as shown here


With Maya 2019 this would fail and still allow to build and I am not sure this hard failing is correct. Probably someone else can answer that question.

devGitHub48 commented 5 years ago

Thank you so much for such a quick answer.

You were right, the correct path was : E:\myproject\external\Maya\sdk\2020\devkitBase

I went further, but I have the Cannot open include file: 'pthread.h': No such file or directory

Sorry my computer is in French :( CMakeError.log CMakeOutput.log build_log.txt

BigRoy commented 5 years ago

The pthread issue sounds similar to #30 and #27. Have a look at whether those help you on your way.

In those cases it seemed related to older versions of visual studio as opposed to 2017

devGitHub48 commented 5 years ago

Thanks @BigRoy ! Really appreciate the time you spend trying to help me.

Even by adding --generator "Visual Studio 15 2017 Win64" It didn't help

Here are the first errors : `-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.14") -- Found UFE: E:/DXM/external/Maya/sdk/2020/devkitBase/devkit/ufe/include UFE Build Enabled Using UFE version : 0.2.0 -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE CMake Error at C:/Program Files/cmake/share/cmake-3.13/Modules/FindBoost.cmake:2100 (message): Unable to find the requested Boost libraries.

Boost version: 1.65.1

Boost include path: D:/dxm/usd_19_11/include/boost-1_65_1

Could not find the following Boost libraries:

      boost_thread
      boost_filesystem
      boost_chrono

Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): plugin/al/CMakeLists.txt:59 (find_package)`

Is there a way to force the installation of the whole boost library?

HamedSabri-adsk commented 5 years ago

@devGitHub48 The problem is that you didn't build USD with enough boost options.

This is documented in the build.md. Please see Building USD/boost section:

https://github.com/Autodesk/maya-usd/blob/master/doc/build.md

devGitHub48 commented 5 years ago

No, the issue is that I don't know how to read correctly

BigRoy commented 5 years ago

@devGitHub48 were you able to compile and run maya-usd correctly in the end?

devGitHub48 commented 5 years ago

@BigRoy sorry, I wasn't able to test last night

Compiling USD As @HamedSabri-adsk said, I compiled USD with all the needed Boost library : python USD\build_scripts\build_usd.py --build-args=boost,"--with-date_time --with-thread --with-system --with-filesystem" --force-all --no-maya --python --alembic --no-houdini "d:\myproject\usd_19_11_boost" Everything went well.

Compiling Maya-usd Spoiler : I wasn't able to compile :D

  1. First I tested with the same command line as yesterday ; python build.py --maya-location="c:\Program Files\autodesk\Maya2020" --pxrusd-location="d:\myproject\usd_19_11_boost" --devkit-location="e:\myproject\external\Maya\sdk\2020\devkitbase" --generator "Visual Studio 15 2017 Win64" d:\\maya_usd3 build_log3.txt CMakeError3.log CMakeOutput3.log

Some errors : D:/github/maya-usd/plugin/pxr/maya/lib/usdMaya/shadingModeRegistry.h(66): error C2027: use of undefined type 'boost::function<Autodesk::Maya::OpenMaya20190000::MObject (pxrInternal_v0_19__pxrReserved__::UsdMayaShadingModeImportContext *)>' (compiling source file D:\github\maya-usd\plugin\pxr\maya\lib\usdMaya\shadingModeDisplayColor.cpp) [D:\maya_usd3\build\RelWithDebInfo\plugin\pxr\maya\lib\usdMaya\usdMaya.vcxproj]

  1. I checked in the build.md so I tried with Ninja python build.py --maya-location="c:\Program Files\autodesk\Maya2020" --pxrusd-location="d:\myproject\usd_19_11_boost" --devkit-location="e:\myproject\external\Maya\sdk\2020\devkitbase" --generator Ninja --build-args=-DCMAKE_MAKE_PROGRAM="d:\github\maya-usd\ninja-win\ninja.exe" "d:\maya_usd4"

build_log_ninja.txt CMakeError_ninja.log CMakeOutput_ninja.log

  1. I just didn't use any generator python build.py --maya-location="c:\Program Files\autodesk\Maya2020" --pxrusd-location="d:\myproject\usd_19_11_boost" --devkit-location="e:\myproject\external\Maya\sdk\2020\devkitbase" "d:\\maya_usd5" build_log_nogenerator.txt CMakeError_nogenerator.log CMakeOutput_nogenerator.log

I should have missed somewhere in the build.md

BigRoy commented 5 years ago

I think you have two separate issues.

Missing boost in USD

@devGitHub48 you still seem to be facing the missing boost issue. I think your command line for compiling USD with boost is wrong and it should not contain the = symbol but should be written like:

python USD\build_scripts\build_usd.py --build-args boost,"--with-date_time --with-thread --with-system --with-filesystem" --force-all --no-maya --python --alembic --no-houdini "d:\myproject\usd_19_11_boost"

For completeness sake here's some notes on hurdles I passed as I compiled USD on Windows based on pointers by someone else (referred at the top of the gist). The full command line to build USD there is:

"C:\Python27\python.exe" build_usd.py --build-args boost,"--with-date_time --with-thread --with-system --with-filesystem" --no-maya C:\usd

Note how it also lacks the =. I think that must be it.


Wrong version of USD for the maya-usd you're trying compile

Also, the first build log seems to also state some mismatches with function arguments in the USD build when compiling maya-usd. This could be due to you compiling not exactly the same commit of USD as specified in DEVELOPER.md. Make sure you compile using (in this example case for the refactoring_sandbox branch) USD commit b85ddac2.

Basically, double check the exact commit for the branch you want to compile of maya-usd. If you compile the non-latest USD you might hit some other issues on windows which will have fixes described in the process here, specifically the pxrTargets.cmake fix.

devGitHub48 commented 5 years ago

Thanks! Doing it right now

devGitHub48 commented 5 years ago

Following your instructions in the process you sent, I was able to compile with USD 19.05!

Compiling USD

python USD\build_scripts\build_usd.py --build-args=boost,"--with-date_time --with-thread --with-system --with-filesystem" --force-all --no-maya --python --no-houdini "d:\myproject\usd_19_05_boost_no_alembic"

Everything went fine! Thanks

Compiling maya_usd

With the repo as is and modifying the D:\myproject\usd_19_05_boost_no_alembic\cmake\pxrTargets.cmake file with :

# Loop over all imported files and verify that they actually exist
foreach(target ${_IMPORT_CHECK_TARGETS} )
  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
#    if(NOT EXISTS "${file}" )
#      message(FATAL_ERROR "The imported target \"${target}\" references the file   \"${file}\"
# =============================================================================================
    get_filename_component(barename "${file}" NAME_WE)
    # HACK - the following are dynamic libs in Windows (no .lib) - these will be dll's only
    set(skip_dynamic_libs "hdStream" "usdObj" "usdShaders")
    list(FIND skip_dynamic_libs ${barename} _index)
    if(NOT EXISTS "${file}" AND NOT ((${_index} GREATER -1) AND WIN32))
# =============================================================================================
      message(FATAL_ERROR "The imported target \"${target}\" references the file   
      \"${file}\"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   \"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
    endif()
  endforeach()
  unset(_IMPORT_CHECK_FILES_FOR_${target})
endforeach()

And compiling python build.py --maya-location="c:\Program Files\autodesk\Maya2020" --pxrusd-location="d:\myproject\usd_19_05_boost_no_alembic" --devkit-location="e:\myproject\external\Maya\sdk\2020\devkitbase" d:\\maya_usd_19_05

In Maya Before launching maya, setting up the environment variable. Then modifying D:\maya_usd_19_05\install\RelWithDebInfo\mayaUSD.mod file and add it to the \Documents\maya\2020\modules folder.

Launching Maya 2020 Launching the plugin

from maya import cmds
cmds.loadPlugin('AL_USDMayaPlugin')

Et voilà : 00_USD_menu

Thanks a lot for your help @BigRoy and @HamedSabri-adsk

devGitHub48 commented 5 years ago

@BigRoy and @HamedSabri-adsk should I close the issue or will you do it?

BigRoy commented 5 years ago

If your issues are resolved and it's clear for you how to continue. Feel free to close it. :+1:

devGitHub48 commented 5 years ago

With your help, everything is fine. I will document it on my side. Thanks a lot!

ZhongLingXiao commented 4 years ago

Hi

I have change file : maya-usd\plugin\al\usdtransaction\AL\usd\transaction\tests\CMakeLists.txt line 52 from

set_tests_properties(${USDTRANSACTION_PYTHON_TEST_NAME} PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_BINARY_DIR}/${INSTALL_DIR_SUFFIX}/usdtransaction:${CMAKE_BINARY_DIR}/src:$ENV{PYTHONPATH} )

to set_tests_properties(${USDTRANSACTION_PYTHON_TEST_NAME} PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/${INSTALL_DIR_SUFFIX}/usdtransaction:${CMAKE_BINARY_DIR}/src:$ENV{PYTHONPATH}" )

which only add "" for the parameter and the problem solved.

thewaylord commented 4 years ago

I was following your way

but i am fail. same error

C:\test\maya-usd-master>python build.py --maya-location="c:\Program Files\autodesk\Maya2018" --pxrusd-location="d:\project\usd1905" --devkit-location="C:\test\maya-devl\maya2018devkitBase" c:\project\maya_usd_19_05

Building with settings: Source directory C:\test\maya-usd-master Workspace directory c:\project\maya_usd_19_05 Build directory c:\project\maya_usd_19_05\build\RelWithDebInfo Install directory c:\project\maya_usd_19_05\install\RelWithDebInfo Variant RelWithDebInfo CMake generator Default Build Log c:\project\maya_usd_19_05\build\RelWithDebInfo\build_log.txt Stages arguments ['clean', 'configure', 'build', 'install'] 2019-12-04 21:48 cmake -DCMAKE_INSTALL_PREFIX="c:\project\maya_usd_19_05\install\RelWithDebInfo" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Visual Studio 15 2017 Win64" -DMAYA_LOCATION="c:\Program Files\autodesk\Maya2018" -DPXR_USD_LOCATION="d:\project\usd1905" -DMAYA_DEVKIT_LOCATION="C:\test\maya-devl\maya2018devkitBase" "C:\test\maya-usd-master" CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362. -- The C compiler identification is MSVC 19.16.27034.0 -- The CXX compiler identification is MSVC 19.16.27034.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.6", minimum required is "2.7") -- _PYTHON_VERSION_LIST: 2.7.6.final.0 -- PYTHON_PREFIX: C:\Python27 -- PYTHON_INCLUDE_DIR: C:\Python27\include -- PYTHON_SITE_PACKAGES: C:\Python27\Lib\site-packages -- PYTHON_MODULE_EXTENSION: .pyd -- PYTHON_IS_DEBUG: 0 -- PYTHON_SIZEOF_VOID_P: 8 -- PYTHON_LIBRARY_SUFFIX: 27 -- PYTHON_LIBDIR: -- PYTHON_MULTIARCH: -- Found PythonLibs: C:/Python27/libs/Python27.lib -- Found USD: d:\project\usd1905 (found version "0.19.5") Updated PYTHONPATH: C:\project\usd1905\lib\python;d:\project\usd1905\lib\python Updated PATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.1;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Python27;C:\Python27\Scripts;C:\project\USD1905\lib;C:\project\USD1905\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\dotnet\;C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\PySide;C:\Users\user\AppData\Local\Microsoft\WindowsApps;;C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Bandizip\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;d:\project\usd1905\bin;d:\project\usd1905\lib ========== Pixar USD Plugin ========== -- Found Maya: C:/Program Files/Autodesk/Maya2018/bin/maya.exe (found version "20180600") -- Skipping validation of Maya fragment XML files because PXR_VALIDATE_GENERATED_CODE=OFF ========== AL USD Plugin ========== CMake Deprecation Warning at plugin/al/CMakeLists.txt:7 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.6") CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find UFE (missing: UFE_INCLUDE_DIR UFE_LIBRARY) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindUFE.cmake:71 (find_package_handle_standard_args) plugin/al/CMakeLists.txt:38 (find_package)

-- Configuring incomplete, errors occurred! See also "C:/project/maya_usd_19_05/build/RelWithDebInfo/CMakeFiles/CMakeOutput.log".

Traceback (most recent call last): File "build.py", line 482, in InstallMayaUSD(context, context.buildArgs, context.stagesArgs) File "build.py", line 319, in InstallMayaUSD RunCMake(context, extraArgs, stagesArgs) File "build.py", line 283, in RunCMake extraArgs=(" ".join(extraArgs) if extraArgs else ""))) File "build.py", line 189, in Run .format(cmd=cmd, log=os.path.abspath(context.logFileLocation))) RuntimeError: Failed to run 'cmake -DCMAKE_INSTALL_PREFIX="c:\project\maya_usd_19_05\install\RelWithDebInfo" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Visual Studio 15 2017 Win64" -DMAYA_LOCATION="c:\Program Files\autodesk\Maya2018" -DPXR_USD_LOCATION="d:\project\usd1905" -DMAYA_DEVKIT_LOCATION="C:\test\maya-devl\maya2018devkitBase" "C:\test\maya-usd-master"' See c:\project\maya_usd_19_05\build\RelWithDebInfo\build_log.txt for more details.

BigRoy commented 4 years ago

What branch are you trying to build? You might need to update USD itself to a newer build, especially if you're building refactoring_sandbox or dev branch.

See here

huidong-chen commented 4 years ago

From the log, @thewaylord is building with maya 2018 which however doesn't have UFE.

First thing to try is to remove --devkit_location argument and replace "=" with a whitespace.