Git Product home page Git Product logo

usd's Introduction

Universal Scene Description

Universal Scene Description (USD) is an efficient, scalable system for authoring, reading, and streaming time-sampled scene description for interchange between graphics applications.

For more details, please visit the web site here.

Build Status

Linux Windows macOS
dev Build Status Build Status Build Status
release Build Status Build Status Build Status

Additional Documentation

Getting Help

Need help understanding certain concepts in USD? See Getting Help with USD or visit our forum.

If you are experiencing undocumented problems with the software, please file a bug.

Supported Platforms

USD is primarily developed on Linux platforms (CentOS 7), but is built, tested and supported on macOS and Windows.

Please see VERSIONS.md for explicitly tested versions.

Dependencies

Required:

Optional:

See 3rd Party Library and Application Versions for version information.

Additional dependencies are required for the following components. These components may be disabled at build-time. For further details see Advanced Build Configuration.

Imaging and USD Imaging

Required:

Optional:

usdview

Required:

Getting and Building the Code

The simplest way to build USD is to run the supplied build_usd.py script. This script will download required dependencies and build and install them along with USD in a given directory.

Follow the instructions below to run the script with its default behavior, which will build the USD core libraries, Imaging, and USD Imaging components. For more options and documentation, run the script with the --help parameter.

See Advanced Build Configuration for examples and additional documentation for running cmake directly.

1. Install prerequisites (see Dependencies for required versions)

  • Required:
    • C++ compiler:
      • gcc
      • Xcode
      • Microsoft Visual Studio
    • CMake
  • Optional (Can be ignored by passing --no-python as an argument to build_usd.py)

2. Download the USD source code

You can download source code archives from GitHub or use git to clone the repository.

> git clone https://github.com/PixarAnimationStudios/OpenUSD
Cloning into 'USD'...

3. Run the script

Linux:

For example, the following will download, build, and install USD's dependencies, then build and install USD into /usr/local/USD.

> python USD/build_scripts/build_usd.py /usr/local/USD
MacOS:

In a terminal, run xcode-select to ensure command line developer tools are installed. Then run the script.

For example, the following will download, build, and install USD's dependencies, then build and install USD into /opt/local/USD.

> python USD/build_scripts/build_usd.py /opt/local/USD
Windows:

Launch the "x64 Native Tools Command Prompt" for your version of Visual Studio and run the script in the opened shell. Make sure to use the 64-bit (x64) command prompt and not the 32-bit (x86) command prompt.

See https://docs.microsoft.com/en-us/cpp/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line for more details.

For example, the following will download, build, and install USD's dependencies, then build and install USD into C:\USD.

C:\> python USD\build_scripts\build_usd.py "C:\USD"

4. Try it out

Set the environment variables specified by the script when it finishes and launch usdview with a sample asset.

> usdview USD/extras/usd/tutorials/convertingLayerFormats/Sphere.usda

Contributing

If you'd like to contribute to USD (and we appreciate the help!), please see the Contributing page in the documentation for more information.

usd's People

Contributors

blevin avatar c64kernal avatar clach avatar comand avatar davidgyu avatar gitamohr avatar jacques-gasselin avatar jloy avatar klucknav avatar lumonix avatar marktucker avatar mattyjams avatar mrawde avatar mwdd avatar nvmkuruc avatar pixar-oss avatar pmolodo avatar poljere avatar rajabala avatar sdao avatar sgustafso avatar shriramiyer avatar spiffmon avatar stevelavietes avatar sunyab avatar superfunc avatar takahito-tejima avatar tallytalwar avatar tcauchois avatar unhyperbolic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usd's Issues

WebGPU branch doesn't build

Description of Issue

Check out: https://github.com/autodesk-forks/USD/tree/adsk/feature/webgpu

Steps to Reproduce

  1. Run docker command to build
docker build -t usd-webgpu .
  1. Got errors:
