Skip to content

macOS build: GEOMGUI plugin discovery + diagnostic#26

Open
basile-simvia wants to merge 1 commit into
SalomePlatform:masterfrom
simvia-tech:local/macos-apple-silicon-9.14.0
Open

macOS build: GEOMGUI plugin discovery + diagnostic#26
basile-simvia wants to merge 1 commit into
SalomePlatform:masterfrom
simvia-tech:local/macos-apple-silicon-9.14.0

Conversation

@basile-simvia

Copy link
Copy Markdown

@mohd-afeef-badri @nitawa as discussed during our video call last week, here are the changes related to the Salome 9.14 version on macOS.

src/GEOMGUI/GeometryGUI.cxx:

  • On APPLE, read LD_LIBRARY_PATH instead of DYLD_LIBRARY_PATH when searching for plugin libraries. On macOS, DYLD_* variables are stripped from the environment by SIP and by Qt's launching, so the GUI cannot see them; the workspace exports LD_LIBRARY_PATH as a fallback for plugin discovery.
  • In OnGUIEvent(), when a plugin library fails to load, show the attempted library name (libName) in the error dialog instead of the static 'GEOM_ERR_LIB_NOT_FOUND' label, so the user can see which plugin is missing.
  • Minor whitespace clean-up.

src/GEOMGUI/GeometryGUI.cxx:
- On __APPLE__, read LD_LIBRARY_PATH instead of DYLD_LIBRARY_PATH when
  searching for plugin libraries. On macOS, DYLD_* variables are
  stripped from the environment by SIP and by Qt's launching, so the
  GUI cannot see them; the workspace exports LD_LIBRARY_PATH as a
  fallback for plugin discovery.
- In OnGUIEvent(), when a plugin library fails to load, show the
  attempted library name (libName) in the error dialog instead of the
  static 'GEOM_ERR_LIB_NOT_FOUND' label, so the user can see which
  plugin is missing.
- Minor whitespace clean-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant