Skip to content

Missing dylibs in macOS builds - Bug in CMake files ? #419

@nicolaspopravka

Description

@nicolaspopravka

On macOS, I get the DllNotFoundException: UsdCs assembly:<unknown assembly> type:<unknown type> member:(null) error when trying to import USD files using my custom build of the USD package. This is on macOS only. What’s suspicious is what I see in my local package:

pops-mbp:USD Unity SDK nicolas$ ls -l package/com.unity.formats.usd/Runtime/Plugins/x86_64/MacOS/UsdCs.bundle/Contents/Frameworks
total 46336
lrwxr-xr-x  1 nicolas  staff        23 Nov 10 10:45 libAlembic.1.7.dylib -> libAlembic.1.7.10.dylib
lrwxr-xr-x  1 nicolas  staff        20 Nov 10 10:45 libHalf.12.dylib -> libHalf.12.0.0.dylib
lrwxr-xr-x  1 nicolas  staff        23 Nov 10 10:45 libIex-2_2.12.dylib -> libIex-2_2.12.0.0.dylib
lrwxr-xr-x  1 nicolas  staff        27 Nov 10 10:45 libIexMath-2_2.12.dylib -> libIexMath-2_2.12.0.0.dylib
lrwxr-xr-x  1 nicolas  staff        26 Nov 10 10:45 libIlmImf-2_2.22.dylib -> libIlmImf-2_2.22.0.0.dylib
lrwxr-xr-x  1 nicolas  staff        29 Nov 10 10:45 libIlmThread-2_2.12.dylib -> libIlmThread-2_2.12.0.0.dylib
lrwxr-xr-x  1 nicolas  staff        25 Nov 10 10:45 libImath-2_2.12.dylib -> libImath-2_2.12.0.0.dylib
-rw-r--r--  1 nicolas  staff    261248 Nov  9 18:29 libtbb.dylib
-rw-r--r--  1 nicolas  staff  23459184 Nov  9 20:27 libusd_ms.dylib

versus what I see in the USD package installed in my Unity project from the official registry:

pops-mbp:My project nicolas$ ls -l Library/PackageCache/com.unity.formats.usd\@3.0.0-exp.5/Runtime/Plugins/x86_64/MacOS/UsdCs.bundle/Contents/Frameworks
-rw-r--r--@ 1 nicolas  staff   1837544 Oct 19 16:25 libAlembic.1.7.dylib
-rw-r--r--@ 1 nicolas  staff    281560 Oct 19 16:25 libHalf.12.dylib
-rw-r--r--@ 1 nicolas  staff     71296 Oct 19 16:25 libIex-2_2.12.dylib
-rw-r--r--@ 1 nicolas  staff     16472 Oct 19 16:25 libIexMath-2_2.12.dylib
-rw-r--r--@ 1 nicolas  staff   3038864 Oct 19 16:25 libIlmImf-2_2.22.dylib
-rw-r--r--@ 1 nicolas  staff     30064 Oct 19 16:25 libIlmThread-2_2.12.dylib
-rw-r--r--@ 1 nicolas  staff     72832 Oct 19 16:25 libImath-2_2.12.dylib
-rw-r--r--@ 1 nicolas  staff    263016 Oct 19 16:25 libtbb.dylib
-rw-r--r--@ 1 nicolas  staff  24054536 Oct 19 16:25 libusd_ms.dylib

Notice the symlinks to missing USD artifacts in my local build. I tried rebuilding using different versions of CMake as old as 3.13 and all create symlinks. Looking at the CMake files, I see this list and this logic to install these files. However, it looks like on macOS this only install the symlinks and not the actual dylibs. Am I missing something ?

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