You are not logged in.
Hello:
Looking for a screen mirroring application to use with an old but working smartphone camera, I came across this one which is available for Debian Bullseye but cannot find in the Devuan repositories.
I downloaded it and passed it through the GDebi package installer and the result was that there was an unmet dependency: libavformat58
This was the only unmet dependency for this package and it seems that it does not require systemd's meddling to work.
When attempting to install libavformat58, apt says it is not available but that it is referred to by another package.
Looking at the Devuan packages page, I found that this library was available for both Beowulf and Chimaera and that there was a newer (?) version, libavformat59 available for Daedalus and is already installed in my system.
I also looked at the banned packages page but scrcpy_* was not listed there.
Any one know of a suitable alternative to this screen mirroring application?
Thanks in advance.
Best,
A.
Offline
You may try to rebuild the package for your Devuan.
sudo apt-get install build-essential debhelper devscripts
apt show devscripts
1. Download the Debian source code (tars, dsc) manually.
You may also try sources from Ubuntu, or Ubuntu PPA.
For example, to rebuild wxMaxima for Devuan5, I used this source:
_https://launchpad.net/ubuntu/+source/wxmaxima/24.02.1-1build2
2. Extract the source code
dpkg-source -x *.dsc
3. cd to the source code directory
4. Install build dependencies
sudo mk-build-deps -i
5. Build the package
dpkg-buildpackage -us -uc -b
EDIT:
To avoid troubles, you may check build dependencies before installing them
$ mk-build-deps --help | grep "Build-Depends dependencies" -B2
-B, --build-dep
Generate a package which only depends on the source package's
Build-Depends dependencies.
dpkg-deb --info *.deb
You may also check dependencies before installing the package.
Last edited by igorzwx (2024-07-26 15:53:27)
Offline
Maybe one of several deb versions of libavformat58 at pkgs.org works?
Offline
If deb packages from the net break dependencies, you may try to fix them with "sudo apt install -f"
Offline
Hello:
... try to rebuild the package ...
Thank you very much for taking the time to write that up.
Much appreciated.
But I would rather avoid having to do something like that.
... one of several deb versions of libavformat58 at pkgs.org works?
Yes, I had thought of that.
But no.
GDebi will not install any of the three as there are unmet dependencies for all of them.
Seems that dependency hell is at the gates. 8^°
Thank you both for your input.
Best,
A.
Offline
Perhaps, you may better try to rebuild. This sort of practical knowledge may liberate from frustration.
Offline
Hello:
... better try to rebuild. This sort of practical knowledge may liberate from frustration.
Yes, I have often thought about that specific aspect of the Linux 'experience'.
ie: building a package, not frustration (which is also part of it) 8^D .
Thanking you for your confidence in my abilities, I will see if I can get something done this week-end and if so, report back.
Thank you very much for your input.
Best,
A.
Offline
There is also a simple trick. Sometimes, it helps, but not always.
You can unpack a deb package with a special command.
Remove the unwanted dependencies from the list of dependencies.
Then pack it again, and install the deb.
This does not mean that the app will work, but this does not break dependencies.
If it does not work, you can simply remove the package
sudo apt remove <name of the package>
But this trick may cause troubles, if it about some important system libs (it may overwrite symlinks, etc.).
Debian wiki: Get the build dependencies
_https://wiki.debian.org/BuildingAPackage#Get_the_build_dependencies
_https://wiki.gbe0.com/linux/Debian/rebuild-package-from-source
Last edited by igorzwx (2024-07-26 22:34:32)
Offline
@Altoid, did you try installing when adding/keeping a chimaera sources.list line (in addition to daedalus)? or does that raise conflict with the "59" package?
Offline
Hello:
... a simple trick.
... may cause troubles ...
Playing with fire comes to mind. 8^D
I strive to be very (very) careful with what I do to my Devuan and try, above all things, to avoid risking havok.
Yes, I do have daily backups but still ...
That said, thanks for the tip.
It may come in handy should I want to experiment with a VM.
Best,
A.
Offline
@ralph.ronnquist
Perhaps, the simplest way is to download the source code (tars + dsc) manually from the Chimaera repository. This will not cause any "conflics".
Could you provide the link?
Last edited by igorzwx (2024-07-26 22:59:56)
Offline
Hello:
... try installing when adding/keeping a chimaera sources.list line (in addition to daedalus)?
No.
Never thought of doing something like that.
ie: I have mix and match sources as being a Linux no-no
... or does that raise conflict with the "59" package?
No idea.
That said, I would have thought that the "59" package would somehow be compatible with the "58" package.
ie: would cover the same functions but apt is is clear with respect to the unmet dependency.
I'll see about that possibility this week-end.
Thanks for your input.
Best,
A.
Offline
A next option if indeed the "59" package does provide the required ABI could be to use equivs and set up a dummy "58" package so as to make apt happy (believing the "58" package is installed).
Your equivs package, which takes a small amount of effort, would be void of content and only have the meta information declaring it to provide libavformat58 and depend on libavformat59.
In that way you would implement that claim that your "59" package provides whatever is required from the "58" package.
Offline
In the Chimaera repo, there might be the same source as in Debian
Debian:
_https://packages.debian.org/bullseye/scrcpyDownload Source Package scrcpy:
[scrcpy_1.17-1.dsc]
[scrcpy_1.17.orig.tar.gz]
[scrcpy_1.17-1.debian.tar.xz]
These three packages are needed. They provide the original source code, Debian patches, etc.
The Chimaera repo is likely to have these 3 packages and, perhaps, a package with Devuan patches.
Patches will automatically be applied, when you run "dpkg-source -x *.dsc"
How to get source code of package using the apt command on Debian or Ubuntu
_https://www.cyberciti.biz/faq/how-to-get-source-code-of-package-using-the-apt-command-on-debian-or-ubuntu/
1. enable the source repo
2. download the source with apt-get
apt-get source scrcpy
apt-get will download the source packages, unpack the source, and apply the patches.
3. disable the source repo
4. install build dependencies with mk-build-deps
5. build the package
Debian wiki: Get the build dependencies
_https://wiki.debian.org/BuildingAPackage#Get_the_build_dependencies
equivs
_https://wiki.debian.org/Packaging/HackingDependencies
Last edited by igorzwx (2024-07-27 00:58:58)
Offline
the package is on unstable, https://tracker.debian.org/pkg/scrcpy
Offline
Thank you for the link!
It has links to old and new sources.
I will try to compile this:
_https://packages.debian.org/source/unstable/scrcpy
Download scrcpy
scrcpy_1.25-1.dsc
scrcpy_1.25.orig.tar.gz
scrcpy_1.25-1.debian.tar.xz
But I do have any sort of Android.
Offline
The "unstable" source failed
dpkg-checkbuilddeps: error: Unmet build dependencies: android-sdk-platform-23
$ dpkg-buildpackage -us -uc -b
dpkg-buildpackage: info: source package scrcpy
dpkg-buildpackage: info: source version 1.25-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Yangfl <mmyangfl@gmail.com>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: android-sdk-platform-23
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
EDIT:
Debian sources need "android-sdk-platform-23" to be compiled.
But it seems that it is not available for Debian 12 Bookworm and Devuan 5 Daedalus.
This is the problem.
Last edited by igorzwx (2024-07-27 15:37:51)
Offline
Ubuntu package scrcpy_1.25-1_amd64.deb libavformat59 (>= 7:5.0)
Devuan:
$ apt show libavformat59
Package: libavformat59
Version: 7:5.1.5-0+deb12u1
_http://us.archive.ubuntu.com/ubuntu/pool/universe/s/scrcpy/
_http://us.archive.ubuntu.com/ubuntu/pool/universe/s/scrcpy/scrcpy_1.25-1_amd64.deb
$ dpkg-deb --info scrcpy_1.25-1_amd64.deb
new Debian package, version 2.0.
size 75486 bytes: control archive=949 bytes.
740 bytes, 16 lines control
707 bytes, 10 lines md5sums
Package: scrcpy
Version: 1.25-1
Architecture: amd64
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Yangfl <mmyangfl@gmail.com>
Installed-Size: 198
Depends: libavcodec59 (>= 7:5.0), libavdevice59 (>= 7:5.0), libavformat59 (>= 7:5.0), libavutil57 (>= 7:5.0), libc6 (>= 2.34), libsdl2-2.0-0 (>= 2.0.12), libusb-1.0-0 (>= 2:1.0.16), scrcpy-server (= 1.25-1)
Recommends: adb
Section: net
Priority: optional
Homepage: https://github.com/Genymobile/scrcpy
Description: Display and control your Android device
This application provides display and control of Android devices connected on
USB (or over TCP/IP). It does not require any root access.
.
This package contains the client (desktop) binary.
scrcpy-server_1.25-1_all.deb
_http://us.archive.ubuntu.com/ubuntu/pool/universe/s/scrcpy/scrcpy-server_1.25-1_all.deb
It was installed without problems:
$ sudo dpkg -i scrcpy_1.25-1_amd64.deb scrcpy-server_1.25-1_all.deb
(Reading database ... 391780 files and directories currently installed.)
Preparing to unpack scrcpy_1.25-1_amd64.deb ...
Unpacking scrcpy (1.25-1) over (1.25-1) ...
Selecting previously unselected package scrcpy-server.
Preparing to unpack scrcpy-server_1.25-1_all.deb ...
Unpacking scrcpy-server (1.25-1) ...
Setting up scrcpy-server (1.25-1) ...
Setting up scrcpy (1.25-1) ...
Processing triggers for bamfdaemon (0.5.6+repack-1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mate-menus (1.26.0-3) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.11.2-2) ...
$ whereis scrcpy
scrcpy: /usr/bin/scrcpy /usr/share/scrcpy /usr/share/man/man1/scrcpy.1.gz
$ scrcpy
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
ERROR: Could not find any ADB device
ERROR: Server connection failed
I do not have any Android.
Last edited by igorzwx (2024-07-27 18:14:21)
Offline
Hello:
Ubuntu package scrcpy_1.25-1_amd64.deb libavformat59 (>= 7:5.0)
Ahh ...
Tried it but GDebi asks for scrcpy-server_1.25-1_all.deb which I downloaded and installed from the same repository.
Seems to work properly and now I have to see if I can find the right version of the GUI for this application as there it looks like there is more than one.
If I find that it does what I want it to do, I will explore the possibility of building the latest version with the source provided by the author.
Many thanks to all those who pitched in.
Much appreciated.
Best,
A.
Offline
I installed them both (see may previous post) with command
sudo dpkg -i scrcpy_1.25-1_amd64.deb scrcpy-server_1.25-1_all.deb
scrcpy-server_1.25-1_all.deb
_http://us.archive.ubuntu.com/ubuntu/pool/universe/s/scrcpy/scrcpy-server_1.25-1_all.deb
How to Install Scrcpy [Screen Copy] on Ubuntu 22.04 Jammy Jellyfish | ADB Scrcpy [Debugging Bridge]
_https://www.youtube.com/watch?v=is-ASr4n45g
Scrcpy 2.0 is out! How to Install & Use this Android Remote Control App
_https://ubuntuhandbook.org/index.php/2023/03/scrcpy-2-0-install-android-remote-control/
EVERYTHING WAS INSTALLED, but I do not have an Android device to test it.
Last edited by igorzwx (2024-07-27 19:14:15)
Offline
Hello:
... installed them both (see may previous post) ...
Indeed ...
You are (of course) quite right. 8^°
Was so glad to see it that I rushed to get it installed without having read the whole of your post.
So I stand corrected, 2x my previous thanks to you. 8^)
That said, I have confirmed that the application works properly on both of the phones I have been gifted and will be able to use them as an on-screen microscope.
Some sort of an adjustable stand/holder for the things is now in the brewing stage.
Best,
A.
Offline
What is interesting, android-sdk-platform-23 is also available in the same Ubuntu repository. It was also installed on Devuan 5 Daedalus without any problems:
$ sudo dpkg -i libandroid-23-java_6.0.1+r72-6_all.deb libandroid-uiautomator-23-java_6.0.1+r72-6_all.deb android-sdk-platform-23_6.0.1+r72-6_all.deb
(Reading database ... 399860 files and directories currently installed.)
Preparing to unpack libandroid-23-java_6.0.1+r72-6_all.deb ...
Unpacking libandroid-23-java (6.0.1+r72-6) over (6.0.1+r72-6) ...
Selecting previously unselected package libandroid-uiautomator-23-java.
Preparing to unpack libandroid-uiautomator-23-java_6.0.1+r72-6_all.deb ...
Unpacking libandroid-uiautomator-23-java (6.0.1+r72-6) ...
Preparing to unpack android-sdk-platform-23_6.0.1+r72-6_all.deb ...
Unpacking android-sdk-platform-23 (6.0.1+r72-6) over (6.0.1+r72-6) ...
Setting up libandroid-23-java (6.0.1+r72-6) ...
Setting up libandroid-uiautomator-23-java (6.0.1+r72-6) ...
Setting up android-sdk-platform-23 (6.0.1+r72-6) ...
android-sdk-platform-23
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/android-sdk-platform-23_6.0.1+r72-6_all.deb
libandroid-23-java
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/libandroid-23-java_6.0.1+r72-6_all.deb
libandroid-uiautomator-23-java
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/libandroid-uiautomator-23-java_6.0.1+r72-6_all.deb
As the names suggest, all these debs are native Debian packages, which were somehow appropriated by Ubuntu.
The native Ubuntu packages look like this:
android-sdk-platform-23_6.0.1+r72-6ubuntu1_all.deb
android-sdk-platform-23 is needed to compile scrcpy on Devuan 5 Daedalus (see above).
The source is android-framework-23
android-framework-23_6.0.1+r72.orig.tar.xz 2016-11-11
android-framework-23_6.0.1+r72-6.debian.tar.xz 2021-01-02
android-framework-23_6.0.1+r72-6.dsc 2021-01-02
It is 100% Debian source without Ubuntu patches.
It is available in the same Ubuntu repository:
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/android-framework-23_6.0.1+r72.orig.tar.xz
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/android-framework-23_6.0.1+r72-6.debian.tar.xz
_http://us.archive.ubuntu.com/ubuntu/pool/universe/a/android-framework-23/android-framework-23_6.0.1+r72-6.dsc
$ cat /var/lib/dpkg/status | grep android-sdk-platform-23 -B11
Package: android-sdk
Suggests: android-sdk-platform-23, maven, proguard-gui
Why isn't android-sdk-platform-23 available in the Devuan 5 Daedalus repository?
Last edited by igorzwx (2024-07-28 01:31:43)
Offline
Hello:
... interesting, android-sdk-platform-23 is also available ...
... these debs are native Debian packages, which were somehow appropriated ...
Don't know if appropriated would be the proper term to use.
After all, Ubuntu is derived from Debian ie: it is a Debian based distribution, composed of free / open-source software.
Which the Debian packages you mention also are.
Why isn't android-sdk-platform-23 available in the Devuan 5 Daedalus repository?
Hmm ...
Could not say, I'm sure there's a reason for that.
That said, let's not forget how under-staffed and over-worked the Devuan crew maintaining this heroic effort acually is.
Thanks for your input.
Best,
A.
Last edited by Altoid (2024-07-28 07:40:29)
Offline
This means that you have to learn how to rebuild packages.
But you cannot learn this, if it is impossible to compile.
On the other hand, if the users do not want to learn anything, the "under-staffed and over-worked Devuan crew" may have more work to do.
Have you already installed android-sdk-platform-23 and rebuilt scrcpy for Devuan?
The name of a Debian package is determined by its changelog.
If you want to change the name, you can add certain lines to the changelog, or edit it.
$ apt changelog scrcpy | cat
Get:1 store: scrcpy 1.25-1 Changelog
scrcpy (1.25-1) unstable; urgency=medium
* New upstream release
* Bump Standards-Version to 4.6.2
-- Yangfl <mmyangfl@gmail.com> Fri, 20 Jan 2023 18:28:52 +0800
scrcpy (1.24-1) unstable; urgency=medium
* New upstream release
* FTBFS if BUILD_DIR is set (Closes: #1013304)
* Bump Standards-Version to 4.6.1
-- Yangfl <mmyangfl@gmail.com> Sat, 16 Jul 2022 17:47:57 +0800
scrcpy (1.23-1) unstable; urgency=medium
* New upstream release
* scrcpy now require scrcpy-server of the same version (Closes: #1004201)
* Fix FTBFS with ffmpeg 5.0 (Closes: #1004812)
-- Yangfl <mmyangfl@gmail.com> Wed, 09 Mar 2022 16:37:46 +0800
scrcpy (1.21-1) unstable; urgency=medium
* New upstream release
-- Yangfl <mmyangfl@gmail.com> Wed, 01 Dec 2021 04:36:41 +0800
scrcpy (1.19-1) unstable; urgency=medium
* New upstream release (Closes: #995295)
* Bump Standards-Version to 4.6.0
-- Yangfl <mmyangfl@gmail.com> Thu, 30 Sep 2021 11:25:13 +0800
scrcpy (1.17-1) unstable; urgency=medium
* New upstream release
-- Yangfl <mmyangfl@gmail.com> Mon, 18 Jan 2021 16:40:22 +0800
scrcpy (1.14-1) unstable; urgency=medium
* New upstream release
* Bump Standards-Version to 4.5.0
* Bump debhelper compat to 13
-- Yangfl <mmyangfl@gmail.com> Wed, 01 Jul 2020 14:59:53 +0800
scrcpy (1.12.1+ds-1) unstable; urgency=medium
* New upstream release (Closes: #947465)
* Recommend but not depend on adb
* Add upstream metadata
-- Yangfl <mmyangfl@gmail.com> Tue, 14 Jan 2020 13:14:59 +0800
scrcpy (1.11+ds-1) unstable; urgency=medium
* Initial release (Closes: #893279)
-- Yangfl <mmyangfl@gmail.com> Wed, 20 Nov 2019 23:40:21 +0800
Fetched 1,678 B in 0s (0 B/s)
Last edited by igorzwx (2024-07-28 11:46:06)
Offline
Hello:
... have to learn how to rebuild packages.
Yes, given the time and the need to actually do it.
But it is rather over my head and would have a steep learning curve for me.
... cannot learn this, if it is impossible to compile.
Yes, that makes much sense.
... installed android-sdk-platform-23 and rebuilt scrcpy ...
No, I have not.
Like I mentioned earlier on (and thanks to the infomation you provided), I was able to install scrcpy and scrcpy-server in the version available from the Ubuntu repositories ie: scrcpy v1.25.
It seems to work properly for what my needs are so I will not be needing an updated version for the time being.
eg: it works perfectly well with a USB connection, I have no need for wireless.
I suppose that the latest version (2.50) will eventually make it to the Ubuntu repositories, so if the need arises I can always try that.
Once again, than you very much for your input.
Best,
A.
Offline