Open rgov opened 8 months ago
No, it looks like somehow it is loading ... every single binary in /opt/homebrew. Impressive.
Is there a plugin auto discovery and loading mechanism perhaps?
I think what might be happening is something funky happening with the plugin loading code, where it thinks /opt/homebrew is the plugin search directory so it's trying to dlopen() everything there?
Like I said, system wide installation on macos has never been tested.
Could you point me to the plugin loading code and what the install paths look like on Linux?
It looks like we have a workaround for this exact issue but /opt/homebrew isn't included.
https://github.com/ngscopeclient/scopehal/blob/master/scopehal/scopehal.cpp?ts=4#L299
https://github.com/ngscopeclient/scopehal-apps/issues/393
Workaround:
# Patch plugin enumeration code to fix #393, #623
inreplace "lib/scopehal/scopehal.cpp",
'if(binDir.find("/usr") != 0)',
"if(binDir.find(\"#{HOMEBREW_PREFIX}\") != 0)"
On macOS 14.0, I built ngscopeclient 6056adc479ba2a80531e1b535b7b7052c2a8a153 and got it running with the workarounds covered in other issues plus the environment variables from https://github.com/ngscopeclient/scopehal-docs/pull/58.
When starting up, I get several complaints from Tensorflow, then the program aborts.
... are you using Tensorflow?