Benjamin-Loison / scrcpy

Display and control your Android device
Apache License 2.0
0 stars 0 forks source link

`java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener` #2

Open Benjamin-Loison opened 1 month ago

Benjamin-Loison commented 1 month ago

On Linux Mint 22 Cinnamon Framework 13 no matter if the screen is unlocked:

scrcpy
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 348.6 MB/s (41650 bytes in 0.000s)
[server] INFO: Device: Fairphone FP4 (Android 14)
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, class java.lang.String, int]
    at java.lang.Class.getMethod(Class.java:2950)
    at java.lang.Class.getMethod(Class.java:2450)
    at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:128)
    at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:138)
    at com.genymobile.scrcpy.Device.<init>(Device.java:100)
    at com.genymobile.scrcpy.Server.scrcpy(Server.java:64)
    at com.genymobile.scrcpy.Server.main(Server.java:334)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.AssertionError: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
    at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:83)
    at com.genymobile.scrcpy.ScreenEncoder.createDisplay(ScreenEncoder.java:278)
    at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:84)
    at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:74)
    at com.genymobile.scrcpy.Server.scrcpy(Server.java:100)
    at com.genymobile.scrcpy.Server.main(Server.java:334)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
Caused by: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
    at java.lang.Class.getMethod(Class.java:2950)
    at java.lang.Class.getMethod(Class.java:2450)
    at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:81)
    ... 7 more
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2336
WARN: Device disconnected
WARN: Killing the server...

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 paste terminal output in a code block.

Please do not post screenshots of your terminal, just post the content as text instead.

Benjamin-Loison commented 1 month ago

See Genymobile/scrcpy/issues/4285.

Benjamin-Loison commented 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: apt install scrcpy (obsolete version)

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.

Benjamin-Loison commented 1 month ago

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.

Benjamin-Loison commented 1 month ago
./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
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libavcodec-dev libavutil-dev libswresample-dev The following NEW packages will be installed: libavcodec-dev libavformat-dev libavutil-dev libswresample-dev 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 8,529 kB of archives. After this operation, 32.2 MB of additional disk space will be used. Get:1 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libavutil-dev amd64 7:6.1.1-3ubuntu5 [547 kB] Get:2 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libswresample-dev amd64 7:6.1.1-3ubuntu5 [79.7 kB] Get:3 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libavcodec-dev amd64 7:6.1.1-3ubuntu5 [6,504 kB] Get:4 http://mirrors.ircam.fr/pub/ubuntu/archive noble/universe amd64 libavformat-dev amd64 7:6.1.1-3ubuntu5 [1,398 kB] Fetched 8,529 kB in 1s (9,618 kB/s) Selecting previously unselected package libavutil-dev:amd64. (Reading database ... 959163 files and directories currently installed.) Preparing to unpack .../libavutil-dev_7%3a6.1.1-3ubuntu5_amd64.deb ... Unpacking libavutil-dev:amd64 (7:6.1.1-3ubuntu5) ... Selecting previously unselected package libswresample-dev:amd64. Preparing to unpack .../libswresample-dev_7%3a6.1.1-3ubuntu5_amd64.deb ... Unpacking libswresample-dev:amd64 (7:6.1.1-3ubuntu5) ... Selecting previously unselected package libavcodec-dev:amd64. Preparing to unpack .../libavcodec-dev_7%3a6.1.1-3ubuntu5_amd64.deb ... Unpacking libavcodec-dev:amd64 (7:6.1.1-3ubuntu5) ... Selecting previously unselected package libavformat-dev:amd64. Preparing to unpack .../libavformat-dev_7%3a6.1.1-3ubuntu5_amd64.deb ... Unpacking libavformat-dev:amd64 (7:6.1.1-3ubuntu5) ... Setting up libavutil-dev:amd64 (7:6.1.1-3ubuntu5) ... Setting up libswresample-dev:amd64 (7:6.1.1-3ubuntu5) ... Setting up libavcodec-dev:amd64 (7:6.1.1-3ubuntu5) ... Setting up libavformat-dev:amd64 (7:6.1.1-3ubuntu5) ... ```
Benjamin-Loison commented 1 month ago
./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) ...
Benjamin-Loison commented 1 month ago
./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
Benjamin-Loison commented 1 month ago
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
Benjamin-Loison commented 1 month ago
file scrcpy-server
scrcpy-server: Android package (APK), with gradle app-metadata.properties
Benjamin-Loison commented 1 month ago
./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
Benjamin-Loison commented 1 month ago