44.67 emcmake: error: 'cmake -DCMAKE_INSTALL_PREFIX=/src/USD_emscripten -DCMAKE_PREFIX_PATH=/src/USD_emscripten -DCMAKE_BUILD_TYPE=Release -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF "-DCMAKE_CXX_FLAGS=-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" "-DCMAKE_EXE_LINKER_FLAGS=-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF /src/USD_emscripten/src/tint -DCMAKE_TOOLCHAIN_FILE=/tmp/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/tmp/emsdk/node/16.20.0_64bit/bin/node' failed (returned 1)
44.67
44.67 ERROR: Failed to run 'emcmake cmake -DCMAKE_INSTALL_PREFIX="/src/USD_emscripten" -DCMAKE_PREFIX_PATH="/src/USD_emscripten" -DCMAKE_BUILD_TYPE=Release    -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" -DCMAKE_EXE_LINKER_FLAGS="-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF "/src/USD_emscripten/src/tint"'

System Information (OS, Hardware)

Ubuntu 22.04

Package Versions

Build Flags

[+] Building 159.8s (16/16) FINISHED                                                                                                                                                                                   docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                             0.1s
 => => transferring dockerfile: 1.04kB                                                                                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                0.1s
 => => transferring context: 2B                                                                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                                                                                                  0.9s
 => [ 1/12] FROM docker.io/library/ubuntu:20.04@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba                                                                                                          0.0s
 => [internal] load build context                                                                                                                                                                                              113.3s
 => => transferring context: 16.52GB                                                                                                                                                                                           113.0s
 => CACHED [ 2/12] RUN apt-get -y update && apt-get install -y        python-setuptools         libglew-dev         libxrandr-dev         libxcursor-dev         libxinerama-dev         libxi-dev         python3-pip           0.0s
 => CACHED [ 3/12] RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs libglib2.0-0                                                                   0.0s
 => CACHED [ 4/12] RUN pip install --upgrade pip                                                                                                                                                                                 0.0s
 => CACHED [ 5/12] RUN pip install PySide2 PyOpenGL Jinja2                                                                                                                                                                       0.0s
 => CACHED [ 6/12] RUN apt remove cmake                                                                                                                                                                                          0.0s
 => CACHED [ 7/12] RUN pip install cmake==3.20.3                                                                                                                                                                                 0.0s
 => CACHED [ 8/12] RUN mkdir -p tmp && cd tmp && git clone --recursive https://github.com/emscripten-core/emsdk                                                                                                                  0.0s
 => CACHED [ 9/12] RUN cd /tmp/emsdk && ./emsdk install 2.0.24                                                                                                                                                                   0.0s
 => CACHED [10/12] RUN cd /tmp/emsdk && ./emsdk activate 2.0.24 --permanent                                                                                                                                                      0.0s
 => CACHED [11/12] COPY . /src/                                                                                                                                                                                                  0.0s
 => ERROR [12/12] RUN source /tmp/emsdk/emsdk_env.sh && cd /src && python3 ./build_scripts/build_usd.py --emscripten USD_emscripten                                                                                             45.0s
------
 > [12/12] RUN source /tmp/emsdk/emsdk_env.sh && cd /src && python3 ./build_scripts/build_usd.py --emscripten USD_emscripten:
