hi
is there any patch for he kernel 2.6.31-15?
hi
is there any patch for he kernel 2.6.31-15?
hi again,
problem solved. here what i have done:
1. download the following files.
(http://sourceforge.net/projects/smar...m-1.4.0.tar.gz)
smartcam-1.4.0.tar.gz
smartcam_1.4.0_i386.deb
2. cd smartcam-1.4.0/driver_src/
3. patch the smartcam.c file with the patch which is attached
patch -p0 < karmic.patch smartcam.c
4.sudo apt-get install linux-headers-$(uname -r)
5.sudo apt-get install build-essential
6.sudo apt-get install libgtk2.0-dev
7.sudo make -C /lib/modules/`uname -r`/build M=`pwd`
8.gksu gedit /etc/modules add this line
videodev
9./sbin/modprobe videodev
10./sbin/insmod smartcam.ko
that is all. hope it works.
(source http://forum.ubuntu-it.org/index.php...984.msg2145165)
Last edited by fatihsanli58; November 23rd, 2009 at 09:27 AM.
every time you should repeat the last two steps. could not find a solution yet.
Yes, it works! Now the driver compiles without problems.
I have followed the above instructions and I get this, when compiling the driver,
: .../driver_src$ sudo make -C /lib/modules/`uname -r`/build M=`pwd`
make: se ingresa al directorio `/usr/src/linux-headers-2.6.31-14-generic'
LD .../driver_src/built-in.o
CC [M] .../driver_src/smartcam.o
.../driver_src/smartcam.c:554: warning: initialization from incompatible pointer type
.../driver_src/smartcam.c:555: warning: initialization from incompatible pointer type
Building modules, stage 2.
MODPOST 1 modules
CC .../driver_src/smartcam.mod.o
LD [M] .../driver_src/smartcam.ko
make: se sale del directorio `/usr/src/linux-headers-2.6.31-14-generic'
I continue anyways and I load the driver, open the app in my pc and open the jar app in my mobile. It seems it is going to work because the app in the mobile try to connect via bluetooth, it recognizes the pc, and starts the connection. The screen of the mobile becomes black for a while and the app crashes with the following message:
javax.microedition.media.MediaException: Encoding is invalid
Msg: Encoding is invalid SmartCam will now exit !
Any idea???
Last edited by FranJPR; November 26th, 2009 at 12:09 PM.
which kernel you are using?
2.6.31-14-generic
I am running Kubuntu Karmic 9.10, I have upgraded to kernel 2.6.31-15-generic and compiled everything again, with the same warnings when compiling the driver, and the same result with the jar app.
the java mobile (j2me) version of SmartCam is no longer compatible with version 1.4.x of the PC application (windows or linux). It is still compatible with version 1.3 of the PC app, so you could use that version...
hmmm...
Compiling the app, version 1.3, I get,
.../src/app$ gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam
smartcam.c: In function ‘stop_server’:
smartcam.c:352: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct sdp_record_t *’
smartcam.c:352: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘struct sdp_session_t *’
... and I get the same result as post #16.
Bad luck!
Last edited by FranJPR; November 27th, 2009 at 12:36 AM.
Bookmarks