Page 1 of 9 123 ... LastLast
Results 1 to 10 of 87

Thread: Smartcam

  1. #1
    Join Date
    Jan 2008
    Beans
    144

    Smartcam

    has anyone got this program to work on ubuntu. it has a linux port

    http://sourceforge.net/projects/smartcam

    and has anyone got it to work with amsn?

  2. #2
    Join Date
    Apr 2009
    Location
    México
    Beans
    6

    Talking Re: Smartcam

    Hi pedrom169

    I recently installed the smartcam for linux and my nokia 6120c and after a while i got it working.

    I put here the general process that i made, i made it work on Fedora 10. i hope it works for you under Ubuntu.

    Get the latest version of smartcam for linux

    http://sourceforge.net/project/downl...zip&a=68574644

    if you have a kernel 2.6.28.x you will have to patch the smartcam
    get the patch

    http://launchpadlibrarian.net/192222...2.6.27.1.patch

    then unzip the smartcam

    $ unzip smartcam_v_2008.09.18.2.zip

    $ cd smartcam/
    $ patch -p0 < smartcam-linux-2.6.27.1.patch
    patching file src/driver/smartcam.c

    then compile the driver

    $ cd src/driver
    $ make -C /lib/modules/`uname -r`/build M=`pwd` modules # <-- To compile it
    make: Entering directory `/usr/src/linux-2.6.27.21'
    Building modules, stage 2.
    MODPOST 1 modules
    make: Leaving directory `/usr/src/linux-2.6.27.21'

    $ sudo insmod smartcam.ko # <-- To load it
    $ lsmod | grep smartcam # <-- To check if it's loaded

    smartcam 5720 0
    videodev 29376 2 smartcam,pwc

    $ cd ../.. # <-- Return to the smartcam directory


    at this time you should have compiled it
    make sure you have libbluetooth-dev , bluez library ,


    then execute

    ./release/smartcam

    more probably you should do this, if it returns an error that you don't have libbluetooth.so.2 , what i did to solve it was create a symbolic link of this way
    $ sudo ln -s /usr/lib/libbluetooth.so.3.2.0 /usr/lib/libbluetooth.so.2
    the try again the above command to compile.

    $ cd src/app
    $ gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam
    $ ./smartcam
    Found smartcam device file: /dev/video0
    port = 1


    Get the smartcam 1.3 for S60 3rd edition phone
    http://www.easy-share.com/c/1903225886
    or http://www.ziddu.com/download/316136..._v1.3.zip.html

    then install the SmartCamS603rdEd_v1_3.sis on the phone
    in sourceforge there is the 1.4 for S60 but it has problem running with the bluez package at least to me it didn't work.

    in the directory smartcam/src/driver
    as root run
    $sudo cp smartcam.ko /lib/modules/2.6.27.21-170.2.56.fc10.i686/extra/

    $ sudo /sbin/modprobe videodev
    $ sudo /sbin/insmod smartcam.ko

    then run
    $ /sbin/lsmod | grep smartcam

    it should give you some like this

    smartcam 10008 0
    videodev 32000 1 smartcam

    if you wish you can copy smartcam to /usr/local/bin to all users

    inside /smartcam/src/app
    $ sudo cp smartcam /usr/local/bin/smartcam

    I did a script for starting the service

    $ nano /etc/init.d/smartcam

    and i write

    #!/bin/sh
    cd /home/user/smartcam/src/driver
    /sbin/insmod smartcam.ko
    /sbin/modprobe smartcam


    that's all run the smartcam on linux

    ./smartcam/src/app/smartcam

    then run the application on the phone. Enjoy it.

  3. #3
    Join Date
    Nov 2007
    Location
    /Europe/UK/Wales/Cardiff
    Beans
    218
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Smartcam

    Quote Originally Posted by luxten View Post
    Hi pedrom169

    I recently installed the smartcam for linux and my nokia 6120c and after a while i got it working.

    I put here the general process that i made, i made it work on Fedora 10. i hope it works for you under Ubuntu.

    Get the latest version of smartcam for linux

    http://sourceforge.net/project/downl...zip&a=68574644

    if you have a kernel 2.6.28.x you will have to patch the smartcam
    get the patch

    http://launchpadlibrarian.net/192222...2.6.27.1.patch

    then unzip the smartcam

    $ unzip smartcam_v_2008.09.18.2.zip

    $ cd smartcam/
    $ patch -p0 < smartcam-linux-2.6.27.1.patch
    patching file src/driver/smartcam.c

    then compile the driver

    $ cd src/driver
    $ make -C /lib/modules/`uname -r`/build M=`pwd` modules # <-- To compile it
    make: Entering directory `/usr/src/linux-2.6.27.21'
    Building modules, stage 2.
    MODPOST 1 modules
    make: Leaving directory `/usr/src/linux-2.6.27.21'

    $ sudo insmod smartcam.ko # <-- To load it
    $ lsmod | grep smartcam # <-- To check if it's loaded

    smartcam 5720 0
    videodev 29376 2 smartcam,pwc

    $ cd ../.. # <-- Return to the smartcam directory


    at this time you should have compiled it
    make sure you have libbluetooth-dev , bluez library ,


    then execute

    ./release/smartcam

    more probably you should do this, if it returns an error that you don't have libbluetooth.so.2 , what i did to solve it was create a symbolic link of this way
    $ sudo ln -s /usr/lib/libbluetooth.so.3.2.0 /usr/lib/libbluetooth.so.2
    the try again the above command to compile.

    $ cd src/app
    $ gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam
    $ ./smartcam
    Found smartcam device file: /dev/video0
    port = 1


    Get the smartcam 1.3 for S60 3rd edition phone
    http://www.easy-share.com/c/1903225886
    or http://www.ziddu.com/download/316136..._v1.3.zip.html

    then install the SmartCamS603rdEd_v1_3.sis on the phone
    in sourceforge there is the 1.4 for S60 but it has problem running with the bluez package at least to me it didn't work.

    in the directory smartcam/src/driver
    as root run
    $sudo cp smartcam.ko /lib/modules/2.6.27.21-170.2.56.fc10.i686/extra/

    $ sudo /sbin/modprobe videodev
    $ sudo /sbin/insmod smartcam.ko

    then run
    $ /sbin/lsmod | grep smartcam

    it should give you some like this

    smartcam 10008 0
    videodev 32000 1 smartcam

    if you wish you can copy smartcam to /usr/local/bin to all users

    inside /smartcam/src/app
    $ sudo cp smartcam /usr/local/bin/smartcam

    I did a script for starting the service

    $ nano /etc/init.d/smartcam

    and i write

    #!/bin/sh
    cd /home/user/smartcam/src/driver
    /sbin/insmod smartcam.ko
    /sbin/modprobe smartcam


    that's all run the smartcam on linux

    ./smartcam/src/app/smartcam

    then run the application on the phone. Enjoy it.
    Hi Luxten,

    Cheers for proving a comprehensive guide for this!! I'm trying to get it working for my Nokia N96.

    I've patched the driver, and now I'm trying to do the "insmod" line, however i'm getting this:

    Code:
    tom@blacknight:~/Downloads/Firefox/Smartcam/smartcam/src/driver$ sudo insmod smartcam.ko
    insmod: error inserting 'smartcam.ko': -1 Unknown symbol in module
    Any ideas what this is? Also, in your codes, you always have "#" at the end, I'm assuming that isn't supposed to be part of the commands?

    If I could get this working it'd be great!

    I'm running Ubuntu 9.04 x86_64.

  4. #4
    Join Date
    Apr 2009
    Location
    México
    Beans
    6

    Smile Re: Smartcam

    Hi Ukblacknight

    I reproduced the error you're having.
    While trying to load first the module smartcam.ko inside the folder where it was compiled.

    the same error even running as root

    # insmod: error inserting 'smartcam.ko': -1 Unknown symbol in module

    Try to load first the videodev with

    sudo /sbin/modprobe videodev

    then inside /smartcam/src/driver

    run as root

    sudo /sbin/insmod smartcam.ko

    it should not return an error, if you are here now. check


    /sbin/lsmod | grep smartcam

    smartcam 10008 0
    videodev 32000 1 smartcam


    If you see something like this, the module smartcam is loaded.

    I hope it works.

  5. #5
    Join Date
    Apr 2009
    Location
    México
    Beans
    6

    Re: Smartcam

    Sorry Ukblacknight

    exactly where appears the # at the end doesn't form part of the code, then is a comment.

    Could you compile the smartcam successfully?

    after applying the patch?


    Regards

  6. #6
    Join Date
    Nov 2007
    Location
    /Europe/UK/Wales/Cardiff
    Beans
    218
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Smartcam

    Hi Luxten,

    Driver

    I did the insmod command, in which it said Segmentation fault, however, checking the kernel for the module shows:

    Code:
    smartcam               16380  1 
    videodev               45184  1 smartcam
    Plus, trying the command again says that it's already loaded!

    Application

    Trying to execute ./release/smartcam gives:

    Code:
    tom@blacknight:~/Downloads/Firefox/Smartcam/smartcam$ ./release/smartcam
    ./release/smartcam: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: No such file or directory
    I've created the symbolic link as in the description.

    Now then, I'm unable to compile the application, as it churns out lots of errors when I run the gcc command!

    The first 7 lines look like the following:

    Code:
    smartcam.c:25:33: error: bluetooth/bluetooth.h: No such file or directory
    smartcam.c:26:30: error: bluetooth/rfcomm.h: No such file or directory
    smartcam.c:27:27: error: bluetooth/sdp.h: No such file or directory
    smartcam.c:28:31: error: bluetooth/sdp_lib.h: No such file or directory
    smartcam.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    smartcam.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    smartcam.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    I'd really like this application to work, as it saves me buying a web cam when I have one already sitting on my desk!

  7. #7
    Join Date
    Nov 2007
    Location
    /Europe/UK/Wales/Cardiff
    Beans
    218
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Smartcam

    Well, I've made some advances, to the point where the application is half working!

    I deleted the smartcam.* files and started again, this time the driver was added successfully.

    I then tried the compile of the application, which again failed.

    Important

    Code:
    sudo apt-get install gnome-common libbluetooth-dev
    This prevents the compile errors I get when trying to compile the application.

    I can install the J2ME apps to my phone, however the .SIS versions say that the certificate has expired. Now, I've managed to make it transmit - but only a picture. The phone constantly asks for permission for the application to access the camera, in which when you press yes, it takes a photo, sends it to the smartcam app, and then the phone requests permission again!

    It does this on both my Nokia N95 and N96. I'll try it on my N73 (yes, I have many phones lying around )

    I'd rather have the .SIS version, as I'd imagine the security problem wouldn't be so bad!

  8. #8
    Join Date
    Apr 2009
    Location
    México
    Beans
    6

    Talking Re: Smartcam

    hi ukblacknight

    Did you get the SmartCam_v1.3.zip (0.4 MB) from
    http://www.easy-share.com/c/1903225886


    I also had that inconvenient with the java application, and with version sisx 1.4 caused an unknow error while communicating with the smartcam on linux, so i found the sisx version 1.3 i installed it and it's working since that installation.

    When you said
    I then tried the compile of the application, which again failed.

    You mean at this point?, when you run it does it cause an error or not?.

    $ cd src/app
    # gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam
    $ ./smartcam
    Found smartcam device file: /dev/video0
    port = 1


    As i hear you said you have half working, so try installing the 1.3 sisx version.

  9. #9
    Join Date
    Apr 2009
    Location
    México
    Beans
    6

    Re: Smartcam

    Sorry i said sisx file, but inside of the compressed file there is a file named SmartCamS603rdEd_v1_3.sis that is the program i'm using.


  10. #10
    Join Date
    Nov 2007
    Location
    /Europe/UK/Wales/Cardiff
    Beans
    218
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Smartcam

    Cheers luxten, that did the trick!

    I'd had it working yesterday but the application kept crashing, something about X server. Seems to be OK now though...

    Do you need to run your application as root in order for it to work?

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •