-
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
build maya-usd error #1
Comments
I opened the "C:/usd/plugin/usd/hdStream.lib" folder and found only "C:/usd/plugin/usd/hdStream.dll". Only the .dll file did not find the .lib file. So what is the problem? |
This is actually a problem with USD on Windows. The libraries hdStream, usdObj & usdShaders are dynamic libraries and have no .lib file on Windows. In your USD build open the file "cmake/pxrTargets.cmake" and find the line "if(NOT EXISTS "${file}" and substitute these lines:
|
Thank you for your reply. After the change, there will still be an error in the missing library file. What should I do next? C:\maya-usd>python build.py --maya-location "C:\Program Files\Autodesk\maya2018" --pxrusd-location C:\usd C:\workspace Building with settings:
but this file does not exist. Possible reasons include:
but not all the files it references. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! Traceback (most recent call last): please |
Always have problems😂 |
I believe this is because you are using the latest version of USD. The ‘master’ branch right now is Pixar and Animal Logic plugins at versions 19.05 and 31.1. That was the most common/stable combination being used in pipelines so that’s what we’ve got there. You would need to checkout the 'v19.05' tag in the USD repo and build that. |
FYI, the problem you encountered is because they added new dynamic libraries in v19.07 that will need to be skpped. |
thanks for you reply,I'm very grateful.Let me try |
@qinjiaxin Note that there is pre-built USD 19.05 here - however I'm not sure that build has everything that is required to compile Definitely let me know if you were able to compile it either way and if so - I might just hit you up with some targeted questions to get me up and running too. ;) |
Oh and one more thing. When you build USD, do not add the --maya option. The maya plugin is now part of this maya-usd repo. |
@seanofnine ok |
thanks for your help.I successfully compiled maya-usd. However, when I set the environment variable and load it, an error message appears. As follows |
@qinjiaxin did you hit this pthread.h error on Windows, and if so, how did you work around it? Thanks!
|
@asluk |
Thanks @qinjiaxin ! For some reason I I had thought that was already the default in my setup. Cheers~ |
@qinjiaxin
If you fixed it by just changing version of pixar USD, I still must have got the wrong version. Or are there any other steps that you did to successfully compile maya-usd? Thanks |
You need to modify the pxrTargets.cmake file in your USD build. From my initial reply way above.
|
The USD issue tracking this is PixarAnimationStudios/OpenUSD#530 |
@qinjiaxin if you are using master or dev branches, you shouldn't get the Error: Failed to register fragment 'float4ToFloatX' However, in refactoring_sandbox branch this error shows up because PXR_PLUGINPATH_NAME is not set for PXR_USDMAYA in the mod. Please see the fix here: #25 |
Thanks that worked flawlessly! I did actually try that before but only with the wrong USD version... Thanks, and sorry for the late reply. |
@qinjiaxin were you able to compile and use everything correctly? Are you still running into issues? Or can this issue be closed? |
There definitely some issues when this issue was first logged, especially in our documentation, but should be fine to close this one now. |
I am getting an error when compiling maya-usd.
C:\maya-usd>python build.py --maya-location "C:\Program Files\Autodesk\maya2018" --pxrusd-location C:\usd C:\workspace
Building with settings:
Source directory C:\maya-usd
Workspace directory C:\workspace
Build directory C:\workspace\build\RelWithDebInfo
Install directory C:\workspace\install\RelWithDebInfo
Variant RelWithDebInfo
CMake generator Default
Build Log C:\workspace\build\RelWithDebInfo\build_log.txt
2019-07-31 19:20
cmake -DCMAKE_INSTALL_PREFIX="C:\workspace\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="C:\usd" "C:\maya-usd"
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.16299.
-- _PYTHON_VERSION_LIST: 2.7.16.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:
Updated PYTHONPATH: C:\usd\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 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)\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:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\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\CMake\bin;C:\Program Files (x86)\QuickTime\QTSystem;D:\Program Files\Git\cmd;C:\Users\timeaxis\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip;C:\Python27;C:\Python27\Scripts;C:\Program Files\Intel\Embree3 x64\lib;C:\Program Files\3Delight\bin;C:\Program Files\Side Effects Software\Houdini 17.0.506;C:\python36;C:\python36\Scripts;C:\Program Files\Autodesk\Maya2018;C:\Program Files\Java\jdk1.8.0_221\bin;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;C:\usd\bin;C:\usd\lib
-- C++ namespace configured to (external) pxr, (internal) pxrInternal_v0_19
========== Pixar USD Plugin ==========
CMake Error at C:/usd/cmake/pxrTargets.cmake:522 (message):
The imported target "hdStream" references the 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
"C:/usd/cmake/pxrTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
C:/usd/pxrConfig.cmake:9 (include)
plugin/pxr/CMakeLists.txt:24 (include)
-- Configuring incomplete, errors occurred!
See also "C:/workspace/build/RelWithDebInfo/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "build.py", line 458, in
InstallMayaUSD(context, context.forceBuild, context.buildArgs)
File "build.py", line 307, in InstallMayaUSD
RunCMake(context, force, extraArgs)
File "build.py", line 281, 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:\workspace\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="C:\usd" "C:\maya-usd"'
See C:\workspace\build\RelWithDebInfo\build_log.txt for more details.
I compiled usd successfully compiled. But the prompt asks there is no "C:/usd/plugin/usd/hdStream.lib" file. I don't know what to do. Can someone help me with this? thank you very much
win10
vs2017
The text was updated successfully, but these errors were encountered: