Skip to content
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.py not find USD_GENSCHEMA #12

Closed
cds1503 opened this issue Aug 10, 2019 · 16 comments
Closed

build.py not find USD_GENSCHEMA #12

cds1503 opened this issue Aug 10, 2019 · 16 comments

Comments

@cds1503
Copy link

cds1503 commented Aug 10, 2019

use command : python build.py --maya-location /usr/autodesk/maya2019 --pxrusd-location /usr/dev/lib/usd/19.07/USD-core /usr/dev/lib/usd/19.07-maya

but FindUSD cmake occurt error.

if pxrUsd build thirdparty problem?

@dtlindsey
Copy link

I believe this is the error. After checking the build_log.txt and the CMakeOutput.log, I could not find anything that would cause this issue. I have also successfully built this package on a different machine, with the same version of USD (19.05), and all the same build settings, as well as the same build settings for the maya-usd plugins. Any help would be appreciated

========== Pixar USD Plugin ==========
-- Found Maya: C:/Program Files/Autodesk/Maya2019/bin/maya.exe (found version "20190000")
CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find USD (missing: USD_GENSCHEMA) (found version "0.19.5")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindUSD.cmake:70 (find_package_handle_standard_args)
plugin/pxr/CMakeLists.txt:23 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/Users/lindd067/dev/external/install/maya-2019-usd-19.05/build/Release/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:\Users\lindd067\dev\external\install\maya-2019-usd-19.05\install\Release" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Visual Studio 14 2015 Win64" -DMAYA_LOCATION="C:\Program Files\Autodesk\Maya2019" -DPXR_USD_LOCATION="C:\Users\lindd067\dev\external\install\USD-19.05-all" "C:\Users\lindd067\dev\external\git\maya-usd"'

@HamedSabri-adsk
Copy link
Contributor

There are two things to check:

1- Make sure you have usdGenSchema in your core USD bin directory
2- Make sure you don't have older USD in your PYTHONPATH

@dtlindsey
Copy link

dtlindsey commented Aug 12, 2019

Thanks. Oddly enough the usdGenSchema didn't end up in the bin dir for some reason. Just did another clean build, and it didn't show up. Are there special options we need to add to the build process when building USD? This is the build command I used

python build_scripts\build_usd.py --generator "Visual Studio 14 2015 Win64" --build-args=boost,"toolset=msvc-14.0 --with-date_time --with-thread --with-system --with-filesystem" --no-maya --ptex --materialx --alembic --openimageio --opencolorio --verbose --force-all "C:\Users\lindd067\dev\external\install\USD-19.05-all"

@emilche
Copy link

emilche commented Aug 14, 2019

I am encountering this problem too. Is there some solution?

@emilche
Copy link

emilche commented Aug 14, 2019

Found a solution for that problem for me at least! It was that i did not have jinja2 installed. Just do a pip install jinja2

@dtlindsey
Copy link

Thanks @emilche I just got that fix this morning in a reply to my posting on the Pixar USD page. Attempting today, and will reply with results

@dtlindsey
Copy link

@emilche installing jinja did the trick. this issue can be closed, but we may want to add this requirement to the docs.

@HamedSabri-adsk
Copy link
Contributor

Glad it works!

Pixar's document mentions installing Jinja2 that is required for the core code generator of usdGenSchema. But that information is not mentioned in the main page https://github.com/PixarAnimationStudios/USD and rather in https://github.com/PixarAnimationStudios/USD/blob/master/BUILDING.md
which make it possible for one to miss in my opinion.

HamedSabri-adsk pushed a commit that referenced this issue Aug 20, 2019
Fixing deselect mode of the proxy shape command.
@kreppene
Copy link

Hi,
im still strugeling with this error, even after pip installing Jinja2

my setup is
windows
USD 0.19.5
compile_maya-usd.log

python build.py --maya-location "C:/Program Files/Autodesk/maya2019/" --pxrusd-location C:/qvisten_pipeline/usd_2/ C:\qvisten_pipeline\deploy\maya-usd

Any help is very much appreciated

@seando-adsk
Copy link
Collaborator

@kreppene Your build log is saying that it cannot find USDGENSCHEMA which from your USD path should be:
C:\qvisten_pipeline\usd_2\bin\usdGenSchema.cmd

Does that file exist? If not, then you probably need to rebuild USD now that you have Jinja2 installed. It is a requirement that is checked when building USD.

@kreppene
Copy link

Thanks @seando-adsk
that was it i recompiled usd again after installing jinja2
now it works

Thanks again

@aka-anoop
Copy link

Found a solution for that problem for me at least! It was that i did not have jinja2 installed. Just do a pip install jinja2

Worked great on mac. Thank you

@HamedSabri-adsk
Copy link
Contributor

Can you close this issue please?

@dtlindsey
Copy link

@HamedSabri-adsk who are you requesting close this? I do not have the ability, though I am the one that opened it. I'm assuming this is managed by someone at Autodesk?

@BigRoy
Copy link
Contributor

BigRoy commented Oct 25, 2019

@cds1503 Is the original creator of the issue and should be able to close it.

Or anyone with higher permissions than Triage can close the Issue: Triage, Write, Maintain or Admin, described as Close, reopen, and assign all issues and pull requests.

@cds1503
Copy link
Author

cds1503 commented Oct 27, 2019

i'm sorry, i watch reply too late :(

murphyeoin added a commit to AnimalLogic/maya-usd that referenced this issue Oct 30, 2019
fa4a230 Merge pull request Autodesk#144 from BlueSkyStudios/pr/fixVariantSwitchRefresh
ffc8706 Merge pull request Autodesk#142 from LumaPictures/pr/misc_fixes
21eea7a Merge pull request Autodesk#141 from LumaPictures/pr/selectUFE_check_proxy_shape
f159bc5 Merge pull request Autodesk#12 from LumaPictures/pr/fixing_proxy_shape_deselect
0774628 selection command: if in remove mode, remove unneeded if branch
a36ae70 selection command: helper.m_paths - only needs to be set once
1f7904c selection command: SelectionEnded event wasn't triggered in toggle mode if no changes made
e2a9edf remove unused var
f1de961 ProxyShapeUI: remove unneeded removeVariantFromPath
21f621c removing pickUfePathPrim from ProxyShapeUI
8fbd621 add test for proxy shape deselection
ee22e96 selection methods: use c++11 foreach, with auto& instead of auto
8181b29 Fixing deselect mode of the proxy shape command.
c719210 fix variant switch refresh bug
b32ba41 ufe selection: check for correct proxy shape before drawing sel highlight

git-subtree-dir: src
git-subtree-split: fa4a230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants