Open rgov opened 8 months ago
I added the CMake argument -DCMAKE_INSTALL_RPATH="@loader_path/../lib;/opt/VulkanSDK/1.3.231.1/macOS/lib"
to work around the issue.
Load command 50
cmd LC_RPATH
cmdsize 48
path /opt/VulkanSDK/1.3.231.1/macOS/lib (offset 12)
Load command 54
cmd LC_RPATH
cmdsize 32
path @loader_path/../lib (offset 12)
Yeah I don't think we currently have install support on macos (i.e. it's assumed you are running from the build directory).
Not surprised there's rough edges if you try to do a systemwide install, but the feedback is welcome as proper installability/packaging is one of the things we're trying to fix before the v0.1 release.
You probably need -DCMAKE_INSTALL_RPATH=#{rpath}
in your formula, as many other formulas also have this.
I built ngscopeclient on macOS 14.0. The binary links in several libraries using
@rpath
:However the binary does not contain any
LC_RPATH
load commands, so@rpath
is undefined.Note: I built using the Homebrew formula in this issue.