Skip to content

Compilation and launch errors on macos #1

Description

@cpichard

Hi,
I tried to compile following the instructions and I ran into a linking issue:

Undefined symbols for architecture arm64:
  "ad_var_add(unsigned long long, unsigned long long)", referenced from:
      pxrInternal_v0_26_3__pxrReserved__::SceneModel<drjit::DiffArray<(JitBackend)3, float>, mitsuba::Color<drjit::DiffArray<(JitBackend)3, float>, 3ul>>::Render(pxrInternal_v0_26_3__pxrReserved__::HdRenderPass const*, pxrInternal_v0_26_3__pxrReserved__::HdCamera const*) in scene_manager.cc.o

I appears that those symbols are built in the library drjit-extra in mitsuba3 and drjit-extra is not linked against hdmitsuba. This patch fixed the issue.

patch.zip

After applying the patch it compiles fine. I setup the environment variables with setpath.sh, launch my application and when switching to mitsuba render delegate it crashes with:

libc++abi: terminating due to uncaught exception of type std::runtime_error: jit_init_thread_state(): the LLVM backend is inactive because the LLVM shared library ("libLLVM.dylib") could not be found! Set the DRJIT_LIBLLVM_PATH environment variable to specify its path.
Abort trap: 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions