From b20b894b2f5b4a35a20ed43d9ac073501ea37623 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Mon, 27 Apr 2020 19:39:05 +0200 Subject: [PATCH] add hint about install_name_tool for MacOS builds --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 02961ac2..1cf2d230 100644 --- a/README.md +++ b/README.md @@ -106,4 +106,13 @@ in the source code of OBS Studio, located at [source_directory]/UI/obs-frontend- Just keep hitting configure until all the vars are filled out. Then hit generate. Open xcode (or a terminal, depending on the build type you chose), build and copy -the advanced-scene-switcher.so file to /Applications/OBS.app/Contents/Resources/obs-plugins/ +the advanced-scene-switcher.so file to /Applications/OBS.app/Contents/PlugIns + +Note that you might have to adjust the library search paths using the install_name_tool if you want the plugin to run on machines other than your build machine: +``` +install_name_tool -change @rpath/libobs-frontend-api.dylib @executable_path/../Frameworks/libobs-frontend-api.dylib UI/frontend-plugins/SceneSwitcher/advanced-scene-switcher.so +install_name_tool -change @rpath/libobs.0.dylib @executable_path/../Frameworks/libobs.0.dylib UI/frontend-plugins/SceneSwitcher/advanced-scene-switcher.so +install_name_tool -change /usr/local/opt/qt5/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets UI/frontend-plugins/SceneSwitcher/advanced-scene-switcher.so +install_name_tool -change /usr/local/opt/qt5/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui UI/frontend-plugins/SceneSwitcher/advanced-scene-switcher.so +install_name_tool -change /usr/local/opt/qt5/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore UI/frontend-plugins/SceneSwitcher/advanced-scene-switcher.so +```