Scrcpy: dyld: Library not loaded: /usr/local/opt/ffmpeg/lib/libavformat.57.dylib

Created on 5 Jul 2018  路  4Comments  路  Source: Genymobile/scrcpy

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

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:

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!

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swamikamal picture swamikamal  路  3Comments

mttmllns picture mttmllns  路  3Comments

targor picture targor  路  3Comments

SamuelBlickle picture SamuelBlickle  路  3Comments

jonnybrooks picture jonnybrooks  路  3Comments