Page 1 of 1

any way to install scrcpy on AVL MXE?

Posted: Thu Jun 12, 2025 12:26 pm
by IndioBlanco
I've tried the methods that worked for me on Ubuntu, and now, even following the steps on the website https://github.com/Genymobile/scrcpy/bl ... c/linux.md , I can't get it. I get a "Git error" in the final steps of the process.
Does anyone know how to do this correctly on this distro? I've been looking through the forum and haven't found anything that resolves my question, or I haven't found the right post...
A little help?

Re: any way to install scrcpy on AVL MXE?

Posted: Thu Jun 12, 2025 1:07 pm
by CharlesV
There appears to be a topic discussing the install here
viewtopic.php?p=739021#p739021

Re: any way to install scrcpy on AVL MXE?

Posted: Thu Jun 12, 2025 2:18 pm
by IndioBlanco
thanks, I've tried it now and don't works

Re: any way to install scrcpy on AVL MXE?

Posted: Thu Jun 12, 2025 2:35 pm
by CharlesV
When I just tried to install it there appears to be a mismatch of versions of libswresample-dev, and the correct one is in the test repo. so I did the following and it installed.

MX Package Installer, search for libswresample-dev
change to test repo and uncheck "hide Library and developer packages"
Install libswresample-dev


Then Download scrcpy 2.1.1 from
https://github.com/Genymobile/scrcpy/ar ... 1.1.tar.gz


Extract the downloaded file to desired location and then edit install_release.sh to get the correct scrcpy server installed. Change lines 5 & 6 to this.

Code: Select all

PREBUILT_SERVER_URL=https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-server-v2.1.1
PREBUILT_SERVER_SHA256=9558db6c56743a1dc03b38f59801fb40e91cc891f8fc0c89e5b0b067761f148e

then in a terminal where the script you changed is located, run

Code: Select all

./install_release.sh


Re: any way to install scrcpy on AVL MXE?

Posted: Thu Jun 12, 2025 10:22 pm
by kmathern
IndioBlanco wrote: Thu Jun 12, 2025 12:26 pm I've tried the methods that worked for me on Ubuntu, and now, even following the steps on the website https://github.com/Genymobile/scrcpy/bl ... c/linux.md , I can't get it. I get a "Git error" in the final steps of the process.
Does anyone know how to do this correctly on this distro? I've been looking through the forum and haven't found anything that resolves my question, or I haven't found the right post...
A little help?
Not sure about AVL, but those instructions work for me in a MX-23.6-ahs live session. I don't know why they wouldn't work in AVL as well.
It does look like scrcpy was updated just yesterday to version 3.3, so maybe things were still in a state of flux when you were trying to installing it.

The git clone step

Code: Select all

demo@mx1:~
$ git clone https://github.com/Genymobile/scrcpy
Cloning into 'scrcpy'...
remote: Enumerating objects: 40122, done.
remote: Counting objects: 100% (245/245), done.
remote: Compressing objects: 100% (107/107), done.
remote: Total 40122 (delta 180), reused 142 (delta 136), pack-reused 39877 (from 5)
Receiving objects: 100% (40122/40122), 7.41 MiB | 10.37 MiB/s, done.
Resolving deltas: 100% (26182/26182), done.
demo@mx1:~

The install steps (I'm not showing the "apt install ffmpeg libsdl2-2.0-0 adb ...." step, which installs the required packages)

Code: Select all

$ cd scrcpy/
demo@mx1:~/scrcpy
$ ./install_release.sh 
[scrcpy] Downloading prebuilt server...
--2025-06-12 21:36:04--  https://github.com/Genymobile/scrcpy/releases/download/v3.3/scrcpy-server-v3.3
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/2dc9e88f-0e90-4e0a-870a-8f1e4781e14d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250613T013604Z&X-Amz-Expires=300&X-Amz-Signature=787e860496ec56c0cba29e6a60a7b87b09c267707c11c9caa8b7dfe59fc3be76&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v3.3&response-content-type=application%2Foctet-stream [following]
--2025-06-12 21:36:04--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/2dc9e88f-0e90-4e0a-870a-8f1e4781e14d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250613T013604Z&X-Amz-Expires=300&X-Amz-Signature=787e860496ec56c0cba29e6a60a7b87b09c267707c11c9caa8b7dfe59fc3be76&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v3.3&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 90752 (89K) [application/octet-stream]
Saving to: ‘scrcpy-server’

scrcpy-server                      100%[================================================================>]  88.62K  --.-KB/s    in 0.02s   

2025-06-12 21:36:04 (5.70 MB/s) - ‘scrcpy-server’ saved [90752/90752]

[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.5.1
Source dir: /home/demo/scrcpy
Build dir: /home/demo/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 3.3
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
Run-time dependency libavformat found: YES 59.27.100
Run-time dependency libavcodec found: YES 59.37.100
Run-time dependency libavutil found: YES 57.28.100
Run-time dependency libswresample found: YES 4.7.100
Run-time dependency sdl2 found: YES 2.26.5
Run-time dependency libavdevice found: YES 59.7.100
Run-time dependency libusb-1.0 found: YES 1.0.26
Checking for function "strdup" : YES 
Checking for function "asprintf" : YES 
Checking for function "vasprintf" : YES 
Checking for function "nrand48" : YES 
Checking for function "jrand48" : YES 
Checking for function "reallocarray" : YES 
Header "sys/socket.h" has symbol "SOCK_CLOEXEC" : YES 
Configuring config.h using configuration
Build targets in project: 2

scrcpy 3.3

  User defined options
    buildtype      : release
    strip          : true
    b_lto          : true
    prebuilt_server: scrcpy-server

Found ninja-1.11.1 at /usr/bin/ninja
[76/76] Linking target app/scrcpy
[scrcpy] Installing (sudo)...
[0/1] Installing files.
Installing app/scrcpy to /usr/local/bin
Stripping target 'app/scrcpy'.
Installing server/scrcpy-server to /usr/local/share/scrcpy
Installing /home/demo/scrcpy/app/scrcpy.1 to /usr/local/share/man/man1
Installing /home/demo/scrcpy/app/data/icon.png to /usr/local/share/icons/hicolor/256x256/apps
Installing /home/demo/scrcpy/app/data/zsh-completion/_scrcpy to /usr/local/share/zsh/site-functions
Installing /home/demo/scrcpy/app/data/bash-completion/scrcpy to /usr/local/share/bash-completion/completions
Installing /home/demo/scrcpy/app/data/scrcpy.desktop to /usr/local/share/applications
Installing /home/demo/scrcpy/app/data/scrcpy-console.desktop to /usr/local/share/applications
demo@mx1:~/scrcpy
$

A test run

Code: Select all

$ scrcpy -v
scrcpy 3.3 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
 - SDL: 2.26.5 / 2.26.5
 - libavcodec: 59.37.100 / 59.37.100
 - libavformat: 59.27.100 / 59.27.100
 - libavutil: 57.28.100 / 57.28.100
 - libavdevice: 59.7.100 / 59.7.100
 - libusb: - / 1.0.26
demo@mx1:~/scrcpy
$ 

And also found this post helpful: viewtopic.php?p=797501#p797501 in getting it going.

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 12:04 pm
by IndioBlanco
;) thanks , i'm going to try this way...

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 12:17 pm
by IndioBlanco
Nada amigo, me sigue dando el mismo error que ayer tras ejecutar el ./install_release.sh ::)
Image

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 12:31 pm
by CharlesV
IndioBlanco wrote: Fri Jun 13, 2025 12:17 pm Nada amigo, me sigue dando el mismo error que ayer tras ejecutar el ./install_release.sh ::)
Image
English in this forum please. If you need too the topic can be moved to the spanish forum.

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 12:40 pm
by Eadwine Rose
No the topic cannot be moved. It has started in English, it needs to stay in that language.

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 2:16 pm
by IndioBlanco
excuse me ...I went to me, it was a mistake with the automatic translator of the browser

