Android smartphoneas wireless webcam (kernel module + client program + server on the android smartphone). WiFi only at the moment. http://www.dev47apps.com/ license: unkown Reproducible: Always
Created attachment 256895 [details] droidcam-2.0.ebuild
When emerging on amd64 the build dies looking for /usr/src/<my-explicit-linux-version>/arch/amd64 - which is non-existant. Creating a symlink from x86 to amd64 works around it. Running droidcam with VLC (and probably all ffmpeg related software) is only possible with `LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so vlc` But this is an upstream issue. The result works fine so far. Suggestion: Providing a simple init file for init.d to run it as a service.
Premature sendage. The LD_PRELOAD-fix was from http://www.dev47apps.com/droidcam/linux/#comment-681 The build-issue only appears when compiled via ebuild - stock compilation works fine without it.
Created attachment 257343 [details, diff] AMD Build Patch This patch fixes the ebuild building issues for the module on mad64 machines.
In the ebuild for AMD64 SRC_URI="http://www.dev47apps.com/files/droidcam.tar.gz" need to be changed to SRC_URI="http://www.dev47apps.com/files/droidcam-x64.tar.gz" However, an emerge still fails.... # emerge droidcam Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-video/droidcam-2.0 from local * droidcam-x64.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Package: media-video/droidcam-2.0 * Repository: local * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU * FEATURES: ccache sandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.39-gentoo-r1cfg-2011-06-12 >>> Unpacking source... >>> Unpacking droidcam-x64.tar.gz to /var/tmp/portage/media-video/droidcam-2.0/work >>> Source unpacked in /var/tmp/portage/media-video/droidcam-2.0/work >>> Compiling source in /var/tmp/portage/media-video/droidcam-2.0/work ... /var/tmp/portage/media-video/droidcam-2.0/temp/environment: line 3385: cd: /var/tmp/portage/media-video/droidcam-2.0/work/src: No such file or directory make -j9 droidcam make: Nothing to be done for `droidcam'. /var/tmp/portage/media-video/droidcam-2.0/temp/environment: line 3387: cd: /var/tmp/portage/media-video/droidcam-2.0/work/driver: No such file or directory make -j9 -C /usr/src/linux M=/var/tmp/portage/media-video/droidcam-2.0/work make: Entering directory `/usr/src/linux-2.6.39-gentoo-r1' scripts/Makefile.build:44: /var/tmp/portage/media-video/droidcam-2.0/work/Makefile: No such file or directory make[1]: *** No rule to make target `/var/tmp/portage/media-video/droidcam-2.0/work/Makefile'. Stop. make: *** [_module_/var/tmp/portage/media-video/droidcam-2.0/work] Error 2 make: Leaving directory `/usr/src/linux-2.6.39-gentoo-r1' emake failed * ERROR: media-video/droidcam-2.0 failed (compile phase): * emake kernel module failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3389: Called die * The specific snippet of code: * emake -C "${KV_OUT_DIR}" M=`pwd` || die "emake kernel module failed" * * If you need support, post the output of 'emerge --info =media-video/droidcam-2.0', * the complete build log and the output of 'emerge -pqv =media-video/droidcam-2.0'. * This ebuild is from an overlay named 'local': '/usr/local/portage/' * The complete build log is located at '/var/log/media-video:droidcam-2.0:20110612-182710.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/droidcam-2.0/temp/environment'. * S: '/var/tmp/portage/media-video/droidcam-2.0/work'
Created attachment 356028 [details] droidcam-3.5.4.ebuild
Created attachment 356030 [details] droidcam.desktop
Created attachment 356032 [details] droidcam-3.5.4.ebuild
Created attachment 356034 [details] droidcam.desktop
Created attachment 356036 [details] droidcam-3.5.4.ebuild
Created attachment 356040 [details] droidcam-3.5.4.ebuild
Created attachment 385494 [details] droidcam-3.5.4.ebuild New SRC_URIs, added droidcam-cli, icon.png became icon2.png.
Created attachment 573946 [details] droidcam-6.7.3.ebuild Updated for latest-and-greatest... pretty sure the .png web fetch is not a larry-the-cow-approved technique, maybe that should go in ${FILESDIR} but ... folks are technically authorized to redistribute stuff like that? No clue.
I think maybe it should really be droidcam-bin? The module is (vendored) open-source but the userland is pure blob-ware.
Created attachment 596556 [details] Fixed failing install phase and renamed to droidcam-bin I fixed the install stage as it was expecting a file that did not exist, and renamed to droidcam-bin.
But droidcam is not in portage? https://packages.gentoo.org/packages/search?q=droidcam
That ebuild also requires: CONFIG_SND_ALOOP dev-libs/libappindicator:3
Upstream package has also changed: https://files.dev47apps.net/linux/droidcam_latest.zip The installation process is shown here: https://www.dev47apps.com/droidcam/linux/ ./install-client for client ./install-sound for sound (uses aloop driver) ./install-video for video (uses v4l2loopback driver)
There are a lot more dependencies like adb (if you want to use USB mode) and the v4l2loopback.
The uninstall script also depends on sudo, but you can simply edit that script and remove all instances of the word sudo.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e27e4d1408679f7ffeddd6bbba7381f1276c66 commit 57e27e4d1408679f7ffeddd6bbba7381f1276c66 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2021-05-22 13:09:33 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2021-05-22 13:14:48 +0000 media-video/droidcam: import from ::guru Closes: https://bugs.gentoo.org/339780 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> media-video/droidcam/Manifest | 1 + media-video/droidcam/droidcam-1.7.3.ebuild | 142 +++++++++++++++++++++ .../droidcam/files/droidcam-makefile-fixes.patch | 47 +++++++ media-video/droidcam/metadata.xml | 35 +++++ 4 files changed, 225 insertions(+)