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

Install errors on Mac OSX 10.15.5 #2

Closed
PhilRowe opened this issue Jul 19, 2020 · 8 comments
Closed

Install errors on Mac OSX 10.15.5 #2

PhilRowe opened this issue Jul 19, 2020 · 8 comments

Comments

@PhilRowe
Copy link

Hello! very excited to try out this plugin but its not working on my Mac at the moment. Installation ran fine however the new dock was not showing in the view -> dock menu. Initial message in obs logs showed:

12:47:24.348: Referenced from: /Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so
12:47:24.348: Reason: image not found
12:47:24.348:
12:47:24.349: Module '/Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so' not loaded

I tried copying the media controls plugin from /Library/Application Support/obs-studio/plugins/media-controls to /Users/philiprowe/Library/Application Support/obs-studio/plugins/media-controls and then started receiving the following error message:

13:24:31.575: os_dlopen(/Users/philiprowe/Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so->/Users/philiprowe/Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so): dlopen(/Users/philiprowe/Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so, 257): Library not loaded: /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets
13:24:31.575: Referenced from: /Users/philiprowe/Library/Application Support/obs-studio/plugins/media-controls/bin/media-controls.so
13:24:31.575: Reason: image not found

I then tried installing qt5 framework via brew and OBS failed to launch, no errors were shown in the logs relating to the crash.

@Jamie-
Copy link

Jamie- commented Jul 19, 2020

Also just tried to install this on Mac and getting the same issue with the same errors. I haven't tried to install Qt etc though, just followed the instructions on OBS forum.

Edit: Ah, this is a known issue: https://obsproject.com/forum/threads/media-controls.125774/post-471317

Unfortunately my attempts to get it working on Mac are not working at the moment. I hope to find a developer with more Mac experience to help me with that.

For reference I'm running OBS 25.0.8 also on 10.15.5

@Jamie-
Copy link

Jamie- commented Jul 19, 2020

I compiled OBS from source with this plugin as documented in the README and it does appear in the Docks menu and I can open it up just fine.

Screenshot 2020-07-19 at 18 26 12

However, the icons don't work properly and none of the buttons in the entire application are clickable (the timeline slider works great). Though I don't think the button clicking problem is related to this plugin. I need to do some more investigation.

@ucomesdag
Copy link

ucomesdag commented Jul 25, 2020

The library is not static linked, and thus it needs to be distributed with the Qt Framework.

Update, OBS.app has the Qt Framework already included (duh), this fixes it:

install_name_tool -change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore media-controls.so
install_name_tool -change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui media-controls.so
install_name_tool -change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets media-controls.so

Or use this already relinked binary: media-controls.so.zip to replace the installed media-controls.so.

image

@NReilingh
Copy link

If you get an error upon launch after installing the relinked .so, just open up Security & Privacy in System Preferences, General tab, and you should see a warning about the file with an "Allow" button that you can click.

@mrgroen
Copy link

mrgroen commented Aug 6, 2020

Thanks i needed this! 😄

@exeldro
Copy link
Owner

exeldro commented Aug 6, 2020

@ucomesdag so I could add those lines to https://github.com/exeldro/obs-media-controls/blob/master/.github/workflows/build.yml to make correct Mac builds?

@ucomesdag
Copy link

@ucomesdag so I could add those lines to https://github.com/exeldro/obs-media-controls/blob/master/.github/workflows/build.yml to make correct Mac builds?

Yes, that should work. Ideally when the whole thing is build statically it should all link to the same included framework.

@exeldro
Copy link
Owner

exeldro commented Aug 10, 2020

Fixed by #5

@exeldro exeldro closed this as completed Aug 10, 2020
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

6 participants