Syphon / Syphon-Transmit

Syphon Output for Adobe Premiere Pro, After Effects, Character Animator
http://syphon.info
9 stars 2 forks source link

Had to manually update @rpath to @loader_path in Syphon.framework for the bundle to load? #6

Open vade opened 1 year ago

vade commented 1 year ago

@bangnoise just checking in. I didn't commit a framework change, but running an optimized build I had to replace Syphon.frameworks @rpath for a @loader_path so Adobe apps could find the Syphon framework properly.

I forget the nuances of the above behavioral change. Should we be defaulting to @loader_path in the framework?

bangnoise commented 1 year ago

You need to set "Runpath Search Paths" for this project (and not modify Syphon). The key addition here is @loader_path - depending on the structure of your bundle, it might look like:

LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks

This would be normal practice for any loaded code (library or plugin) using third-party frameworks - you need to tell the linker to look relative to the loaded code as well as the executable.