GithubHelp home page GithubHelp logo

Building on Windows about al_usdmaya HOT 12 OPEN

animallogic avatar animallogic commented on June 1, 2024
Building on Windows

from al_usdmaya.

Comments (12)

murphyeoin avatar murphyeoin commented on June 1, 2024

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

from al_usdmaya.

devGitHub48 avatar devGitHub48 commented on June 1, 2024

Excellent.
If you need CMake nOOb to test it, I will be glad to be your Guinea pig!

from al_usdmaya.

devGitHub48 avatar devGitHub48 commented on June 1, 2024

Hello!
I saw that you updated the doc to say that it is compatible with Maya 2018.
Is the Windows version out?

from al_usdmaya.

RDelet avatar RDelet commented on June 1, 2024

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 ?

from al_usdmaya.

pkanyuk avatar pkanyuk commented on June 1, 2024

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: PixarAnimationStudios/USD#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

from al_usdmaya.

0anion0 avatar 0anion0 commented on June 1, 2024

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

from al_usdmaya.

RDelet avatar RDelet commented on June 1, 2024

pkanyuk when you launch command with cmake use this argument -G "Visual Studio 15 2017 Win64" for set project in x64 architecture.

from al_usdmaya.

0anion0 avatar 0anion0 commented on June 1, 2024

I did it initially.
Also does not work.

--
sorry for the translation

from al_usdmaya.

0anion0 avatar 0anion0 commented on June 1, 2024

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

from al_usdmaya.

zcgeng avatar zcgeng commented on June 1, 2024

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!

from al_usdmaya.

 avatar commented on June 1, 2024

Hi, did anyone successfully compile this for windows?

if not i think i want give it a try just yet :)

from al_usdmaya.

Katod avatar Katod commented on June 1, 2024

Maybe someone have a work commit on windows ?

from al_usdmaya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.