Skip to content

Failed to load plugin 'usdSbsar' #59

@sdromero01

Description

@sdromero01

I'm trying to load only the usdSbsar plug-in to a renderer. I only need sbsar and don't need the tests. But I keep getting this error:

Coding Error: in _Load at line 243 of /dependencies/pxr/base/plug/plugin.cpp -- Failed to load plugin 'usdSbsar': /share/USD-Fileformat-plugins/bin/lib/libfileformatUtils.so: undefined symbol: _ZN34pxrInternal_v0_25_8__pxrReserved__lsISsEERSoS1_RKNS_9SdfListOpIT_EE in '/share/USD-Fileformat-plugins/bin/plugin/usd/libusdSbsar.so'
Coding Error: in Create at line 353 of /dependencies/pxr/usd/ar/resolver.cpp -- Failed to load plugin usdSbsar for SBSARPackageResolver
Coding Error: in _Load at line 243 of /dependencies/pxr/base/plug/plugin.cpp -- Failed to load plugin 'usdSbsar': /share/USD-Fileformat-plugins/bin/lib/libfileformatUtils.so: undefined symbol: _ZN34pxrInternal_v0_25_8__pxrReserved__lsISsEERSoS1_RKNS_9SdfListOpIT_EE in '/share/USD-Fileformat-plugins/bin/plugin/usd/libusdSbsar.so'
Coding Error: in Create at line 353 of /dependencies/pxr/usd/ar/resolver.cpp -- Failed to load plugin usdSbsar for SBSARPackageResolver
Coding Error: in _Load at line 243 of /dependencies/pxr/base/plug/plugin.cpp -- Failed to load plugin 'usdSbsar': /share/USD-Fileformat-plugins/bin/lib/libfileformatUtils.so: undefined symbol: _ZN34pxrInternal_v0_25_8__pxrReserved__lsISsEERSoS1_RKNS_9SdfListOpIT_EE in '/share/USD-Fileformat-plugins/bin/plugin/usd/libusdSbsar.so'
Coding Error: in Create at line 353 of /dependencies/pxr/usd/ar/resolver.cpp -- Failed to load plugin usdSbsar for SBSARPackageResolver
Warning: in _ReportErrors at line 3253 of /dependencies/pxr/usd/usd/stage.cpp -- Could not load sublayer @/share/USD-Fileformat-plugins/sbsar/data/sbsar/CardBoard.sbsar@ of layer @/share/USD-Fileformat-plugins/sbsar/data/simplest.usda@ -- Failed to load plugin 'usdSbsar': /share/USD-Fileformat-plugins/bin/lib/libfileformatUtils.so: undefined symbol: _ZN34pxrInternal_v0_25_8__pxrReserved__lsISsEERSoS1_RKNS_9SdfListOpIT_EE in '/share/USD-Fileformat-plugins/bin/plugin/usd/libusdSbsar.so'; Failed to load plugin 'usdSbsar': /share/USD-Fileformat-plugins/bin/lib/libfileformatUtils.so: undefined symbol: _ZN34pxrInternal_v0_25_8__pxrReserved__lsISsEERSoS1_RKNS_9SdfListOpIT_EE in '/share/USD-Fileformat-plugins/bin/plugin/usd/libusdSbsar.so'; Cannot determine file format for @/share/USD-Fileformat-plugins/sbsar/data/sbsar/CardBoard.sbsar:SDF_FORMAT_ARGS:target=usd@; skipping. (instantiating stage on stage @/share/USD-Fileformat-plugins/sbsar/data/simplest.usda@ <0x58bcb2311d70>)

System info (on docker)

  • Ubuntu 22.04.5 LTS
  • Python 3.10.12
  • cmake version 3.31.6
  • OpenUSD 25.08
  • Ubuntu clang version 14.0.0-1ubuntu1.1, Thread model: posix
  • gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Steps to Reproduce:

  1. Use latest OpenUSD release: wget https://github.com/PixarAnimationStudios/OpenUSD/archive/refs/tags/v25.08.tar.gz then tar -xzvf v25.08.tar.gz
  2. Build OpenUSD with command python3 ./build_scripts/build_usd.py "docker-usd" -v --build-variant release --materialx --tools --usd-imaging --usdview --embree --openimageio --opencolorio --draco --jobs 1
  3. Installed Adobe Substance 3D Materials SDK for Ubuntu (v9.2.3) from the website then ran tar -xf substance-ubuntu22-v9.2.3-04c69995.tar.bz2
  4. git clone [email protected]:adobe/USD-Fileformat-plugins.git
  5. cmake -S . -B build -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release -Dpxr_ROOT=$USD_PATH -Dsubstance_DIR=/share/substance-ubuntu22-v9.2.3-04c69995 -DUSD_FILEFORMATS_ENABLE_SBSAR=ON -DUSD_FILEFORMATS_ENABLE_FBX=OFF -DUSD_FILEFORMATS_ENABLE_GLTF=OFF -DUSD_FILEFORMATS_ENABLE_OBJ=OFF -DUSD_FILEFORMATS_ENABLE_PLY=OFF -DUSD_FILEFORMATS_ENABLE_SPZ=OFF -DUSD_FILEFORMATS_ENABLE_STL=OFF
  6. cmake --build build --config release then cmake --install build --config release
  7. Environment variables (as listed in the env file for docker image)
    USD_PATH=/dependencies/docker-usd/
    pxr_DIR=/dependencies/docker-usd/
    OSL_PATH=/OpenShadingLanguage/dist
    OSL_DIR=/OpenShadingLanguage/dist/lib/cmake/OSL
    PYTHONPATH=/dependencies/docker-usd/lib/python
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/dependencies/docker-usd/bin:/share/USD-Fileformat-plugins/bin/bin:/share/USD-Fileformat-plugins/bin/plugin/usd
    CORTEX_PATH=/cortex
    CMAKE_PREFIX_PATH=/oidn-2.3.3.x86_64.linux
    OpenImageDenoise_DIR=/oidn-2.3.3.x86_64.linux/lib/cmake/OpenImageDenoise-2.3.3
    OpenImageIO_DIR=/dependencies/docker-usd/lib/cmake/OpenImageIO
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/dependencies/docker-usd/lib:/share/USD-Fileformat-plugins/bin/lib
    OpenSubdiv_DIR=/dependencies/docker-usd/lib/cmake/OpenSubdiv
    CPLUS_INCLUDE_PATH=/usr/include/python3.10/
    PXR_PLUGINPATH_NAME=/share/USD-Fileformat-plugins/bin/plugin/usd
  8. When I built my renderer with the plug-in, I'd get this error:
    [ 94%] Linking CXX executable bin/renderer
    /usr/bin/ld: CMakeFiles/renderer.dir/src/main.cpp.o: undefined reference to symbol '_ZN3tbb10interface78internal15task_arena_base21internal_current_slotEv'
    /usr/bin/ld: /dependencies/docker-usd/lib/libtbb.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
    gmake[2]: *** [CMakeFiles/renderer.dir/build.make:217: bin/renderer] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:187: CMakeFiles/renderer.dir/all] Error 2
    gmake: *** [Makefile:91: all] Error 2
    which I resolved by entering export LDFLAGS="-Wl,--copy-dt-needed-entries" in the command line.

Could the USD version be the reason for the error or did I do something wrong? The minimum version of usd I could use on the renderer is 25.05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions