Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 339780

Summary: media-video/droidcam - Use your Android phone as a wireless webcam
Product: Gentoo Linux Reporter: jamatik <jamatik>
Component: New packagesAssignee: Nowa Ammerlaan <nowa>
Status: RESOLVED FIXED    
Severity: enhancement CC: alunduil, chris, dawnstyle, dblaci, gmt, kmhzsem, nowa, tomboy64, zdanevich.vitaly
Priority: High Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.dev47apps.com/
See Also: https://github.com/gentoo/gentoo/pull/16736
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: droidcam-2.0.ebuild
AMD Build Patch
droidcam-3.5.4.ebuild
droidcam.desktop
droidcam-3.5.4.ebuild
droidcam.desktop
droidcam-3.5.4.ebuild
droidcam-3.5.4.ebuild
droidcam-3.5.4.ebuild
droidcam-6.7.3.ebuild
Fixed failing install phase and renamed to droidcam-bin

Description jamatik 2010-10-05 04:54:13 UTC
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
Comment 1 Michael Mauch 2010-12-11 14:13:28 UTC
Created attachment 256895 [details]
droidcam-2.0.ebuild
Comment 2 M. B. 2010-12-16 13:55:34 UTC
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.
Comment 3 M. B. 2010-12-16 13:57:34 UTC
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.
Comment 4 Alex Brandt (RETIRED) gentoo-dev 2010-12-16 17:59:45 UTC
Created attachment 257343 [details, diff]
AMD Build Patch

This patch fixes the ebuild building issues for the module on mad64 machines.
Comment 5 rainer 2011-06-12 18:32:33 UTC
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'
Comment 6 Oschtan 2013-08-14 20:00:30 UTC
Created attachment 356028 [details]
droidcam-3.5.4.ebuild
Comment 7 Oschtan 2013-08-14 20:00:51 UTC
Created attachment 356030 [details]
droidcam.desktop
Comment 8 Oschtan 2013-08-14 20:02:54 UTC
Created attachment 356032 [details]
droidcam-3.5.4.ebuild
Comment 9 Oschtan 2013-08-14 20:03:21 UTC
Created attachment 356034 [details]
droidcam.desktop
Comment 10 Oschtan 2013-08-14 20:09:06 UTC
Created attachment 356036 [details]
droidcam-3.5.4.ebuild
Comment 11 Oschtan 2013-08-14 20:52:37 UTC
Created attachment 356040 [details]
droidcam-3.5.4.ebuild
Comment 12 Dimitrios Semitsoglou-Tsiapos 2014-09-26 10:52:54 UTC
Created attachment 385494 [details]
droidcam-3.5.4.ebuild

New SRC_URIs, added droidcam-cli, icon.png became icon2.png.
Comment 13 Greg Turner 2019-04-24 11:41:18 UTC
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.
Comment 14 Greg Turner 2019-04-24 11:47:22 UTC
I think maybe it should really be droidcam-bin?  The module is (vendored) open-source but the userland is pure blob-ware.
Comment 15 XenHat 2019-11-17 21:04:31 UTC
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.
Comment 16 Vitaly Zdanevich 2020-02-28 10:14:06 UTC
But droidcam is not in portage?
https://packages.gentoo.org/packages/search?q=droidcam
Comment 17 marius.spix 2021-01-02 15:47:31 UTC
That ebuild also requires:

CONFIG_SND_ALOOP
dev-libs/libappindicator:3
Comment 18 marius.spix 2021-01-02 15:52:10 UTC
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)
Comment 19 marius.spix 2021-01-02 16:00:39 UTC
There are a lot more dependencies like adb (if you want to use USB mode) and the v4l2loopback.
Comment 20 marius.spix 2021-01-02 16:29:54 UTC
The uninstall script also depends on sudo, but you can simply edit that script and remove all instances of the word sudo.
Comment 21 Larry the Git Cow gentoo-dev 2021-05-22 13:14:51 UTC
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(+)