1.787 Setting up EMSDK environment (suppress these messages with EMSDK_QUIET=1)
1.787 Adding directories to PATH:
1.787 PATH += /tmp/emsdk
1.787 PATH += /tmp/emsdk/upstream/emscripten
1.787
1.787 Setting environment variables:
1.787 PATH = /tmp/emsdk:/tmp/emsdk/upstream/emscripten:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
1.787 EMSDK = /tmp/emsdk
1.787 EMSDK_NODE = /tmp/emsdk/node/16.20.0_64bit/bin/node
44.67 The following components were disabled because they are not compatible with emscripten: Python, examples, tutorials, tools, usdview, materialX
44.67
44.67 Building with settings:
44.67   USD source directory          /src
44.67   USD install directory         /src/USD_emscripten
44.67   3rd-party source directory    /src/USD_emscripten/src
44.67   3rd-party install directory   /src/USD_emscripten
44.67   Build directory               /src/USD_emscripten/build
44.67   CMake generator               Default
44.67   CMake toolset                 Default
44.67   Emscripten                    Enabled
44.67   Node                          Disabled
44.67   DAWN                          Disabled
44.67   Downloader                    curl
44.67
44.67   Building                      Shared libraries
44.67     Variant                     Release
44.67     Target
44.67     Imaging                     On
44.67       Ptex support:             Off
44.67       OpenVDB support:          Off
44.67       OpenImageIO support:      Off
44.67       OpenColorIO support:      Off
44.67       PRMan support:            Off
44.67     UsdImaging                  On
44.67       usdview:                  Off
44.67     Python support              Off
44.67       Python Debug:             Off
44.67       Python docs:              Off
44.67     Documentation               Off
44.67     Tests                       Off
44.67     Examples                    Off
44.67     Tutorials                   Off
44.67     Tools                       Off
44.67     Alembic Plugin              Off
44.67       HDF5 support:             Off
44.67     Draco Plugin                Off
44.67     MaterialX Plugin            Off
44.67
44.67   Dependencies                  boost, TBB, Tint, Shaderc, OpenSubdiv
44.67 STATUS: Installing boost...
44.67 STATUS: Installing TBB...
44.67 STATUS: Installing Tint...
44.67 -- -- Listing dependencies from /src/USD_emscripten/src/tint
44.67 -- -- Fetching dependency 'third_party/vulkan-deps'
44.67 -- -- Shallow cloning 'https://chromium.googlesource.com/vulkan-deps' at '5b82cc4a7eaa9befcf893bd0528b9cf93aae740a' into '/src/USD_emscripten/src/tint/third_party/vulkan-deps'
44.67 -- -- Checking out tag '5b82cc4a7eaa9befcf893bd0528b9cf93aae740a'
44.67 -- -- Listing dependencies from /src/USD_emscripten/src/tint/third_party/vulkan-deps
44.67 -- -- Fetching dependency 'spirv-headers/src'
44.67 -- -- Shallow cloning 'https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers' at 'aa331ab0ffcb3a67021caa1a0c1c9017712f2f31' into '/src/USD_emscripten/src/tint/third_party/vulkan-deps/spirv-headers/src'
44.67 -- -- Checking out tag 'aa331ab0ffcb3a67021caa1a0c1c9017712f2f31'
44.67 -- -- Fetching dependency 'spirv-tools/src'
44.67 -- -- Shallow cloning 'https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools' at '95f93810bbae12e1a601a3a5a5d975e5558a2994' into '/src/USD_emscripten/src/tint/third_party/vulkan-deps/spirv-tools/src'
44.67 -- -- Checking out tag '95f93810bbae12e1a601a3a5a5d975e5558a2994'
44.67 -- -- Listing dependencies from /src/USD_emscripten/src/tint/third_party/vulkan-deps/spirv-tools/src
44.67 -- -- Fetching dependency 'glslang/src'
44.67 -- -- Shallow cloning 'https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang' at '6d41bb9c557c5a0eec61ffba1f775dc5f717a8f7' into '/src/USD_emscripten/src/tint/third_party/vulkan-deps/glslang/src'
44.67 -- -- Checking out tag '6d41bb9c557c5a0eec61ffba1f775dc5f717a8f7'
44.67 -- -- Listing dependencies from /src/USD_emscripten/src/tint/third_party/vulkan-deps/glslang/src
44.67 -- -- Fetching dependency 'third_party/abseil-cpp'
44.67 -- -- Shallow cloning 'https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp' at 'bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc' into '/src/USD_emscripten/src/tint/third_party/abseil-cpp'
44.67 -- -- Checking out tag 'bc3ab29356a081d0b5dd4ac55e30f4b45d8794cc'
44.67 2023-08-03 23:33
44.67 emcmake cmake -DCMAKE_INSTALL_PREFIX="/src/USD_emscripten" -DCMAKE_PREFIX_PATH="/src/USD_emscripten" -DCMAKE_BUILD_TYPE=Release    -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" -DCMAKE_EXE_LINKER_FLAGS="-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF "/src/USD_emscripten/src/tint"
44.67 configure: cmake -DCMAKE_INSTALL_PREFIX=/src/USD_emscripten -DCMAKE_PREFIX_PATH=/src/USD_emscripten -DCMAKE_BUILD_TYPE=Release -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF "-DCMAKE_CXX_FLAGS=-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" "-DCMAKE_EXE_LINKER_FLAGS=-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF /src/USD_emscripten/src/tint -DCMAKE_TOOLCHAIN_FILE=/tmp/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/tmp/emsdk/node/16.20.0_64bit/bin/node
44.67 -- Tint build samples: OFF
44.67 -- Tint build docs: OFF
44.67 -- Tint build docs with warn as error: OFF
44.67 -- Tint build SPIR-V reader: ON
44.67 -- Tint build WGSL reader: OFF
44.67 -- Tint build GLSL writer: ON
44.67 -- Tint build HLSL writer: OFF
44.67 -- Tint build MSL writer: OFF
44.67 -- Tint build SPIR-V writer: OFF
44.67 -- Tint build WGSL writer: ON
44.67 -- Tint build Syntax Tree writer: OFF
44.67 -- Tint build IR: ON
44.67 -- Tint build fuzzers: OFF
44.67 -- Tint build SPIRV-Tools fuzzer: OFF
44.67 -- Tint build AST fuzzer: OFF
44.67 -- Tint build regex fuzzer: OFF
44.67 -- Tint build benchmarks: OFF
44.67 -- Tint build tests: OFF
44.67 -- Tint build with ASAN: OFF
44.67 -- Tint build with MSAN: OFF
44.67 -- Tint build with UBSAN: OFF
44.67 -- Tint build checking [chromium-style]: OFF
44.67 -- Tint build remote-compile tool: OFF
44.67 -- Using python3
44.67 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
44.67 CMake Warning (dev) at third_party/vulkan-deps/spirv-tools/src/source/CMakeLists.txt:380 (add_library):
44.67   ADD_LIBRARY called with SHARED option but the target platform does not
44.67   support dynamic linking.  Building a STATIC library instead.  This may lead
44.67   to problems.
44.67 This warning is for project developers.  Use -Wno-dev to suppress it.
44.67
44.67 CMake Warning at third_party/abseil-cpp/absl/copts/AbseilConfigureCopts.cmake:70 (message):
44.67   Value of CMAKE_SYSTEM_PROCESSOR (x86) is unknown and cannot be used to set
44.67   ABSL_RANDOM_RANDEN_COPTS
44.67 Call Stack (most recent call first):
44.67   third_party/abseil-cpp/CMake/AbseilHelpers.cmake:18 (include)
44.67   third_party/abseil-cpp/CMakeLists.txt:81 (include)
44.67
44.67
44.67 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
44.67 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
44.67 -- Looking for pthread_create in pthreads
44.67 -- Looking for pthread_create in pthreads - not found
44.67 -- Looking for pthread_create in pthread
44.67 -- Looking for pthread_create in pthread - not found
44.67 -- Check if compiler accepts -pthread
44.67 -- Check if compiler accepts -pthread - no
44.67 CMake Error at /usr/local/lib/python3.8/dist-packages/cmake/data/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
44.67   Could NOT find Threads (missing: Threads_FOUND)
44.67 Call Stack (most recent call first):
44.67   /usr/local/lib/python3.8/dist-packages/cmake/data/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
44.67   /usr/local/lib/python3.8/dist-packages/cmake/data/share/cmake-3.20/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
44.67   third_party/abseil-cpp/CMakeLists.txt:106 (find_package)
44.67
44.67
44.67 -- Configuring incomplete, errors occurred!
44.67 See also "/src/USD_emscripten/build/tint/CMakeFiles/CMakeOutput.log".
44.67 See also "/src/USD_emscripten/build/tint/CMakeFiles/CMakeError.log".
44.67 emcmake: error: 'cmake -DCMAKE_INSTALL_PREFIX=/src/USD_emscripten -DCMAKE_PREFIX_PATH=/src/USD_emscripten -DCMAKE_BUILD_TYPE=Release -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF "-DCMAKE_CXX_FLAGS=-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" "-DCMAKE_EXE_LINKER_FLAGS=-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF /src/USD_emscripten/src/tint -DCMAKE_TOOLCHAIN_FILE=/tmp/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/tmp/emsdk/node/16.20.0_64bit/bin/node' failed (returned 1)
44.67
44.67 ERROR: Failed to run 'emcmake cmake -DCMAKE_INSTALL_PREFIX="/src/USD_emscripten" -DCMAKE_PREFIX_PATH="/src/USD_emscripten" -DCMAKE_BUILD_TYPE=Release    -DTINT_BUILD_SPV_READER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_HLSL_WRITER=OFF -DTINT_BUILD_MSL_WRITER=OFF -DTINT_BUILD_SPV_WRITER=OFF -DTINT_BUILD_WGSL_WRITER=ON -DTINT_BUILD_WGSL_READER=OFF -DTINT_BUILD_DOCS=OFF -DTINT_BUILD_SAMPLES=OFF -DTINT_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-Wno-unsafe-buffer-usage -Wno-disabled-macro-expansion -Wno-#warnings -Wno-error -pthread" -DCMAKE_EXE_LINKER_FLAGS="-sSTACK_SIZE=5MB -sSTACK_SIZE=5MB -sDEFAULT_PTHREAD_STACK_SIZE=2MB" -DBUILD_SHARED_LIBS=OFF "/src/USD_emscripten/src/tint"'
44.67 See /src/USD_emscripten/build/tint/log.txt for more details.
------
Dockerfile:32
--------------------
  30 |
  31 |     COPY . /src/
  32 | >>> RUN source /tmp/emsdk/emsdk_env.sh && cd /src && python3 ./build_scripts/build_usd.py --emscripten USD_emscripten
  33 |
