Coder Social home page Coder Social logo

scrcpy-flatpak's People

Contributors

filbot3 avatar hadess avatar nexustar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scrcpy-flatpak's Issues

Build tools from source if able

Description

Seeing Genymobile/scrcpy#486 has brought up an interesting request I did not understand at first. Building from source against the org.freedesktop.Sdk ensures that the Flatpak will work on any architecture, where as using binaries may not. Some Flatpaks do do this already or did in the past, but it seems the Flatpak organization is making this a hard requirement.

Scrcpy Build

This should be fairly easy to build. Just would need to find the sources for libusb and get that into the build. I can't tell if this:

is the desired repository or not.

Android Platform Tools

The specific versions can be sourced like you're doing already, just update the version number.

Unable to build after updating to latest versions of scrcpy, adb, and Freedesktop

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 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.

➜  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 <new-branch-name>

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.

references to local files

Hi,
trying your flatpak method, as I don't like java app so much and I prefer it to be contained and easy removable.

Could you correct your com.Genymobile.Scrcpy.json, to remove local reference:


Downloading file:///home/uu/Downloads/ffmpeg-4.1.1.tar.xz
Failed to download sources: module ffmpeg: Couldn't open file /home/uu/Downloads/ffmpeg-4.1.1.tar.xz

Thanks

Unable to install ...

@12wk34 ...

I followed the build instructions but i am getting the following error when i try to install

$ flatpak --installation=myFlatpaks install tutorial-repo com.Genymobile.Scrcpy.json
Looking for matches…
error: Nothing matches com.Genymobile.Scrcpy.json in remote tutorial-repo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.