-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: "make install" is not putting data files in search path #624
Comments
Fonts, shaders, textures, etc. all use FindDataFile() in lib/scopehal/scopehal.cpp which checks g_searchPaths. This is initialized by InitializeSearchPaths() in scopehal.cpp. It looks like for macports it expects to find stuff in /opt/local/share/ngscopeclient or /opt/local/share/scopehal. How you ended up in /opt/homebrew/opt/ngscopeclient/share/ is anybody's guess but something is clearly wrong with the CMake install config. |
It looks like the font being passed is an empty string, maybe.
|
Nope it looks like that's correct for Homebrew. The "Homebrew prefix" directory mimics the typical Unix layout,
|
That's probably because FindDataFile() is failing, and we're not catching the error immediately. But you're going to keep hitting this issue all over the place with every data file it tries to load. The root cause is still that the files are not being installed in the search path. So maybe we need to add $homebrew/opt/ngscopeclient to the search path list? How does one get the Homebrew prefix if it's not /opt/homebrew? I guess we can try and extract this from the application binary path? |
In my ongoing adventure to get ngscopeclient to run from a global install location on macOS:
It looks like there are some fonts installed:
I don't know exactly how font paths are derived, it seems to use the preferences system. I don't have any
~/.config/ngscopeclient/preferences.yml
to try tweaking.The text was updated successfully, but these errors were encountered: