LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-19-2009, 02:57 AM   #16
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31

luvcview -f yuv

this command helps me to view my cam

but other utilities like gstremer camorama and cheese are failing
 
Old 11-19-2009, 03:29 AM   #17
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
you have 3 posts. Let me try

lucview. That's mildly interesting and verifies a few things.
gspca module. How does lucview do it? Otherwise I would expect some camera module.

Libraries: Probably no libs in /usr/lib64 is a problem, and you will know if everything else has their libs there. I should explain
/begin history lesson
On the making of 64-bit distros, most people left 32 bit libs in /usr/lib for compatability with existing software, and put 64-bit ones in/usr/lib64#
Somebody, (Debian, afaik) felt that 'native' libs should go in /usr/lib (64-bit in the case of a 64 bit system) and invented /usr/lib32 for 32 bit libs. A 64 bit system usually needs some of both.
/end history lesson

Try
file /usr/lib/vl412.*
file /usr/lib32/vl412.*

Watch for 32 bit or 64 bit. Then try 'ls /usr/lib64' & 'ls /usr/lib32'

ONE of those will have very few libs, and they are misplaced. If you have Debian, it will be /usr/lib64. Otherwise, /usr/lib32 are the orphans. They will have to go to/usr/lib, and the equivelants in /usr/lib to /usr/lib64. Then run ldconfig.
 
Old 11-19-2009, 06:40 AM   #18
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
lucview it tells that driver is a uvcvideo


#modprobe -l | grep ov
kernel/drivers/media/video/ov7670.ko
kernel/drivers/media/video/ov772x.ko
kernel/drivers/media/video/ovcamchip/ovcamchip.ko
kernel/drivers/media/video/gspca/gspca_ov519.ko
kernel/drivers/media/video/gspca/gspca_ov534.ko
kernel/drivers/media/dvb/dvb-usb/dvb-usb-nova-t-usb2.ko
kernel/ubuntu/lenovo-sl-laptop/lenovo-sl-laptop.ko


and i confirmed the directory structure is ok

will compiling my own kernel help?

what is the procedure to show my kernel image in grub-2?

Last edited by ankscorek; 11-19-2009 at 10:02 PM.
 
Old 11-20-2009, 03:53 AM   #19
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It wasn't your directory structure I was worried about.
Your library search path would not have /usr/lib32 and /usr/lib64. That's the issue
One of them is wrong. either that or add them both to /etc/ld.so,conf & run ldconfig
 
Old 11-21-2009, 06:58 AM   #20
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib
/usr/lib32
/usr/lib64





the problem still remains the same
no change in error also

sudo LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so camorama -d /dev/video0
ERROR: ld.so: object '/usr/lib32/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

Last edited by ankscorek; 11-21-2009 at 07:54 AM.
 
Old 11-22-2009, 10:05 AM   #21
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by ankscorek View Post
ERROR: ld.so: object '/usr/lib32/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.
Well it has told you what's wrong, so we don't have to.

Check /usr/lib32/libv4l/v4l1compat.so. run

ls /usr/lib32/libv4l/ (should show files)
ldconfig ( should show nothing but is a good idea)
ldd /usr/lib32/libv4l/v4l1compat.so and look for things not found
 
Old 11-24-2009, 01:38 AM   #22
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
ldd /usr/lib32/libv4l/v4l1compat.so
linux-gate.so.1 => (0xf7761000)
libv4l1.so.0 => /usr/lib32/libv4l1.so.0 (0xf7734000)
libc.so.6 => /lib32/libc.so.6 (0xf75f0000)
libv4l2.so.0 => /usr/lib32/libv4l2.so.0 (0xf75e5000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf75cc000)
/lib/ld-linux.so.2 (0xf7762000)
libv4lconvert.so.0 => /usr/lib32/libv4lconvert.so.0 (0xf7561000)
librt.so.1 => /lib32/librt.so.1 (0xf7558000)
libm.so.6 => /lib32/libm.so.6 (0xf7532000)


is the one in red the errorenous part? do i do a ln -s?
 
Old 11-25-2009, 04:17 AM   #23
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by ankscorek View Post
ldd /usr/lib32/libv4l/v4l1compat.so
linux-gate.so.1 => (0xf7761000)
libv4l1.so.0 => /usr/lib32/libv4l1.so.0 (0xf7734000)
libc.so.6 => /lib32/libc.so.6 (0xf75f0000)
libv4l2.so.0 => /usr/lib32/libv4l2.so.0 (0xf75e5000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf75cc000)
/lib/ld-linux.so.2 (0xf7762000)
libv4lconvert.so.0 => /usr/lib32/libv4lconvert.so.0 (0xf7561000)
librt.so.1 => /lib32/librt.so.1 (0xf7558000)
libm.so.6 => /lib32/libm.so.6 (0xf7532000)


is the one in red the errorenous part? do i do a ln -s?


Beware that the standard layout of libs is as follows

libGL.so => a symlink to libGL.so.1
libGL.so.1 => a symlink to libGL.so.1.2
libGL.so.1.2 => The actual lib

so the real test is to check
ls -l /usr/lib32/libv4l/v4l1compat.*, and make sure one of them pointed to by the symlinks is an actual lib.

Also confusion is possible with 32/64 bit issues. If you have a 64 bit executable, ldd might point to a 32 bit lib cheerfully enough, but it will barf if you run it. (NOT FOUND errors). Run file on things to check that.
 
Old 11-30-2009, 09:53 PM   #24
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
ls -l /usr/lib32/libv4l/v4l1compat.*
-rw-r--r-- 1 root root 5408 2009-07-21 00:33 /usr/lib32/libv4l/v4l1compat.so


i think 64 bit is not an issue cause i remember readin in ubuntu forums that v4l2 works only for 32 bit..the person under query was using 64bit distro
 
Old 12-01-2009, 05:07 AM   #25
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Arrow

Quote:
Originally Posted by ankscorek View Post
ls -l /usr/lib32/libv4l/v4l1compat.*
-rw-r--r-- 1 root root 5408 2009-07-21 00:33 /usr/lib32/libv4l/v4l1compat.so
i think 64 bit is not an issue cause i remember readin in ubuntu forums that v4l2 works only for 32 bit..the person under query was using 64bit distro
I would expect it to be 32 bit in /usr/lib32. Is there another in /usr/lib, or /usr/lib64?

That should work IF AND ONLY IF everything in the chain is 32 bit
e.g. 32 bit browser-->32bit webcam executable using 32 bit library

check with file
file /usr/lib32/libv4l/v4l1compat.so
will show you 32 bit. Check the others.
 
Old 02-14-2010, 05:03 AM   #26
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
it is still not working
 
Old 02-15-2010, 02:59 AM   #27
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by ankscorek View Post
it is still not working
Elabhorate. Whhat have you checked? What can you say for certain? Whatt errors show? etc. You have the info in front of you - you have to tell us.

Have you Skype? That's 32 bit. There is a test mode for the video cam. You don't need lib4l to see yourself in that. I've been through this, and you can compile libv4l as 32 bit or 64 bit.

Last edited by business_kid; 02-15-2010 at 03:02 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web cam hippie2me Linux - Newbie 6 04-25-2008 11:29 AM
would like to play aMSN web cam sessions (.cam extension) using external program Gogul Linux - Software 5 09-17-2006 08:51 AM
Web Cam Hophoto SUSE / openSUSE 1 02-21-2006 10:18 PM
I just got a web cam blufire Linux - Hardware 2 11-29-2005 12:15 PM
web cam and web cam server citrus Linux - General 2 03-24-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration