You are not logged in.

#1 2011-10-11 05:05:13

Xisdibik
Member
Registered: 2009-10-29
Posts: 6

[Solved]Flipped laptop webcam requires additional help

Hello Everyone,

I have the Fujitsu TH700 Tablet Convertable which unfortunately has a flipped webcam inside it.  I was able to email the person who is I guess in charge of the v4l packages who updated the package and sent me a tar.bz2 file with some basic ubuntu/fedora installation instructions.

The initial installation instructions work fine for programs like cheese but since I am running x86_64 it doesnt work for the 32 bit apps like skype.  He gave multilib instructions as well but only for Ubuntu and Fedora.  I am wondering if anyone would know how to make the v4l-utils file he sent for the 32 bit apps.

I tested it when I had gnome installed with cheese but am currently using KDE and dont have cheese installed anymore.

copy pasted instructions:

Non multilib instructions:
--------------------------
tar xvfj v4l-utils-<version>.tar.bz2
cd v4l-utils-<version>/lib
make PREFIX=/usr
sudo make install PREFIX=/usr

Fedora Multilib instructions:
-----------------------------
Basic 64 bit install:
tar xvfj v4l-utils-<version>.tar.bz2
cd v4l-utils-<version>/lib
make PREFIX=/usr LIBDIR=/usr/lib64
sudo make install PREFIX=/usr LIBDIR=/usr/lib64

If you also want to use 32 bit apps (such as skype), you
will need to have the 32 bit libc headers installed, on Fedora
this can be done like this:
Fedora 10-: "sudo yum install glibc-devel.i386"
Fedora 11:  "sudo yum install glibc-devel.i586"
Fedora 12+: "sudo yum install glibc-devel.i686"
[open]Suse: install glibc-devel-32bit and gcc-32bit

Then do:
make clean
make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-m32
sudo make install PREFIX=/usr

Ubuntu Multilib instructions:
-----------------------------
tar xvfj v4l-utils-<version>.tar.bz2
cd v4l-utils-<version>/lib
make PREFIX=/usr
sudo make install PREFIX=/usr

If you also want to use 32 bit apps (such as skype), you
will need to have the 32 bit libc headers installed, on Ubuntu
this can be done like this:
sudo apt-get install libc6-dev-i386
On gentoo this can be done like this:
sudo emerge -v app-emulation/emul-linux-x86-compat
Then do:
make clean
make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-m32 LIBDIR=/usr/lib32
sudo make install PREFIX=/usr LIBDIR=/usr/lib32


2. Testing
==========
You have a chance that your webcam app use libv4l or have an appropriate
script starting it. In that case you don't have to do anything. Just run
the application. This is the most common situation with Ubuntu and Fedora
packages. If your problem remains unsolved, then your app might not use libv4l.
In that case start the application from a terminal like this:

Non multilib:
----------------
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so <your favorite webcam app>

Note on Ubuntu sometimes skype is using a wrapper script, so if skype
does not work try:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype.real

Fedora multilib:
--------------------
For 64 bit applications (allmost all apps):
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so <your favorite webcam app>

For 32 bit applications (you only need it for proprietary softwares, which
don't have a 64 bit version, like skype):
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

Ubuntu multilib:
--------------------
For 64 bit applications (allmost all apps):
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so skype

For 32 bit applications (you only need it for proprietary softwares, which
don't have a 64 bit version, like skype):
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype

Note on Ubuntu sometimes skype is using a wrapper script, so if skype
does not work try:
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype.real


I am still relatively new to linux (I have been using it on and off for a while but never super seriously until more recently).  So please note that I may not know all the special commands/lingo for linux.

Thanks very much in advance.

-Xisdibik

Last edited by Xisdibik (2011-10-11 05:12:55)

Offline

#2 2011-10-11 05:13:25

Xisdibik
Member
Registered: 2009-10-29
Posts: 6

Re: [Solved]Flipped laptop webcam requires additional help

sigh, thought I had all the multilib gcc stuff installed but apparently was missing one.  Anyways works now so im happy.

Offline

Board footer

Powered by FluxBB