Skip to content
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

Path of libnomacsCore.dylib is not updated on macOS #1013

Open
Dark-Schneider-666 opened this issue Jan 19, 2024 · 0 comments
Open

Path of libnomacsCore.dylib is not updated on macOS #1013

Dark-Schneider-666 opened this issue Jan 19, 2024 · 0 comments

Comments

@Dark-Schneider-666
Copy link

Describe the bug
The app always tries to load libnomacsCore.dylib from the created "build" folder to compile.
Also the app icon is not set.

To Reproduce

  1. Follow the instructions for compiling on macOS with Apple Silicon.
  2. Works fine, but no matter if you use 'make install' or copy, at the time we rename or delete the build folder it cannot open because cannot find libnomacsCore.dylib.

Expected behavior
Be able to install or place the app anywhere.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Version Sonoma

Additional context
SOLVED this:

  1. Compile, but DO NOT INSTALL with 'make install'.
  2. Just change (not deleting all) the rpath "/<nomacs-clone_folder>/build" by "usr/local/lib", using the install_name_tool -rpath parameter (instead the -delete_rpath), leaving the others (that are homebrew library folders), for both the 'libnomacsCore.dylib' library and 'nomacs.app/Contents/MacOS/nomacs' binary.
  3. Copy or move the libnomacsCore.dylib to /usr/local/lib, no admin permission required.
  4. Copy or move nomacs.app to /Applications or any other location.
  5. Delete the nomacs github clone folder.
  6. Now we can launch nomacs.app and works fine, taking the libnomacsCore.dylib from /usr/local/lib.

Then the installer 'make install' could be updated to make this, installing the app at /Applications folder and placing the libnomacsCore.dylib at /usr/local/lib.

The icon issue was solved just dragging manually into file info, maybe there is a command line tool for that.

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

No branches or pull requests

1 participant