scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Can I run scrcpy on aarch64

Open sahinsengul opened this issue 3 years ago • 6 comments

Hi there,

I would like to run scrcpy on aarch64 for Linux. I can not use apt-get install command. How can I do that?

Thank you in advance

sahinsengul avatar Nov 25 '22 14:11 sahinsengul

Build/install it manually: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple

rom1v avatar Nov 25 '22 16:11 rom1v

Thank you for your response.

The apt install command is not available on the system I am using, so I cannot install required packages such as libavformat. What can I do about these packages?

sahinsengul avatar Nov 27 '22 18:11 sahinsengul

If they're not available, you must compile them from sources.

rom1v avatar Nov 27 '22 18:11 rom1v

Firstly, thank you for your patience

I would like to run scrcpy on aarch64 and for this, I generated a Makefile using CMake but I got some error.

Also, I tried manually installation but I could not compile all packages from sources.

What is the best way to do this? Can you suggest me a solution?

sahinsengul avatar Nov 29 '22 10:11 sahinsengul

I have never done this, but if you want to run on aarch64, then you need all the code (dependencies included) compiles for aarch64. If the dependencies are not packaged, then you have to compile them.

rom1v avatar Nov 29 '22 10:11 rom1v

I tried it on Ubuntu 22.04 ARM64 in a terminal. I did not really install it as I already have it on macOS, but it should work.

sudo apt install scrcpy
[sudo] password for me: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adb android-libadb android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-liblog
  android-sdk-platform-tools-common scrcpy-server
The following NEW packages will be installed:
  adb android-libadb android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-liblog
  android-sdk-platform-tools-common scrcpy scrcpy-server
0 upgraded, 10 newly installed, 0 to remove and 14 not upgraded.
Need to get 987 kB of archives.
After this operation, 2,925 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

freebrowser1 avatar Dec 08 '22 21:12 freebrowser1