LuxCore icon indicating copy to clipboard operation
LuxCore copied to clipboard

Luxcoreui not finding libluxcore.dylib on macos arm64

Open zohozer opened this issue 5 months ago • 2 comments

Hi all. I do want to install the "LuxCore-Samples-macOS-ARM64.zip" but I can't find a way on how to install this package.

I do have a "bin" and a "lib" in the "LuxCore" folder but I don't know where to put this files.

If I try to launch from Terminal, I do get this:

➜  bin ./luxcoreui 
dyld[84229]: Library not loaded: @rpath/libluxcore.dylib
  Referenced from: <27B629CD-52BE-328A-BB7C-B1A916E48436> /Users/-/Downloads/LuxCore/LuxCore/bin/luxcoreui
  Reason: tried: '$ORIGIN/../lib/libluxcore.dylib' (no such file), '$ORIGIN/../lib/libluxcore.dylib' (no such file)
[1]    84229 abort      ./luxcoreui

zohozer avatar Jul 27 '25 08:07 zohozer

there is a problem with rpath. do

install_name_tool -add_rpath @loader_path/../lib ./luxcoreui and install_name_tool -add_rpath @executable_path/../lib ./luxcoreui

just to be save and then luxcoreui should find the libluxcore.dylib.
Be prepared macos will complain about alot of libs not beeing codesigned. Go to settings security and click open anyway. Then it works.

Good news after that you can also use Blendluxcore since the libs are identical and recognized already by macos.

guess we will have to add codesigning again ...

u3dreal avatar Jul 27 '25 14:07 u3dreal

Thank you verry much for the help.

After I run in the Terminal the two commands:

install_name_tool -add_rpath @loader_path/../lib ./luxcoreui
install_name_tool -add_rpath @executable_path/../lib ./luxcoreui

The MacOS began to complain about the libraries, like:

libOpenInameDenoise.2.3.1.dylib
libOpenInameDenoise_core.2.3.1.dylib

and a few others that I didn't recorded before.

I do needed to keep the Privacy&Security panel from the Settings open all the time and click the "Allow Anyway" button for each library it was loading.

After that I was able to see the LuxCore Render GUI and render some test scenes.

zohozer avatar Jul 27 '25 16:07 zohozer