[needs-packaging] Smartcam

Bug #259371 reported by Ruben Romero
94
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Ubuntu
In Progress
Wishlist
Michael Gorven

Bug Description

The SmartCam project has now a working version for Linux (yes, they have tested it under Ubuntu Hardy) and it would be great to get the app packaged and ready to use under Ubuntu.

What it does, basically, is:

SmartCam - Smart Phone Web Camera - Turns a Symbian Series 60 phone with bluetooth and camera into a handy webcam ready to use with your PC

http://sourceforge.net/projects/smartcam/

Such apps are very popular and Nokia is the biggest single SmartPhone provider in the world so there are lots of people out there wanting this (even if they do not know about it).

There is also an "announcement" at ubuntu forums:

http://ubuntuforums.org/showthread.php?t=831663

Anyone be up to package this?

Revision history for this message
Jesper Larsen (knorr) wrote :

URL: http://sourceforge.net/projects/smartcam/
License: GNU General Public License (GPL)

Revision history for this message
Stefan Lesicnik (stefanlsd) wrote :

The source code does not include licensing information with is required for an Ubuntu package. I've asked upstream to include this.

http://sourceforge.net/tracker/index.php?func=detail&atid=963142&aid=2060092&group_id=197856

Revision history for this message
deion (deionut) wrote :

SmartCam has now GPL license file in release 2008.08.20.
Thanks for packaging SmartCam in Ubuntu.
Cheers,
Ionut

Revision history for this message
Ruben Romero (huayra) wrote :

GPL file has been added. Maybe is it ready for packaging now?

Revision history for this message
Craig Silk (csilk) wrote :

This software appears to conform to the Ubuntu new package standards now that the license has been added.
I'll happily package this software, my only reservation is the fact I have no means of testing it as I don't own a nokia, as long as that is noted I don't mind starting on this at the end of the month.

Revision history for this message
foxy123 (foxy) wrote :

I have tested it on Hardy and it works fine even with Skype. However I have failed to compile th edriver on Intrepid. Anyway I will be happy to test the package.

Revision history for this message
Craig Silk (csilk) wrote :

Ok sounds good. I've currently got a few things on the go at once right now so if no one else takes an interest in packaging this app I'll start work on it when I can (probaby before the end of the month) and submit it for consideration into the Intrepid repositories.

Revision history for this message
Oh Gawd (codermaniac) wrote :

Hi I made a patch to make it compile on a 2.6.27.1 kernel in my gentoo system. I've sent the patch to the maintainer. I'm attaching it and its also available here: http://sathya.freeshell.org/smartcam-linux-2.6.27.1.patch

Revision history for this message
ouinouin (julien-bresciani) wrote :

Hi , this package seems very interresting , I ve got a N95 to test it but the driver wont compile under intrepid with the kernel :

 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux

Revision history for this message
foxy123 (foxy) wrote :

Use the patch above your post. It did a trick for me. Thanks a lot, Satish!

Revision history for this message
stewart (tillsoil) wrote :

Hi, not sure how to implement this patch - I'm a bit of a beginner

Revision history for this message
stewart (tillsoil) wrote :

Got the patch implemented as follows:

Copied and pasted into jedit. Saved as smartcam-linux-2.6.27.1.patch
ran: patch -p0 < smartcam-linux-2.6.27.1.patch

However, when running insmod smartcam.ko, I get the following error message:
insmod: error inserting 'smartcam.ko': -1 Unknown symbol in module

Any help would be greatly appreciated... Where am I going wrong?!?

Stewart

Revision history for this message
niandubay (niandubay79) wrote :
Download full text (10.1 KiB)

i have intrepid with kernell 2.6.27-12-generic ... i can`t compile driver..

juanch0@juanch0-laptop:~/Escritorio/smartcam/src/driver$ make -C /lib/modules/2.6.27-12-generic/build M=`pwd` modules
make: se ingresa al directorio `/usr/src/linux-headers-2.6.27-12-generic'
  CC [M] /home/juanch0/Escritorio/smartcam/src/driver/smartcam.o
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c: En la función ‘smartcam_mmap’:
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:194: error: declaración implícita de la función ‘vmalloc_to_pfn’
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:195: error: declaración implícita de la función ‘remap_pfn_range’
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:195: error: ‘PAGE_SHARED’ no se declaró aquí (primer uso en esta función)
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:195: error: (Cada identificador no declarado solamente se reporta una vez
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:195: error: para cada funcion en la que aparece.)
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c: En el nivel principal:
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:559: error: ‘video_ioctl2’ no se declaró aquí (no en una función)
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:566: error: se especificó el campo desconocido ‘type’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:572: error: se especificó el campo desconocido ‘vidioc_querycap’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:572: aviso: la inicialización crea un entero desde un puntero sin una conversión
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:573: error: se especificó el campo desconocido ‘vidioc_enum_fmt_cap’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:573: aviso: la inicialización crea un entero desde un puntero sin una conversión
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:574: error: se especificó el campo desconocido ‘vidioc_g_fmt_cap’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:574: aviso: la inicialización crea un entero desde un puntero sin una conversión
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:574: error: el elemento inicializador no es calculable al momento de la carga
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:574: error: (cerca de la inicialización de ‘smartcam_vid.tvnorms’)
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:575: error: se especificó el campo desconocido ‘vidioc_try_fmt_cap’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:575: aviso: la inicialización crea un entero desde un puntero sin una conversión
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:575: error: el elemento inicializador no es calculable al momento de la carga
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:575: error: (cerca de la inicialización de ‘smartcam_vid.current_norm’)
/home/juanch0/Escritorio/smartcam/src/driver/smartcam.c:576: error: se especificó el campo desconocido ‘vidioc_s_fmt_cap’ en el inicializador
/home/juanch0/Escritorio/smartcam/src/driver/smartcam....

Revision history for this message
lunch (launch-mailinator-com) wrote :

@niandubay: That error is fixed by the 2.6.27 patch

Unfortunately modprobe segfaults when adding it in 2.6.28. Kernel module development seems to be hell...

Attached log of dmesg.

Revision history for this message
foxy123 (foxy) wrote :

I wonder if anyone can package it.

Revision history for this message
TamCore (f-admin-united-irc-eu) wrote :

Compiled with the 2.6.27 patch
philipp@lappy ~/smartcam/src/driver $ sudo insmod smartcam.ko
insmod: error inserting 'smartcam.ko': -1 Unknown symbol in module

[20577.108145] smartcam: Unknown symbol video_ioctl2
[20577.108550] smartcam: Unknown symbol video_unregister_device
[20577.108770] smartcam: Unknown symbol video_register_device
[20579.635048] smartcam: Unknown symbol video_ioctl2
[20579.635451] smartcam: Unknown symbol video_unregister_device
[20579.635673] smartcam: Unknown symbol video_register_device
[20633.967331] smartcam: Unknown symbol video_ioctl2
[20633.967735] smartcam: Unknown symbol video_unregister_device
[20633.967957] smartcam: Unknown symbol video_register_device

does anyone has an 2.6.28 (and 2.6.29) patch?

Revision history for this message
Shashank Naik (shashank-naik) wrote :

On jaunty beta, with 2.6.28-11-generic, on running insmod smartcam.ko, segfaults due to a BUG_ON in v4l2-dev.c (line 229) (in drivers/media/video directory in the kernel). This BUG_ON specifically mentions that it expects a release callback from the smartcam video device.
In smartcam.c, uncomment the following line after applying the patch (2.6.27.1 patch works fine).

.release = video_device_release,

I don't see an implementation of the release function for smartcam, so using the default implementation of the video_device's release will atleast help us bypass the BUG_ON.

Revision history for this message
ukblacknight (tom-blacknight) wrote :

I've managed to patch the file, perform the modprobe etc, however I cannot compile the PC application!

Revision history for this message
ukblacknight (tom-blacknight) wrote :

I'm on Intrepid running 2.6.27-11-generic by the way.

Revision history for this message
fsaravia (francisco-saravia) wrote :

In Kubuntu Jaunty, 2.6.28-11-generic

patch applied and the line ".release = video_device_release" in smartcam.c uncommented, /dev/video0 chmoded to 0666

compile OK, insmod, etc...

program runs and when i try to connect from the phone (Nokia N73), program crashes

in the phone, i can see the frame captured, and then the message:
"Disconnected -18"

In the computer, this backtrace (attached):

Revision history for this message
Sebastian Feuerstack (sfeu) wrote :

I can confirm the crash reported by fsaravia for Kernel 2.6.27-11-generic on Ubuntu 8.10.

I get an connection from my Nokia E71 to the smartcam app and an initial picture as well. But directly after the initial webcam frame is shown, i got the same crash and then the message:
"Disconnected -18"

 backtrace (see attached)

Revision history for this message
Michael Gorven (mgorven) wrote :
Changed in ubuntu:
assignee: nobody → Michael Gorven (mgorven)
status: Confirmed → In Progress
Revision history for this message
Dennis Baudys (thecondordb) wrote :
Download full text (3.2 KiB)

Hi Michael Gorven, Stefan Zerkalica (I subscribed you to this wishlist/bug), deion, Ruben Romero and everybody else!

