dyld: Library not loaded: /usr/local/opt/ffmpeg/lib/libavformat.57.dylib
Referenced from: /usr/local/bin/scrcpy
Reason: image not found
[1] 7815 abort scrcpy -s 7b519a310504
cc @stek29 ?
I'll had the same issue (seeing the exact same error). Might have happened after I did a brew update (?). I had originally built from source. This fixed the problem:
Removed version built from source:
sudo rm /usr/local/bin/scrcpy
sudo rm /usr/local/share/scrcpy/scrcpy-server.jar
Used brew version instead:
brew install scrcpy
hope that helps!
@brentwatson
it works!! thx a lot!
Sorry for late response
Just in case, you can use install_name_tool next time to fix up dylib names to be unversioned if needed.
Use brew formula, and if you want to build from source, you can use --from-source option, and replace the scrcpy-server.jar afterwards if needed too. Brew does a lot of things for you.
Most helpful comment
I'll had the same issue (seeing the exact same error). Might have happened after I did a
brew update(?). I had originally built from source. This fixed the problem:Removed version built from source:
Used
brewversion instead:hope that helps!