scopehal-apps icon indicating copy to clipboard operation
scopehal-apps copied to clipboard

macOS: ngscopeclient binary is missing RPATH load command

Open rgov opened this issue 8 months ago • 4 comments

I built ngscopeclient on macOS 14.0. The binary links in several libraries using @rpath:

% otool -L $(which ngscopeclient) | grep @rpath  
	@rpath/libscopeprotocols.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libscopeexports.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libscopehal.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libvulkan.1.dylib (compatibility version 1.0.0, current version 1.3.231)

However the binary does not contain any LC_RPATH load commands, so @rpath is undefined.

% ngscopeclient                              
dyld[45566]: Library not loaded: @rpath/libscopeprotocols.dylib
  Referenced from: <87EE124C-9597-35DF-9F0A-5A19B4B39F9F> /opt/homebrew/Cellar/ngscopeclient/HEAD-6056adc/bin/ngscopeclient
  Reason: no LC_RPATH's found

Note: I built using the Homebrew formula in this issue.

rgov avatar Oct 29 '23 20:10 rgov