Sunday, August 15, 2010

installing gstfakevideo on ubuntu

/etc/init.d/udev reload

apt-get install libgstreamer0.10-dev pkg-config
svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
cd gstfakevideo
make
make install
Create a new file called skype.sh and add these lines:
#!/bin/sh
qcset /dev/video1 compat=dblbuf
gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace

http://www.kuhrti.de/index.php/linux/webcam-linux-and-skype-it-works/


sudo apt-get install libgstreamer0.10-dev pkg-config
[sudo] password for xxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version.
The following extra packages will be installed:
libglib2.0-dev libxml2-dev
Suggested packages:
libglib2.0-doc python-subunit gstreamer0.10-doc
The following NEW packages will be installed:
libglib2.0-dev libgstreamer0.10-dev libxml2-dev
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 2,759kB of archives.
After this operation, 10.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-updates/main libglib2.0-dev 2.24.1-0ubuntu1 [1,123kB]
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-updates/main libglib2.0-dev 2.24.1-0ubuntu1 [1,123kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libxml2-dev 2.7.6.dfsg-1ubuntu1 [751kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main libgstreamer0.10-dev 0.10.28-1 [886kB]
Fetched 2,759kB in 53s (51.5kB/s)
Selecting previously deselected package libglib2.0-dev.
(Reading database ... 216720 files and directories currently installed.)
Unpacking libglib2.0-dev (from .../libglib2.0-dev_2.24.1-0ubuntu1_i386.deb) ...
Selecting previously deselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2-dev_2.7.6.dfsg-1ubuntu1_i386.deb) ...
Selecting previously deselected package libgstreamer0.10-dev.
Unpacking libgstreamer0.10-dev (from .../libgstreamer0.10-dev_0.10.28-1_i386.deb) ...
Processing triggers for man-db ...
Setting up libglib2.0-dev (2.24.1-0ubuntu1) ...
Setting up libxml2-dev (2.7.6.dfsg-1ubuntu1) ...
Setting up libgstreamer0.10-dev (0.10.28-1) ...

svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
The program 'svn' is currently not installed. You can install it by typing:
sudo apt-get install subversion

sudo apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapr1 libaprutil1 libsvn1
Suggested packages:
subversion-tools db4.8-util
The following NEW packages will be installed:
libapr1 libaprutil1 libsvn1 subversion
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,411kB of archives.
After this operation, 6,836kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main libapr1 1.3.8-1build1 [116kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libaprutil1 1.3.9+dfsg-3build1 [85.4kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main libsvn1 1.6.6dfsg-2ubuntu1 [838kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main subversion 1.6.6dfsg-2ubuntu1 [372kB]
Fetched 1,411kB in 18s (74.3kB/s)
Selecting previously deselected package libapr1.
(Reading database ... 217131 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.3.8-1build1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-3build1_i386.deb) ...
Selecting previously deselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.6.6dfsg-2ubuntu1_i386.deb) ...
Selecting previously deselected package subversion.
Unpacking subversion (from .../subversion_1.6.6dfsg-2ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up libapr1 (1.3.8-1build1) ...

Setting up libaprutil1 (1.3.9+dfsg-3build1) ...

Setting up libsvn1 (1.6.6dfsg-2ubuntu1) ...

Setting up subversion (1.6.6dfsg-2ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo

A gstfakevideo/README-AMD64
A gstfakevideo/gstfakevideo
A gstfakevideo/gstfakevideo.c
A gstfakevideo/README
A gstfakevideo/Makefile
A gstfakevideo/gst.c
Checked out revision 3.

cd gstfakevideo
xxx@xxx:~/gstfakevideo$


make
gcc -O2 -Wall -m32 `pkg-config gstreamer-0.10 --cflags` -ldl `pkg-config gstreamer-0.10 --libs` -shared -fpic gst.c gstfakevideo.c -o libgstfakevideo.so
gst.c: In function ‘cb_handoff’:
gst.c:85: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
gstfakevideo.c: In function ‘open’:
gstfakevideo.c:164: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result

make install
cp libgstfakevideo.so /usr/local/lib
cp: cannot create regular file `/usr/local/lib/libgstfakevideo.so': Permission denied
make: *** [install] Error 1

after sudo
cp libgstfakevideo.so /usr/local/lib
chmod 0755 /usr/local/lib/libgstfakevideo.so
cp gstfakevideo /usr/local/bin
chmod 0755 /usr/local/bin/gstfakevideo

2 comments:

  1. I can't compile on Ubuntu 14.04 64-bit. Will respond with output if you email.

    ReplyDelete