--------------------
ERROR: failed to solve: process "/bin/bash -c source /tmp/emsdk/emsdk_env.sh && cd /src && python3 ./build_scripts/build_usd.py --emscripten USD_emscripten" did not complete successfully: exit code: 1

Error when executing in Docker

I'm trying to build from the usdjs branch using the Dockerfile. However, when executing on Docker I aways get the following message when executing the "Installing TBB" step when running the USD build_usd.py script:

"ERROR: Failed to extract archive master.zip: unrecognized archive file type"

Is there any known work around this issue?

Python test suite not run for WebAssembly build

Description of Issue

We want to be able to run the official USD test suite for the WebAssembly build. This uses python and therefore we need to be able to run Python in WebAssembly.

Candidate technologies to enable this are python-wasmer, Pyodide and maybe PyScript

This Issue is a requirement to be able to merge the WebAssembly changes upstream

emscriptten built wasm module didn't load and had crash in reactjs project.

Hi,
I tried to build wasm as single-thread mode by set USE_PTHREADS=0 and tried to load it in a simple threejs based react-js project.
But it failed to load and crashed with following error.

Uncaught (in promise) RuntimeError: memory access out of bounds
at emHdBindings.wasm:0x5c7ae4
at emHdBindings.wasm:0x5ca39e
at emHdBindings.wasm:0x52afbf
at emHdBindings.wasm:0x537a96
at emHdBindings.wasm:0x6591c4
at emHdBindings.wasm:0x52bbdc
at emHdBindings.wasm:0x3e44d8
at emHdBindings.wasm:0x3e413b
at emHdBindings.wasm:0x1839c
at emHdBindings.wasm:0x18001

Btw, it worked with webpack based threejs-vanillar project.
It is strange why it does not work in reactjs based.
Please advice me if anybody has clue.

@kaischroeder , Could you check my issue?

SharedArrayBuffer dependency

Can we have a way to not be dependent on SharedArrayBuffer and just have the WebAssembly return an ArrayBuffer by value instead?

Allowing SharedArrayBuffer is very restrictive.

This is a duplicate issue.

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.