Re: any way to install scrcpy on AVL MXE?

Posted: Fri Jun 13, 2025 4:20 pm
by kmathern
IndioBlanco wrote: Fri Jun 13, 2025 12:17 pm Nada amigo, me sigue dando el mismo error que ayer tras ejecutar el ./install_release.sh ::)
Image
Create a new directory where you haven't tried building & installing scrcpy.

Maybe something like this

Code: Select all

random=$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 8); mkdir scrcpy.$random; cd scrcpy.$random

Then the steps below (same as the instructions from here: https://github.com/Genymobile/scrcpy/bl ... c/linux.md)

Code: Select all

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh

Re: any way to install scrcpy on AVL MXE?

Posted: Sat Jun 14, 2025 4:32 am
by IndioBlanco
kmathern wrote: Fri Jun 13, 2025 4:20 pm
IndioBlanco wrote: Fri Jun 13, 2025 12:17 pm Nada amigo, me sigue dando el mismo error que ayer tras ejecutar el ./install_release.sh ::)
Image
Create a new directory where you haven't tried building & installing scrcpy.

Maybe something like this

Code: Select all

random=$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 8); mkdir scrcpy.$random; cd scrcpy.$random

Then the steps below (same as the instructions from here: https://github.com/Genymobile/scrcpy/bl ... c/linux.md)

Code: Select all

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh

Well, I followed those steps and the installation worked, but it still doesn't work completely. Phone connected and adb activated and the terminal gives me this error message:

Code: Select all

$ scrcpy
scrcpy 3.3 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=no)
ERROR: Server connection failed

Re: any way to install scrcpy on AVL MXE?

Posted: Sat Jun 14, 2025 11:40 am
by kmathern
IndioBlanco wrote: Sat Jun 14, 2025 4:32 am ...Well, I followed those steps and the installation worked, but it still doesn't work completely. Phone connected and adb activated and the terminal gives me this error message:

Code: Select all

$ scrcpy
scrcpy 3.3 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=no)
ERROR: Server connection failed
You might consider closing this topic since you now have scrcpy installed, open a new topic on how to use scrcpy.
I've used scrcpy some, but mainly just to try it out, so I can't offer very much help in using it.

Just a thought, have you enabled USB debugging and/or Wireless debugging in Developer options on your phone?

Re: any way to install scrcpy on AVL MXE?  [Solved]

Posted: Sun Jun 15, 2025 7:37 am
by IndioBlanco
kmathern wrote: Sat Jun 14, 2025 11:40 am
IndioBlanco wrote: Sat Jun 14, 2025 4:32 am ...Well, I followed those steps and the installation worked, but it still doesn't work completely. Phone connected and adb activated and the terminal gives me this error message:

Code: Select all

$ scrcpy
scrcpy 3.3 <https://github.com/Genymobile/scrcpy>
ERROR: Device could not be connected (state=no)
ERROR: Server connection failed
You might consider closing this topic since you now have scrcpy installed, open a new topic on how to use scrcpy.
I've used scrcpy some, but mainly just to try it out, so I can't offer very much help in using it.

Just a thought, have you enabled USB debugging and/or Wireless debugging in Developer options on your phone?
Let's see, scrcpy is installed, but it won't start and I get that error, which I don't know how to fix. I'm coming from Ubuntu, where I didn't have too many problems getting it working, and my Linux knowledge isn't that great either. Yes, I have USB debugging enabled in developer mode.
I understand there are things I'm missing, and that's why I'm asking for advice, but I understand what you're saying. I'll write another post about its use.