Git Product home page Git Product logo

Comments (3)

bareya avatar bareya commented on June 12, 2024

Hi @d98mapet. Have you built Tangent's Cycles https://github.com/tangent-opensource/cycles ?
If you have, then Cycles cmake script will export cmake targets and configuration to a directory you passed through CMAKE_INSTALL_PREFIX. Next step would be to let know cmake where that configuration is by adding it to CMAKE_PREFIX_PATH. Let me know if you need more hints.

btw. Readmes are old and need to be updated...

from hdblackbird.

d98mapet avatar d98mapet commented on June 12, 2024

aha, no I built cycles from the original blender/standalone repo. I will try to build using the repo above tomorrow.
Another question: One the usd side, it fails to find the usdSchemaGentrator.py (~ish, on a another computer so can't look it up atm). This file exists within the usd repo, but not present in the install that pixars script builds. But I guess I should point to the install as USD_ROOT and not the original repo?

Thanks for the fast reply, can't wait to try it out!

from hdblackbird.

bareya avatar bareya commented on June 12, 2024

HdBlackbird uses usdGenSchema to create UsdCycles schema cpp files on the fly. usdGenSchema is usually installed with USD and that script should be present in the bin of USD installation directory. Here you can have a look that that the script uses PATH environment variable to find usdGenSchema, if that fails it will fallback to search usdGenSchema.py.
For us, this approach has been working so far on both platforms - Windows and Linux. I suspect you have to add usd_install/bin path to your environment variables. That would make the script available for cmake generator. If you find better approach to that please feel free to submit a PR. I would be happy to review it.

Speaking of USD_ROOT, unfortunately documentation is obsolete. We started to move away from using of environment variables and right now we rely on CMAKE_PREFIX_PATH to discover the modules that are needed for the compilation. Instead of using PATH environment variables to find usdGenSchema maybe we could use variables exported by usd cmake config:

# - Configuration file for the pxr project
# Defines the following variables:
# PXR_INCLUDE_DIRS  - Root include directory for the installed project.
# PXR_LIBRARIES     - List of all libraries, by target name.
# PXR_foo_LIBRARY   - Absolute path to individual libraries.
# The preprocessor definition PXR_STATIC will be defined if appropriate

I REALLY need to find the time to update the documentation.

from hdblackbird.

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.