-
Notifications
You must be signed in to change notification settings - Fork 202
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
Issue compiling with Windows 10 #86
Comments
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 Edit: actually it seems to misread your command line and read this as the devkit path: Try without the 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. |
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 Sorry my computer is in French :( |
Thanks @BigRoy ! Really appreciate the time you spend trying to help me. Even by adding Here are the first errors : 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:
Some (but not all) of the required Boost libraries were found. You may Is there a way to force the installation of the whole boost library? |
@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 |
No, the issue is that I don't know how to read correctly |
@devGitHub48 were you able to compile and run |
@BigRoy sorry, I wasn't able to test last night Compiling USD Compiling Maya-usd
Some errors :
build_log_ninja.txt
I should have missed somewhere in the build.md |
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
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:
Note how it also lacks the Wrong version of USD for the
|
Thanks! |
Following your instructions in the process you sent, I was able to compile with USD 19.05! Compiling USD
Everything went fine! Thanks Compiling maya_usd With the repo as is and modifying the # 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 In Maya Launching Maya 2020 from maya import cmds
cmds.loadPlugin('AL_USDMayaPlugin') Thanks a lot for your help @BigRoy and @HamedSabri-adsk |
@BigRoy and @HamedSabri-adsk should I close the issue or will you do it? |
If your issues are resolved and it's clear for you how to continue. Feel free to close it. 👍 |
With your help, everything is fine. I will document it on my side. Thanks a lot! |
Hi I have change file : maya-usd\plugin\al\usdtransaction\AL\usd\transaction\tests\CMakeLists.txt
to which only add "" for the parameter and the problem solved. |
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:
near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362. The cmake-policies(7) manual explains that the OLD behaviors of all -- Found PythonInterp: C:/Python27/python.exe (found version "2.7.6") -- Configuring incomplete, errors occurred! Traceback (most recent call last): |
What branch are you trying to build? You might need to update USD itself to a newer build, especially if you're building See here |
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. |
…desk#86) * Make sure the build and install folders have the variant (#2) * Enable generating compile_commands.json by default * Make sure the build and install folders have the variant * Fix typo in ReadMe * temporarily revert line endings to windows to do merge * standardize on linux-style line endings (newline only) (cherry picked from commit 8073eaf)
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
`
The text was updated successfully, but these errors were encountered: