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

Fail ffmpeg.so.56 on Ubuntu 20.04 #1595

Closed
2 tasks done
fbvictorhugo opened this issue Jul 15, 2020 · 5 comments
Closed
2 tasks done

Fail ffmpeg.so.56 on Ubuntu 20.04 #1595

fbvictorhugo opened this issue Jul 15, 2020 · 5 comments

Comments

@fbvictorhugo
Copy link

fbvictorhugo commented Jul 15, 2020

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Ubuntu 20.04 64 bits
  • scrcpy version: last in apt
  • installation method: apt install scrcpy

Describe the bug
When executing the command scrcpy the error occurs as shown below.
When ubuntu 16.04 worked normal, however in 20.04 with the recent version it doesn't work anymore.

USER:~$ scrcpy 
scrcpy: error while loading shared libraries: libavformat-ffmpeg.so.56: cannot open shared object file: No such file or directory

@rom1v
Copy link
Collaborator

rom1v commented Jul 15, 2020

Because you used a version compiled against libs in an old Ubuntu. You should delete/rebuild.

@fbvictorhugo
Copy link
Author

I delete scrcpy:
sudo apt remove scrcpy

and instal again:
sudo apt install scrcpy

The error remains the same.

But I think apt installed version 1.12
see the terminal:

~$ sudo apt-get install scrcpy

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  scrcpy-server
The following NEW packages will be installed:
  scrcpy scrcpy-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 56,4 kB of archives.
After this operation, 132 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 scrcpy-server all 1.12.1+ds-1 [27,0 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 scrcpy amd64 1.12.1+ds-1 [29,4 kB]
Fetched 56,4 kB in 1s (46,3 kB/s)
Selecting previously unselected package scrcpy-server.
(Reading database ... 269770 files and directories currently installed.)
Preparing to unpack .../scrcpy-server_1.12.1+ds-1_all.deb ...
Unpacking scrcpy-server (1.12.1+ds-1) ...
Selecting previously unselected package scrcpy.
Preparing to unpack .../scrcpy_1.12.1+ds-1_amd64.deb ...
Unpacking scrcpy (1.12.1+ds-1) ...
Setting up scrcpy-server (1.12.1+ds-1) ...
Setting up scrcpy (1.12.1+ds-1) ...
Processing triggers for man-db (2.9.1-1) ...

@rom1v
Copy link
Collaborator

rom1v commented Jul 17, 2020

You probably have some binary in /usr/local.

which scrcpy

@fbvictorhugo
Copy link
Author

GREAT, that's works !
Deleted the file and did it again.

Thanks!

but I still think apt is using version 1.12,

~$ scrcpy 
INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed. 5.2 MB/s (24773 bytes in 0.005s)
INFO: Initial texture: 720x1440

But it's working now!

@rom1v
Copy link
Collaborator

rom1v commented Jul 17, 2020

but I still think apt is using version 1.12

Yes, for the latest version, I suggest you build from sources :)

Even better, if you could build from the version in #1598, then you could beta-test the future version and give feedbacks :)

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

2 participants