Open Benjamin-Loison opened 1 month ago
scrcpy/blob/44b3fd82b1831f4aa436268870adf32bddb81924/README.md#get-the-app
scrcpy/blob/44b3fd82b1831f4aa436268870adf32bddb81924/doc/linux.md does not mention Mint case insensitively.
Debian/Ubuntu: (obsolete version)apt install scrcpy
Source: scrcpy/blob/44b3fd82b1831f4aa436268870adf32bddb81924/doc/linux.md?plain=1#L9
scrcpy/releases mentions scrcpy/releases/tag/v2.6.1 as latest release published 10 days ago.
wget https://github.com/Genymobile/scrcpy/releases/download/v2.6.1/scrcpy-server-v2.6.1
chmod +x scrcpy-server-v2.6.1
./scrcpy-server-v2.6.1
invalid file (bad magic number): Exec format error
file scrcpy-server-v2.6.1
scrcpy-server-v2.6.1: Android package (APK), with gradle app-metadata.properties
No other asset is about a Linux release.
https://flathub.org/apps/in.srev.guiscrcpy is the only result when searching scrcpy, see https://flathub.org/apps/search?q=scrcpy.
guiscrcpy has been archived by the owner on Dec 29, 2023.
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-12 18:40:51-- https://github.com/Genymobile/scrcpy/releases/download/v2.6.1/scrcpy-server-v2.6.1
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T164052Z&X-Amz-Expires=300&X-Amz-Signature=529352b24e76c6d989891a9480bc5079c25b0af833531a288c0fb711bdb548e5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream [following]
--2024-08-12 18:40:52-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T164052Z&X-Amz-Expires=300&X-Amz-Signature=529352b24e76c6d989891a9480bc5079c25b0af833531a288c0fb711bdb548e5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71112 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===================>] 69.45K --.-KB/s in 0.02s
2024-08-12 18:40:52 (3.29 MB/s) - ‘scrcpy-server’ saved [71112/71112]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.3.2
Source dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy
Build dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
WARNING: Found CMake '/home/benjamin/.local/bin/cmake' but couldn't run it
Found CMake: NO
Run-time dependency libavformat found: NO (tried pkgconfig)
app/meson.build:107:4: ERROR: Dependency "libavformat" not found, tried pkgconfig
A full log can be found at /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libavformat-dev
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-12 19:04:13-- https://github.com/Genymobile/scrcpy/releases/download/v2.6.1/scrcpy-server-v2.6.1
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T170413Z&X-Amz-Expires=300&X-Amz-Signature=d90444bd81a9aa3c534afc3cd0276d35515881e260e815058ee3378c4163507d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream [following]
--2024-08-12 19:04:13-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T170413Z&X-Amz-Expires=300&X-Amz-Signature=d90444bd81a9aa3c534afc3cd0276d35515881e260e815058ee3378c4163507d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71112 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.45K --.-KB/s in 0.02s
2024-08-12 19:04:14 (3.01 MB/s) - ‘scrcpy-server’ saved [71112/71112]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.3.2
Source dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy
Build dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
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 60.16.100
Run-time dependency libavcodec found: YES 60.31.102
Run-time dependency libavutil found: YES 58.29.100
Run-time dependency libswresample found: YES 4.12.100
Run-time dependency sdl2 found: YES 2.30.0
WARNING: Found CMake '/home/benjamin/.local/bin/cmake' but couldn't run it
Found CMake: NO
Run-time dependency libavdevice found: NO (tried pkgconfig)
app/meson.build:115:20: ERROR: Dependency "libavdevice" not found, tried pkgconfig
A full log can be found at /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libavdevice-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libavfilter-dev libpostproc-dev libswscale-dev
The following NEW packages will be installed:
libavdevice-dev libavfilter-dev libpostproc-dev libswscale-dev
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,634 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Get:1 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libpostproc-dev amd64 7:6.1.1-3ubuntu5 [50.3 kB]
Get:2 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libswscale-dev amd64 7:6.1.1-3ubuntu5 [224 kB]
Get:3 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libavfilter-dev amd64 7:6.1.1-3ubuntu5 [2,265 kB]
Get:4 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libavdevice-dev amd64 7:6.1.1-3ubuntu5 [94.6 kB]
Fetched 2,634 kB in 1s (4,487 kB/s)
Selecting previously unselected package libpostproc-dev:amd64.
(Reading database ... 959317 files and directories currently installed.)
Preparing to unpack .../libpostproc-dev_7%3a6.1.1-3ubuntu5_amd64.deb ...
Unpacking libpostproc-dev:amd64 (7:6.1.1-3ubuntu5) ...
Selecting previously unselected package libswscale-dev:amd64.
Preparing to unpack .../libswscale-dev_7%3a6.1.1-3ubuntu5_amd64.deb ...
Unpacking libswscale-dev:amd64 (7:6.1.1-3ubuntu5) ...
Selecting previously unselected package libavfilter-dev:amd64.
Preparing to unpack .../libavfilter-dev_7%3a6.1.1-3ubuntu5_amd64.deb ...
Unpacking libavfilter-dev:amd64 (7:6.1.1-3ubuntu5) ...
Selecting previously unselected package libavdevice-dev:amd64.
Preparing to unpack .../libavdevice-dev_7%3a6.1.1-3ubuntu5_amd64.deb ...
Unpacking libavdevice-dev:amd64 (7:6.1.1-3ubuntu5) ...
Setting up libpostproc-dev:amd64 (7:6.1.1-3ubuntu5) ...
Setting up libswscale-dev:amd64 (7:6.1.1-3ubuntu5) ...
Setting up libavfilter-dev:amd64 (7:6.1.1-3ubuntu5) ...
Setting up libavdevice-dev:amd64 (7:6.1.1-3ubuntu5) ...
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-12 19:06:00-- https://github.com/Genymobile/scrcpy/releases/download/v2.6.1/scrcpy-server-v2.6.1
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T170413Z&X-Amz-Expires=300&X-Amz-Signature=d90444bd81a9aa3c534afc3cd0276d35515881e260e815058ee3378c4163507d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream [following]
--2024-08-12 19:06:00-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4dbb38d6-abfd-40ed-884e-b0cfcfda0f47?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240812T170413Z&X-Amz-Expires=300&X-Amz-Signature=d90444bd81a9aa3c534afc3cd0276d35515881e260e815058ee3378c4163507d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6.1&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71112 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.45K --.-KB/s in 0.02s
2024-08-12 19:06:00 (2.87 MB/s) - ‘scrcpy-server’ saved [71112/71112]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.3.2
Source dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy
Build dir: /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0")
C linker for the host machine: cc ld.bfd 2.42
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 60.16.100
Run-time dependency libavcodec found: YES 60.31.102
Run-time dependency libavutil found: YES 58.29.100
Run-time dependency libswresample found: YES 4.12.100
Run-time dependency sdl2 found: YES 2.30.0
Run-time dependency libavdevice found: YES 60.3.100
Run-time dependency libusb-1.0 found: YES 1.0.27
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 2.6.1
User defined options
buildtype : release
strip : true
b_lto : true
prebuilt_server: scrcpy-server
Found ninja-1.11.1 at /usr/bin/ninja
[69/69] 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/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/scrcpy.1 to /usr/local/share/man/man1
Installing /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/data/icon.png to /usr/local/share/icons/hicolor/256x256/apps
Installing /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/data/zsh-completion/_scrcpy to /usr/local/share/zsh/site-functions
Installing /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/data/bash-completion/scrcpy to /usr/local/share/bash-completion/completions
Installing /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/data/scrcpy.desktop to /usr/local/share/applications
Installing /home/benjamin/Desktop/bens_folder/dev/git/github/scrcpy/app/data/scrcpy-console.desktop to /usr/local/share/applications
find -type f -iname '*scrcpy*'
./app/scrcpy-windows.rc
./app/scrcpy.1
./app/data/scrcpy-console.bat
./app/data/bash-completion/scrcpy
./app/data/scrcpy.desktop
./app/data/scrcpy-console.desktop
./app/data/zsh-completion/_scrcpy
./app/data/scrcpy-noconsole.vbs
./app/src/usb/scrcpy_otg.h
./app/src/usb/scrcpy_otg.c
./app/src/scrcpy.c
./app/src/scrcpy.h
./app/scrcpy-windows.manifest
./build-auto/app/scrcpy
./build-auto/app/scrcpy.p/src_scrcpy.c.o
./build-auto/app/scrcpy.p/src_usb_scrcpy_otg.c.o
./build-auto/server/scrcpy-server
./scrcpy-server
file scrcpy-server
scrcpy-server: Android package (APK), with gradle app-metadata.properties
./build-auto/app/scrcpy
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) 31ad9360 device FP4
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 174.7 MB/s (71112 bytes in 0.000s)
[server] INFO: Device: [Fairphone] Fairphone FP4 (Android 14)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2336
To receive a notification on new releases, click on Watch > Custom > Releases on the top.
Source: scrcpy/releases/tag/v2.6.1
Related to Benjamin_Loison/nix/issues/1.
On Debian 12 GNOME Pegasus:
git clone --depth 1 --branch v2.6.1 git@github.com:Genymobile/scrcpy.git
Cloning into 'scrcpy'...
remote: Enumerating objects: 361, done.
remote: Counting objects: 100% (361/361), done.
remote: Compressing objects: 100% (337/337), done.
remote: Total 361 (delta 13), reused 196 (delta 7), pack-reused 0 (from 0)
Receiving objects: 100% (361/361), 472.89 KiB | 2.15 MiB/s, done.
Resolving deltas: 100% (13/13), done.
Note: switching to 'cc41115625553d2f9ed8e96302174f189f2f40c7'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
cd scrcpy/
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-31 04:58:07-- https://github.com/Genymobile/scrcpy/releases/download/v2.6/scrcpy-server-v2.6
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T025808Z&X-Amz-Expires=300&X-Amz-Signature=fb667b24bcc3d15886c97355beac8e4796978f26969841db18619239e5bfa201&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream [following]
--2024-08-31 04:58:08-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T025808Z&X-Amz-Expires=300&X-Amz-Signature=fb667b24bcc3d15886c97355beac8e4796978f26969841db18619239e5bfa201&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71084 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===================>] 69.42K --.-KB/s in 0.004s
2024-08-31 04:58:08 (18.0 MB/s) - ‘scrcpy-server’ saved [71084/71084]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.0.1
Source dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy
Build dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
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: /usr/bin/pkg-config (1.8.1)
Found CMake: /home/benjamin_loison/venv/bin/cmake (3.30.2)
Run-time dependency libavformat found: NO (tried pkgconfig and cmake)
app/meson.build:106:0: ERROR: Dependency "libavformat" not found, tried pkgconfig and cmake
A full log can be found at /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libavformat-dev
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-31 05:00:39-- https://github.com/Genymobile/scrcpy/releases/download/v2.6/scrcpy-server-v2.6
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030039Z&X-Amz-Expires=300&X-Amz-Signature=efa7d8bfc702f9a96b97299d3d6440e14bf47deb27074bb151bb1a2102a2cd72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream [following]
--2024-08-31 05:00:39-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030039Z&X-Amz-Expires=300&X-Amz-Signature=efa7d8bfc702f9a96b97299d3d6440e14bf47deb27074bb151bb1a2102a2cd72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71084 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.42K --.-KB/s in 0.001s
2024-08-31 05:00:39 (52.8 MB/s) - ‘scrcpy-server’ saved [71084/71084]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.0.1
Source dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy
Build dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
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: /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
sdl2-config found: NO need ['>= 2.0.5']
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
app/meson.build:106:0: ERROR: Dependency "sdl2" not found, tried pkgconfig and config-tool
A full log can be found at /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libsdl2-dev
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-31 05:01:41-- https://github.com/Genymobile/scrcpy/releases/download/v2.6/scrcpy-server-v2.6
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030039Z&X-Amz-Expires=300&X-Amz-Signature=efa7d8bfc702f9a96b97299d3d6440e14bf47deb27074bb151bb1a2102a2cd72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream [following]
--2024-08-31 05:01:41-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030039Z&X-Amz-Expires=300&X-Amz-Signature=efa7d8bfc702f9a96b97299d3d6440e14bf47deb27074bb151bb1a2102a2cd72&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71084 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.42K --.-KB/s in 0.002s
2024-08-31 05:01:42 (42.9 MB/s) - ‘scrcpy-server’ saved [71084/71084]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.0.1
Source dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy
Build dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
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: /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
Found CMake: /home/benjamin_loison/venv/bin/cmake (3.30.2)
Run-time dependency libavdevice found: NO (tried pkgconfig and cmake)
app/meson.build:115:4: ERROR: Dependency "libavdevice" not found, tried pkgconfig and cmake
A full log can be found at /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libavdevice-dev
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-31 05:02:53-- https://github.com/Genymobile/scrcpy/releases/download/v2.6/scrcpy-server-v2.6
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030253Z&X-Amz-Expires=300&X-Amz-Signature=b11e35b51cfce9594366e07100cd88b5d7f783c53e19bc96018730e1e96888f1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream [following]
--2024-08-31 05:02:54-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030253Z&X-Amz-Expires=300&X-Amz-Signature=b11e35b51cfce9594366e07100cd88b5d7f783c53e19bc96018730e1e96888f1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&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: 71084 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.42K --.-KB/s in 0.001s
2024-08-31 05:02:54 (52.3 MB/s) - ‘scrcpy-server’ saved [71084/71084]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.0.1
Source dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy
Build dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
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: /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
Found CMake: /home/benjamin_loison/venv/bin/cmake (3.30.2)
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)
app/meson.build:119:4: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake
A full log can be found at /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto/meson-logs/meson-log.txt
sudo apt install -y libusb-1.0-0-dev
Source: the Ask Ubuntu answer 225412
./install_release.sh
[scrcpy] Downloading prebuilt server...
--2024-08-31 05:05:47-- https://github.com/Genymobile/scrcpy/releases/download/v2.6/scrcpy-server-v2.6
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030547Z&X-Amz-Expires=300&X-Amz-Signature=2f6a4bbd774ce1ec7d0f967bdaa436b51f849557db406782aa6e49a35398429c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream [following]
--2024-08-31 05:05:47-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/111583593/4e77b901-8012-4718-99bf-7bfd4b7ac012?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240831%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240831T030547Z&X-Amz-Expires=300&X-Amz-Signature=2f6a4bbd774ce1ec7d0f967bdaa436b51f849557db406782aa6e49a35398429c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111583593&response-content-disposition=attachment%3B%20filename%3Dscrcpy-server-v2.6&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71084 (69K) [application/octet-stream]
Saving to: ‘scrcpy-server’
scrcpy-server 100%[===============================================================>] 69.42K --.-KB/s in 0.001s
2024-08-31 05:05:47 (54.0 MB/s) - ‘scrcpy-server’ saved [71084/71084]
[scrcpy] Verifying prebuilt server...
scrcpy-server: OK
[scrcpy] Building client...
The Meson build system
Version: 1.0.1
Source dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy
Build dir: /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/build-auto
Build type: native build
Project name: scrcpy
Project version: 2.6.1
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: /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 2.6.1
User defined options
buildtype : release
strip : True
b_lto : true
prebuilt_server: scrcpy-server
Found ninja-1.11.1 at /usr/bin/ninja
[69/69] 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/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/scrcpy.1 to /usr/local/share/man/man1
Installing /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/data/icon.png to /usr/local/share/icons/hicolor/256x256/apps
Installing /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/data/zsh-completion/_scrcpy to /usr/local/share/zsh/site-functions
Installing /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/data/bash-completion/scrcpy to /usr/local/share/bash-completion/completions
Installing /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/data/scrcpy.desktop to /usr/local/share/applications
Installing /home/benjamin_loison/Desktop/BensFolder/Softwares/scrcpy/app/data/scrcpy-console.desktop to /usr/local/share/applications
./build-auto/app/scrcpy
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) localhost:8888 device FP4
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 0.2 MB/s (71084 bytes in 0.354s)
[server] ERROR: The server version (2.6) does not match the client (2.6.1)
java.lang.IllegalArgumentException: The server version (2.6) does not match the client (2.6.1)
at com.genymobile.scrcpy.Options.parse(Options.java:252)
at com.genymobile.scrcpy.Server.internalMain(Server.java:262)
at com.genymobile.scrcpy.Server.main(Server.java:245)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
ERROR: Server connection failed
scrcpy --version
scrcpy 2.6.1 <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
While on my Linux Mint 22 Cinnamon Framework 13:
scrcpy --version
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
Dependencies (compiled / linked):
- SDL: 2.30.0 / 2.30.0
- libavcodec: 60.31.102 / 60.31.102
- libavformat: 60.16.100 / 60.16.100
- libavutil: 58.29.100 / 58.29.100
- libavdevice: 60.3.100 / 60.3.100
- libusb: - / 1.0.27
git clone --depth 1 --branch v2.6 git@github.com:Genymobile/scrcpy.git
# `./install_release.sh` as before
./build-auto/app/scrcpy
scrcpy 2.6 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) localhost:8888 device FP4
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 0.2 MB/s (69624 bytes in 0.408s)
[server] ERROR: The server version (2.5) does not match the client (2.6)
java.lang.IllegalArgumentException: The server version (2.5) does not match the client (2.6)
at com.genymobile.scrcpy.Options.parse(Options.java:237)
at com.genymobile.scrcpy.Server.internalMain(Server.java:231)
at com.genymobile.scrcpy.Server.main(Server.java:214)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
ERROR: Server connection failed
Removing --branch v2.6.1
solves the issue, see blob/44b3fd82b1831f4aa436268870adf32bddb81924/doc/linux.md?plain=1#L35.
On Linux Mint 22 Cinnamon Framework 13 no matter if the screen is unlocked:
does not used to be the case on Linux Mint 21.3 Cinnamon Framework 13 if I remember correctly.
Note that during this test an
adb pull
was ongoing.Environment
Describe the bug A clear and concise description of what the bug is.
On errors, please provide the output of the console (and
adb logcat
if relevant).Please do not post screenshots of your terminal, just post the content as text instead.