To receive a notification on new releases, click on Watch > Custom > Releases on the top.

Source: scrcpy/releases/tag/v2.6.1

Benjamin-Loison commented 1 month ago

Related to Benjamin_Loison/nix/issues/1.

Benjamin-Loison commented 2 weeks ago

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
Benjamin-Loison commented 2 weeks ago
sudo apt install -y libavformat-dev
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libavcodec-dev libavutil-dev libswresample-dev The following NEW packages will be installed: libavcodec-dev libavformat-dev libavutil-dev libswresample-dev 0 upgraded, 4 newly installed, 0 to remove and 8 not upgraded. Need to get 7,703 kB of archives. After this operation, 30.1 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 libavutil-dev amd64 7:5.1.6-0+deb12u1 [512 kB] Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 libswresample-dev amd64 7:5.1.6-0+deb12u1 [113 kB] Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 libavcodec-dev amd64 7:5.1.6-0+deb12u1 [5,767 kB] Get:4 http://security.debian.org/debian-security bookworm-security/main amd64 libavformat-dev amd64 7:5.1.6-0+deb12u1 [1,311 kB] Fetched 7,703 kB in 0s (30.8 MB/s) Selecting previously unselected package libavutil-dev:amd64. (Reading database ... 438299 files and directories currently installed.) Preparing to unpack .../libavutil-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libavutil-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libswresample-dev:amd64. Preparing to unpack .../libswresample-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libswresample-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libavcodec-dev:amd64. Preparing to unpack .../libavcodec-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libavcodec-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libavformat-dev:amd64. Preparing to unpack .../libavformat-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libavformat-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libavutil-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libswresample-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libavcodec-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libavformat-dev:amd64 (7:5.1.6-0+deb12u1) ... ```
./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
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libasound2-dev libdecor-0-dev libdrm-dev libegl-dev libgbm-dev libgl-dev libgles-dev libglx-dev libibus-1.0-dev libpciaccess-dev libpulse-dev libsamplerate0-dev libsndio-dev libudev-dev libwayland-bin libwayland-dev libxcursor-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev Suggested packages: libasound2-doc libwayland-doc libxt-doc The following NEW packages will be installed: libasound2-dev libdecor-0-dev libdrm-dev libegl-dev libgbm-dev libgl-dev libgles-dev libglx-dev libibus-1.0-dev libpciaccess-dev libpulse-dev libsamplerate0-dev libsdl2-dev libsndio-dev libudev-dev libwayland-bin libwayland-dev libxcursor-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev 0 upgraded, 27 newly installed, 0 to remove and 8 not upgraded. Need to get 3,423 kB of archives. After this operation, 18.7 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bookworm/main amd64 libasound2-dev amd64 1.2.8-1+b1 [110 kB] Get:2 http://deb.debian.org/debian bookworm/main amd64 libwayland-bin amd64 1.21.0-1 [23.6 kB] Get:3 http://deb.debian.org/debian bookworm/main amd64 libwayland-dev amd64 1.21.0-1 [72.5 kB] Get:4 http://deb.debian.org/debian bookworm/main amd64 libdecor-0-dev amd64 0.1.1-2 [6,864 B] Get:5 http://deb.debian.org/debian bookworm/main amd64 libpciaccess-dev amd64 0.17-2 [54.8 kB] Get:6 http://deb.debian.org/debian bookworm/main amd64 libdrm-dev amd64 2.4.114-1+b1 [287 kB] Get:7 http://deb.debian.org/debian bookworm/main amd64 libglx-dev amd64 1.6.0-1 [15.3 kB] Get:8 http://deb.debian.org/debian bookworm/main amd64 libgl-dev amd64 1.6.0-1 [100 kB] Get:9 http://deb.debian.org/debian bookworm/main amd64 libegl-dev amd64 1.6.0-1 [19.1 kB] Get:10 http://deb.debian.org/debian bookworm/main amd64 libgbm-dev amd64 22.3.6-1+deb12u1 [18.3 kB] Get:11 http://deb.debian.org/debian bookworm/main amd64 libgles-dev amd64 1.6.0-1 [50.4 kB] Get:12 http://deb.debian.org/debian bookworm/main amd64 libibus-1.0-dev amd64 1.5.27-5 [449 kB] Get:13 http://deb.debian.org/debian bookworm/main amd64 libpulse-dev amd64 16.1+dfsg1-2+b1 [89.5 kB] Get:14 http://deb.debian.org/debian bookworm/main amd64 libsamplerate0-dev amd64 0.2.2-3 [62.6 kB] Get:15 http://deb.debian.org/debian bookworm/main amd64 libsndio-dev amd64 1.9.0-0.3+b2 [19.0 kB] Get:16 http://deb.debian.org/debian bookworm/main amd64 libudev-dev amd64 252.26-1~deb12u2 [52.5 kB] Get:17 http://deb.debian.org/debian bookworm/main amd64 libxfixes-dev amd64 1:6.0.0-2 [24.7 kB] Get:18 http://deb.debian.org/debian bookworm/main amd64 libxcursor-dev amd64 1:1.2.1-1 [51.8 kB] Get:19 http://deb.debian.org/debian bookworm/main amd64 libxi-dev amd64 2:1.8-1+b1 [246 kB] Get:20 http://deb.debian.org/debian bookworm/main amd64 libxinerama-dev amd64 2:1.1.4-3 [20.1 kB] Get:21 http://deb.debian.org/debian bookworm/main amd64 libxkbcommon-dev amd64 1.5.0-1 [51.0 kB] Get:22 http://deb.debian.org/debian bookworm/main amd64 libxrandr-dev amd64 2:1.5.2-2+b1 [47.1 kB] Get:23 http://deb.debian.org/debian bookworm/main amd64 libxss-dev amd64 1:1.2.3-1 [23.5 kB] Get:24 http://deb.debian.org/debian bookworm/main amd64 libxt-dev amd64 1:1.2.1-1.1 [405 kB] Get:25 http://deb.debian.org/debian bookworm/main amd64 libxv-dev amd64 2:1.0.11-1.1 [48.4 kB] Get:26 http://deb.debian.org/debian bookworm/main amd64 libxxf86vm-dev amd64 1:1.1.4-1+b2 [25.4 kB] Get:27 http://deb.debian.org/debian bookworm/main amd64 libsdl2-dev amd64 2.26.5+dfsg-1 [1,050 kB] Fetched 3,423 kB in 0s (17.4 MB/s) Selecting previously unselected package libasound2-dev:amd64. (Reading database ... 438454 files and directories currently installed.) Preparing to unpack .../00-libasound2-dev_1.2.8-1+b1_amd64.deb ... Unpacking libasound2-dev:amd64 (1.2.8-1+b1) ... Selecting previously unselected package libwayland-bin. Preparing to unpack .../01-libwayland-bin_1.21.0-1_amd64.deb ... Unpacking libwayland-bin (1.21.0-1) ... Selecting previously unselected package libwayland-dev:amd64. Preparing to unpack .../02-libwayland-dev_1.21.0-1_amd64.deb ... Unpacking libwayland-dev:amd64 (1.21.0-1) ... Selecting previously unselected package libdecor-0-dev:amd64. Preparing to unpack .../03-libdecor-0-dev_0.1.1-2_amd64.deb ... Unpacking libdecor-0-dev:amd64 (0.1.1-2) ... Selecting previously unselected package libpciaccess-dev:amd64. Preparing to unpack .../04-libpciaccess-dev_0.17-2_amd64.deb ... Unpacking libpciaccess-dev:amd64 (0.17-2) ... Selecting previously unselected package libdrm-dev:amd64. Preparing to unpack .../05-libdrm-dev_2.4.114-1+b1_amd64.deb ... Unpacking libdrm-dev:amd64 (2.4.114-1+b1) ... Selecting previously unselected package libglx-dev:amd64. Preparing to unpack .../06-libglx-dev_1.6.0-1_amd64.deb ... Unpacking libglx-dev:amd64 (1.6.0-1) ... Selecting previously unselected package libgl-dev:amd64. Preparing to unpack .../07-libgl-dev_1.6.0-1_amd64.deb ... Unpacking libgl-dev:amd64 (1.6.0-1) ... Selecting previously unselected package libegl-dev:amd64. Preparing to unpack .../08-libegl-dev_1.6.0-1_amd64.deb ... Unpacking libegl-dev:amd64 (1.6.0-1) ... Selecting previously unselected package libgbm-dev:amd64. Preparing to unpack .../09-libgbm-dev_22.3.6-1+deb12u1_amd64.deb ... Unpacking libgbm-dev:amd64 (22.3.6-1+deb12u1) ... Selecting previously unselected package libgles-dev:amd64. Preparing to unpack .../10-libgles-dev_1.6.0-1_amd64.deb ... Unpacking libgles-dev:amd64 (1.6.0-1) ... Selecting previously unselected package libibus-1.0-dev:amd64. Preparing to unpack .../11-libibus-1.0-dev_1.5.27-5_amd64.deb ... Unpacking libibus-1.0-dev:amd64 (1.5.27-5) ... Selecting previously unselected package libpulse-dev:amd64. Preparing to unpack .../12-libpulse-dev_16.1+dfsg1-2+b1_amd64.deb ... Unpacking libpulse-dev:amd64 (16.1+dfsg1-2+b1) ... Selecting previously unselected package libsamplerate0-dev:amd64. Preparing to unpack .../13-libsamplerate0-dev_0.2.2-3_amd64.deb ... Unpacking libsamplerate0-dev:amd64 (0.2.2-3) ... Selecting previously unselected package libsndio-dev:amd64. Preparing to unpack .../14-libsndio-dev_1.9.0-0.3+b2_amd64.deb ... Unpacking libsndio-dev:amd64 (1.9.0-0.3+b2) ... Selecting previously unselected package libudev-dev:amd64. Preparing to unpack .../15-libudev-dev_252.26-1~deb12u2_amd64.deb ... Unpacking libudev-dev:amd64 (252.26-1~deb12u2) ... Selecting previously unselected package libxfixes-dev:amd64. Preparing to unpack .../16-libxfixes-dev_1%3a6.0.0-2_amd64.deb ... Unpacking libxfixes-dev:amd64 (1:6.0.0-2) ... Selecting previously unselected package libxcursor-dev:amd64. Preparing to unpack .../17-libxcursor-dev_1%3a1.2.1-1_amd64.deb ... Unpacking libxcursor-dev:amd64 (1:1.2.1-1) ... Selecting previously unselected package libxi-dev:amd64. Preparing to unpack .../18-libxi-dev_2%3a1.8-1+b1_amd64.deb ... Unpacking libxi-dev:amd64 (2:1.8-1+b1) ... Selecting previously unselected package libxinerama-dev:amd64. Preparing to unpack .../19-libxinerama-dev_2%3a1.1.4-3_amd64.deb ... Unpacking libxinerama-dev:amd64 (2:1.1.4-3) ... Selecting previously unselected package libxkbcommon-dev:amd64. Preparing to unpack .../20-libxkbcommon-dev_1.5.0-1_amd64.deb ... Unpacking libxkbcommon-dev:amd64 (1.5.0-1) ... Selecting previously unselected package libxrandr-dev:amd64. Preparing to unpack .../21-libxrandr-dev_2%3a1.5.2-2+b1_amd64.deb ... Unpacking libxrandr-dev:amd64 (2:1.5.2-2+b1) ... Selecting previously unselected package libxss-dev:amd64. Preparing to unpack .../22-libxss-dev_1%3a1.2.3-1_amd64.deb ... Unpacking libxss-dev:amd64 (1:1.2.3-1) ... Selecting previously unselected package libxt-dev:amd64. Preparing to unpack .../23-libxt-dev_1%3a1.2.1-1.1_amd64.deb ... Unpacking libxt-dev:amd64 (1:1.2.1-1.1) ... Selecting previously unselected package libxv-dev:amd64. Preparing to unpack .../24-libxv-dev_2%3a1.0.11-1.1_amd64.deb ... Unpacking libxv-dev:amd64 (2:1.0.11-1.1) ... Selecting previously unselected package libxxf86vm-dev:amd64. Preparing to unpack .../25-libxxf86vm-dev_1%3a1.1.4-1+b2_amd64.deb ... Unpacking libxxf86vm-dev:amd64 (1:1.1.4-1+b2) ... Selecting previously unselected package libsdl2-dev:amd64. Preparing to unpack .../26-libsdl2-dev_2.26.5+dfsg-1_amd64.deb ... Unpacking libsdl2-dev:amd64 (2.26.5+dfsg-1) ... Setting up libsndio-dev:amd64 (1.9.0-0.3+b2) ... Setting up libpciaccess-dev:amd64 (0.17-2) ... Setting up libxxf86vm-dev:amd64 (1:1.1.4-1+b2) ... Setting up libxkbcommon-dev:amd64 (1.5.0-1) ... Setting up libsamplerate0-dev:amd64 (0.2.2-3) ... Setting up libxss-dev:amd64 (1:1.2.3-1) ... Setting up libgbm-dev:amd64 (22.3.6-1+deb12u1) ... Setting up libibus-1.0-dev:amd64 (1.5.27-5) ... Setting up libxfixes-dev:amd64 (1:6.0.0-2) ... Setting up libxv-dev:amd64 (2:1.0.11-1.1) ... Setting up libwayland-bin (1.21.0-1) ... Setting up libxrandr-dev:amd64 (2:1.5.2-2+b1) ... Setting up libxt-dev:amd64 (1:1.2.1-1.1) ... Setting up libudev-dev:amd64 (252.26-1~deb12u2) ... Setting up libxinerama-dev:amd64 (2:1.1.4-3) ... Setting up libpulse-dev:amd64 (16.1+dfsg1-2+b1) ... Setting up libglx-dev:amd64 (1.6.0-1) ... Setting up libxi-dev:amd64 (2:1.8-1+b1) ... Setting up libasound2-dev:amd64 (1.2.8-1+b1) ... Setting up libgl-dev:amd64 (1.6.0-1) ... Setting up libdrm-dev:amd64 (2.4.114-1+b1) ... Setting up libxcursor-dev:amd64 (1:1.2.1-1) ... Setting up libwayland-dev:amd64 (1.21.0-1) ... Setting up libdecor-0-dev:amd64 (0.1.1-2) ... Processing triggers for glx-alternative-mesa (1.2.2) ... update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/mesa-diverted/libGL.so-master (libGL.so-master) in auto mode Processing triggers for man-db (2.11.2-2) ... Setting up libegl-dev:amd64 (1.6.0-1) ... Setting up libgles-dev:amd64 (1.6.0-1) ... Setting up libsdl2-dev:amd64 (2.26.5+dfsg-1) ... Processing triggers for libc-bin (2.36-9+deb12u7) ... ```
./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
Output: ``` 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 8 not upgraded. Need to get 2,398 kB of archives. After this operation, 10.3 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 libpostproc-dev amd64 7:5.1.6-0+deb12u1 [96.5 kB] Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 libswscale-dev amd64 7:5.1.6-0+deb12u1 [242 kB] Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 libavfilter-dev amd64 7:5.1.6-0+deb12u1 [1,932 kB] Get:4 http://security.debian.org/debian-security bookworm-security/main amd64 libavdevice-dev amd64 7:5.1.6-0+deb12u1 [127 kB] Fetched 2,398 kB in 0s (27.7 MB/s) Selecting previously unselected package libpostproc-dev:amd64. (Reading database ... 439679 files and directories currently installed.) Preparing to unpack .../libpostproc-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libpostproc-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libswscale-dev:amd64. Preparing to unpack .../libswscale-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libswscale-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libavfilter-dev:amd64. Preparing to unpack .../libavfilter-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libavfilter-dev:amd64 (7:5.1.6-0+deb12u1) ... Selecting previously unselected package libavdevice-dev:amd64. Preparing to unpack .../libavdevice-dev_7%3a5.1.6-0+deb12u1_amd64.deb ... Unpacking libavdevice-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libpostproc-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libswscale-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libavfilter-dev:amd64 (7:5.1.6-0+deb12u1) ... Setting up libavdevice-dev:amd64 (7:5.1.6-0+deb12u1) ... ```
./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
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libusb-1.0-doc The following NEW packages will be installed: libusb-1.0-0-dev libusb-1.0-doc 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 276 kB of archives. After this operation, 1,953 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bookworm/main amd64 libusb-1.0-0-dev amd64 2:1.0.26-1 [83.3 kB] Get:2 http://deb.debian.org/debian bookworm/main amd64 libusb-1.0-doc all 2:1.0.26-1 [193 kB] Fetched 276 kB in 0s (6,633 kB/s) Selecting previously unselected package libusb-1.0-0-dev:amd64. (Reading database ... 439725 files and directories currently installed.) Preparing to unpack .../libusb-1.0-0-dev_2%3a1.0.26-1_amd64.deb ... Unpacking libusb-1.0-0-dev:amd64 (2:1.0.26-1) ... Selecting previously unselected package libusb-1.0-doc. Preparing to unpack .../libusb-1.0-doc_2%3a1.0.26-1_all.deb ... Unpacking libusb-1.0-doc (2:1.0.26-1) ... Setting up libusb-1.0-doc (2:1.0.26-1) ... Setting up libusb-1.0-0-dev:amd64 (2:1.0.26-1) ... ```

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
Benjamin-Loison commented 2 weeks ago
./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
Benjamin-Loison commented 2 weeks ago
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
Benjamin-Loison commented 2 weeks ago
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.