I wanted to try this package out because Pop!_OS (Ubuntu) ships older versions of scrcpy and I do not want to run Snaps. So, Flatpaks are the way to go. So I updated the org.freedesktop.Sdk//21.08 and scrcpy to v1.20, and Android platform tools v31.0.3.
This pull request updates those. I did run into build issues however.
```bash
➜ scrcpy-flatpak git:(master) ✗ make build
flatpak-builder test com.Genymobile.Scrcpy.yaml --force-clean
Downloading sources
Initialized empty Git repository in /home/filbot/Documents/Development/scrcpy-flatpak/.flatpak-builder/git/https_github.com_Genymobile_scrcpy.git-N6U0D1/
Fetching git repo https://github.com/Genymobile/scrcpy.git, ref refs/tags/v1.20
remote: Enumerating objects: 244, done.
remote: Counting objects: 100% (244/244), done.
remote: Compressing objects: 100% (224/224), done.
remote: Total 244 (delta 8), reused 111 (delta 3), pack-reused 0
Receiving objects: 100% (244/244), 396.08 KiB | 972.00 KiB/s, done.
Resolving deltas: 100% (8/8), done.
From https://github.com/Genymobile/scrcpy
* [new tag] v1.20 -> v1.20
Downloading https://github.com/Genymobile/scrcpy/releases/download/v1.20/scrcpy-server-v1.20
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 658 100 658 0 0 1465 0 --:--:-- --:--:-- --:--:-- 1465
100 37139 100 37139 0 0 33488 0 0:00:01 0:00:01 --:--:-- 70339
Downloading https://dl.google.com/android/repository/platform-tools_r31.0.3-linux.zip
100 12.6M 100 12.6M 0 0 1298k 0 0:00:10 0:00:10 --:--:-- 1841k
Initializing build dir
Committing stage init to cache
Starting build of com.Genymobile.Scrcpy
========================================================================
Building module scrcpy in /home/filbot/Documents/Development/scrcpy-flatpak/.flatpak-builder/build/scrcpy-1
========================================================================
Note: switching to 'v1.20'.
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
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at a045e28 Bump version to 1.20
Running: install -D scrcpy-server-v1.20 /app/share/scrcpy-server.jar
Running: meson x --buildtype release --strip -Db_lto=true -Dprebuilt_server=/app/share/scrcpy-server.jar
The Meson build system
Version: 0.59.4
Source dir: /run/build/scrcpy
Build dir: /run/build/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.20
C compiler for the host machine: ccache cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency libavformat found: YES 58.45.100
Run-time dependency libavcodec found: YES 58.91.100
Run-time dependency libavutil found: YES 56.51.100
Run-time dependency sdl2 found: YES 2.0.16
Run-time dependency libavdevice found: YES 58.10.100
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)
app/meson.build:88:8: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake
A full log can be found at /run/build/scrcpy/x/meson-logs/meson-log.txt
Error: module scrcpy: Child process exited with code 1
make: *** [Makefile:4: build] Error 1
```
It would seem that now the libusb-1 is required to build. However, I'm not sure where to grab that library.
Building from source
After seeing Genymobile/scrcpy - Issue 486, I understand the Flatpak org's point of view, but for now, this has been proven to work, and building the other tools will take longer. This could be a different issue.
Description
I wanted to try this package out because Pop!_OS (Ubuntu) ships older versions of
scrcpy
and I do not want to run Snaps. So, Flatpaks are the way to go. So I updated theorg.freedesktop.Sdk//21.08
and scrcpy to v1.20, and Android platform tools v31.0.3.This pull request updates those. I did run into build issues however.
It would seem that now the
libusb-1
is required to build. However, I'm not sure where to grab that library.Building from source
After seeing Genymobile/scrcpy - Issue 486, I understand the Flatpak org's point of view, but for now, this has been proven to work, and building the other tools will take longer. This could be a different issue.