AL_USDMaya
AL_USDMaya copied to clipboard
Building on Windows
Hello!
What would be the simplest way to compile the plugin for Windows (assuming that I am a CMake nOOb)?
Thanks
Hi - we are actively working on getting a working windows build in place. If you can wait a week or two, we should have it ready. Eoin
Excellent. If you need CMake nOOb to test it, I will be glad to be your Guinea pig!
Hello! I saw that you updated the doc to say that it is compatible with Maya 2018. Is the Windows version out?
Hello,
I try to build AL_USDMaya on windows 10 and Visual Studio 15 2017 (windows SDK 10.0.17134.0) with build_lib.sh file and with cmakeUI 3.12 too but in the two cases I have this error.
CMake Error at D:/Work/Builded/USD/cmake/pxrTargets.cmake:456 (message):
The imported target "hdStream" references the file
"D:/Work/Builded/USD/lib/hdStream.lib"
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
"D:/Work/Builded/USD/cmake/pxrTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
D:/Work/Builded/USD/pxrConfig.cmake:8 (include)
CMakeLists.txt:16 (include)
-- Configuring incomplete, errors occurred!
See also "D:/Work/ToBuild/AL_USDMaya/build/CMakeFiles/CMakeOutput.log".
CMake output log -- CMakeOutput.log
I don't have this file "hdStream.lib" in USD git repository or in USD builded directory. Anyone know how to fix this error ?
Yup, I just just gave a windows build a try and received the very same error. Fortunately, there's a thread on this on Pixar's USD github site with a good rundown for the workaround: https://github.com/PixarAnimationStudios/USD/issues/530
Once I appeased the FindMaya and FindGTest Cmake modules (it seems the devkit no longer comes by default with Maya 2018, you'll need to download copy the contents of the devkit folder into the install's devkit folder), I was able to get CMake complete. Building the Visual Studio solution is another story, I'm getting a sea of errors to the tune of:
Severity Code Description Project File Line Suppression State Error C1189 #error: "Unsupported architecture. x86_64 or ARM64 required." (compiling source file C:\Users\pkanyuk\Documents\Data\Projects\AL_UsdDev\AL_USDMaya\usdutils\AL\usd\utils\DiffCore.cpp) AL_USDUtils C:\Users\pkanyuk\Documents\Data\Projects\UsdDev5\inst\USD\include\pxr\base\arch\defines.h 67
I'm not keen on sinking too much more time into getting this to build on Windows as I have other options, but if anyone has succeeded recently with Maya 2018, I'd be curious what the steps were.
Thanks! -- Paul
Hello, I also try to build AL_USDMaya on windows 10 and Visual Studio 15 2017
d:\tools\src\AL_USDMaya\build>cmake -DCMAKE_INSTALL_PREFIX=%BUILD_DIR% -DCMAKE_MODULE_PATH=%BUILD_DIR% -DBOOST_ROOT=%USD_ROOT% -DMAYA_LOCATION=%MAYA_LOCATION% -DUSD_CONFIG_FILE=%USD_ROOT%/pxrConfig.cmake -DGTEST_ROOT='d:/tools/src/googletest/googletest' -DCMAKE_PREFIX_PATH=%MAYA_LOCATION%/lib/cmake -DPXR_INSTALL_LOCATION=%BUILD_DIR%/install -DUSD_MAYA_ROOT=%USD_ROOT%/third_party/maya -Wno-dev ..
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.16.27024.1
-- The CXX compiler identification is MSVC 19.16.27024.1
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/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: D:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found USD: D:/tools/src/AL_USDMaya/usd/USD-v18.11/include (found version "0.18.11")
-- Found PythonInterp: D:/Python27/python.exe (found version "2.7.15")
-- C++ namespace configured to (external) pxr, (internal) pxrInternal_v0_8
-- Found Maya: D:/Program Files/Autodesk/Maya2018/bin/maya.exe (found version "20180400")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- python
-- thread
-- filesystem
-- chrono
-- system
-- date_time
-- atomic
-- Found GTest: D:/tools/src/googletest/googletest/lib/gtest.lib
-- Building AL_USDMayaSchemas
Processing schema classes:
ALModelAPI, ALMayaReference, ALFrameRange
Loading Templates from d:\tools\src\AL_USDMaya\usd\USD-v18.11\lib\usd\usd\resources\codegenTemplates
Writing API:
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\api.h
Writing Schema Tokens:
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\tokens.h
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\tokens.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\wrapTokens.cpp
Generating Classes:
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\ModelAPI.h
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\ModelAPI.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\wrapModelAPI.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\MayaReference.h
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\MayaReference.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\wrapMayaReference.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\FrameRange.h
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\FrameRange.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\wrapFrameRange.cpp
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\plugInfo.json
Generating Schematics:
wrote D:\tools\src\AL_USDMaya\build\schemas\AL\usd\schemas\generatedSchema.usda
-- Building AL_USDMayaTranslators
-- Configuring done
-- Generating done
-- Build files have been written to: D:/tools/src/AL_USDMaya/build
But unsuccessfully. Confused by these lines.:
-- Looking for pthread.h
-- Looking for pthread.h - not found
When building
msbuild INSTALL.vcxproj /p:configuration=release /p:platform=x64 /m
swears that he can not open the source file "pthread.h"
tell me, please, how to build a plugin.
-- sorry for the translation
pkanyuk when you launch command with cmake use this argument -G "Visual Studio 15 2017 Win64" for set project in x64 architecture.
I did it initially. Also does not work.
-- sorry for the translation
In the building log the message "Unknown compiler version - please run the configure tests and report the results" There may be a wrong version of the BOOST?
-- sorry for the translation
Hi I'm attempting to build on Windows10 and I almost met all problems above. So is it possible to have some release versions on windows so that we can download and use? The building process is so complicated and confusing that I tried for several days but still have no idea what's going on(yeah i am also a Cmake nOOb). Thank you!
Hi, did anyone successfully compile this for windows?
if not i think i want give it a try just yet :)
Maybe someone have a work commit on windows ?