I'm using Ubuntu 10.10 (MAVERICK) 64 BIT (with kernel 2.6.35-31-generic # 63-Ubuntu now) and since more than 8 months I'm trying to get smartcam working. In the meantime I was able to build the smartcam kernel driver (with lots and lots of patching) and also loading it into the kernel but I can NOT COMPILE the SMARTCAM APPLICATION (see: http://sourceforge.net/tracker/?func=detail&aid=3463579&group_id=197856&atid=963142 ).

So I tried "smartcam_1.4.0-4_amd64.deb" from STEFAN Zerkalica's PPA ( https://launchpad.net/~zerkalica/+archive/smartcam ) and it doesn't complain during installation but trying to run the smartcam app fails with a crash (segmentation fault/SEGFAULT):

***
smartcam: registered DBUS service "org.gnome.smartcam"
Found smartcam device file: /dev/video1
smartcam: started comm thread
smartcam: port = 1
Speicherzugriffsfehler
***

Then I thought maybe it doesn't work with my self-built smartcam kernel driver but needs the corresponding smartcam driver (1.4.0-4) from the same ppa - but this package seems to be build against kernel 2.6.35-25-generic (and not 2.6.35-31, which is the current one for Maverick 64 bit). Of course I stopped there and did not install the older kernel.

The "Speicherzugriffsfehler" (segmentation fault) could be coming from a bug in the smartcam code that relates to "Bluetooth either not being available" (I don't have Bluetooth!), see patch http://sourceforge.net/tracker/?func=detail&aid=2893361&group_id=197856&atid=963144
… or to the "Bluetooth device enumeration issue"/"bug in DynamicBtBind() causing always listen on port 1", see patch http://sourceforge.net/tracker/?func=detail&aid=3096560&group_id=197856&atid=963144
… I don't know.

* Regarding the "Bluetooth not being available" issue, Michael Gorven (~mgorven) provided the before mentioned first patch, but he didn't package smartcam for Maverick 64 bit.
* Regarding the "bug in DynamicBtBind() causing always listen on port 1" issue, "leniviytorrent" provided the before mentioned second patch.
* Regarding the packaging for Maverick 64 bit, I think Stefan Zerkalica (~zerkalica) could do the trick!

Would you people be so kind to work together, if possible or STEFAN or ANYBODY, would you like to INCLUDE these PATCHES and build a working Ubuntu Maverick 64 bit PACKAGE against KERNEL 2.6.35-31-generic # 63-Ubuntu (and maybe even for newer Ubuntu releases, too)? Or what is the point I'm missing here?

Thank you very very much in advance,

Kind Regards,

Dennis (~thecondordb)

PS: In the end, I'd like to get SmartCam working for 3rd party programs like Skype, Cheese etc. on Maverick 64 bit, fetching the video stream by WiFi from my Motorola Milestone with Android 2.2.1, where the smartcam app (.apk from Android Market) already work flawlessly - but streams only to my web browser at the moment.

PPS: The package description as well as the ReadMe.txt of SmartCam could be updated to mention Android and WiFi etc, too, and not only Symbian and Bluetooth, am I correct?

PPPS: Please excuse me writing partially in caps - I did this for visibility pu...

Read more...

Revision history for this message
Dennis Baudys (thecondordb) wrote :
Download full text (14.2 KiB)

Hi again!

I couldn't sleep, so I decided to dig into this "smartcam won't compile on Ubuntu 10.10 64 bit" issue a bit deeper and searched the web. Maybe you'll find the thing I found as interesting as I do - however I'm not quite sure, whether it's really about the same problem that I have on my machine.

The problem I have is:

  /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
  (.text+0x12): undefined reference to `__libc_csu_fini'
  /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
  (.text+0x19): undefined reference to `__libc_csu_init'
  collect2: ld returned 1 exit status

The information I found is:

  (from May 2006)
    http://www.archivum.info/gnu.gcc.help/2006-05/00071/Re-__libc_csu_fini-and-__libc_csu_init.html
  (from Oct 2010)
    http://www.linuxquestions.org/questions/linux-general-1/undefined-reference-to-%60__libc_csu_fini-849247/
  (from Sep 2011)
    https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/837745

Please see the following tests I did and maybe you can find this useful to help us:

condor@herkules:~$ uname -a

Linux herkules 2.6.35-31-generic # 63-Ubuntu SMP Mon Nov 28 19:29:10 UTC 2011 x86_64 GNU/Linux

condor@herkules:~/Install/smartcam-1.4.0$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.40.0... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTHREAD... yes
checking for GTK... yes
checking for DBUS... yes
checking for GCONF... yes
checking for hci_open_dev in -lbluetooth... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for s...

Revision history for this message
Max (bubuta) wrote :

smartcam is building without errors on ubuntu 11.04 x86_64.

Revision history for this message
Peter Meiser (meiser79) wrote :

Anyone working on a kernel patch to support 3.11?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.