Code Monkey home page Code Monkey logo

Comments (4)

bfloch avatar bfloch commented on June 14, 2024

The related crash might be fixed with the shared build.

Sadly, this option was added in 1.38.3 according to:
https://github.com/AcademySoftwareFoundation/MaterialX/releases/tag/v1.38.3

And the XML Reader API changed in that version, I believe as such it requires USD 22.08 and MaterialX >1.38.3.

from aswf-docker.

Kundanagrawalofficial avatar Kundanagrawalofficial commented on June 14, 2024

It seems that the MaterialX library is being built as a static library, which means that the library files are not being placed in the /usr/local/lib directory. Instead, the library files are being left in the pxrTargets.cmake file, which causes subsequent builds that use the CMake configuration to try to link against them.

One solution to this issue could be to move to using shader libraries, which are typically shared libraries that can be easily shared between multiple projects. This would make it easier to manage the library files and would eliminate the need to include them in the pxrTargets.cmake file.

Another solution could be to provide the static libraries in a separate location, such as /usr/local/lib, so that they can be easily found and linked to by other projects. This would require updating the CMake configuration to specify the correct library path and linking against the correct libraries.

It's also possible to provide both options, static and shared libraries, and let the users choose which one to use.

Ultimately, the best solution will depend on the specific requirements of the project and the needs of the users. It's important to consider the trade-offs between different options and to communicate any changes clearly to the community.

from aswf-docker.

aloysbaillet avatar aloysbaillet commented on June 14, 2024

MaterialX is indeed built as a static lib, as I left it as the default. I'd be happy to change this, but note that I just fixed an issue where materialx files where completely missing from ci-vfxall images.
Here's what you get in the newly released image:

docker run -it --rm aswf/ci-vfxall:2022-clang14.3
[root@e23d9733a6b7 aswf]# cd /usr/local
[root@e23d9733a6b7 local]# find .|grep libMat
./lib/libMaterialXRenderOsl.a
./lib/libMaterialXGenOsl.a
./lib/libMaterialXRender.a
./lib/libMaterialXGenMdl.a
./lib/libMaterialXGenGlsl.a
./lib/libMaterialXCore.a
./lib/libMaterialXGenShader.a
./lib/libMaterialXRenderGlsl.a
./lib/libMaterialXFormat.a
./lib/libMaterialXRenderHw.a

from aswf-docker.

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.