LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2012, 11:09 AM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Building zbar fails while configuration - no video support


Hello,

I'm trying to build zbar, a barcode reader.

I'm running Slackware64-current with the latest updates, generic kernel.
The sourcefile is zbar-0.10 and the slackbuildscript is from slacky.eu I've changed the arch to -x86_64 in the script.

./configure fails because /linux/videodev.h is missing

I found the following messages in config.log
Code:
configure:18727: checking linux/videodev.h usability
configure:18744: gcc -c -O2 -fPIC  conftest.c >&5
conftest.c:71:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
and
Code:
configure:18805: result: no
configure:18838: checking for linux/videodev.h
configure:18847: result: no
configure:18859: error: in `/tmp/txz/zbar/zbar-0.10':
configure:18864: error: test for video support failed!
rebuild your kernel to include video4linux support or
configure --disable-video to skip building video support.
See `config.log' for more details.
But I cannot seem to find out what my system is missing. In fact the module videodev is loaded. What is /linux/videodev.h?

I've appended the logfile to this posting.

Note that I want to use zbar with my webcam an I suppose that this would not work if I build the package with --disable-video

Thanks in advance

Markus
Attached Files
File Type: log config.log (47.0 KB, 0 views)
 
Old 07-19-2012, 11:23 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Looks like you are missing 'v4l-utils version 0.8.8'. I went to -->http://www.z01.eu/slak/ and entered the file you are missing, and it returns the v4l-utils package.

Hope this helps.
 
1 members found this post helpful.
Old 07-19-2012, 11:26 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
The problem is that you are missing the v4l1 header, which is deprecated in favor of v4l2 and likely not included in newer kernel headers such as the one that comes with -current. I also used zbar, so I hope someone ports it to v4l2 or I may have to if I can.
 
1 members found this post helpful.
Old 07-19-2012, 11:31 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I had an older package of zbar running, but zbarimg did not work anymore because of a missing library. So I wanted to build a new package and it seems, that this one would support zbarimg but not zbarcam.

I'll check v4l-util, thank you both for your help.

Markus
 
Old 07-19-2012, 11:43 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I've built and installed v4l-utils. But it doesn't work. The problem with videodev remains. Building zbar with --disable-video works, but the package does no longer support my webcam.

Maybe anyone has an additional idea.

Markus
 
Old 07-19-2012, 02:19 PM   #6
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,385

Rep: Reputation: 181Reputation: 181
The videodev.h file is in /usr/include/libv4l1-videodev.h

Maybe symlink that file to where its looking?
 
2 members found this post helpful.
Old 07-19-2012, 02:38 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Originally Posted by mlangdn View Post
The videodev.h file is in /usr/include/libv4l1-videodev.h

Maybe symlink that file to where its looking?
Thanks very much to mlangdn , that helped!

I've created a symlink
Code:
/usr/include/linux/videodev.h -> /usr/include/libv4l1-videodev.h
I built the package, it works.

I have to add: the libv4l1-videodev.h file is part of the v4l-utils package! Thanks to camorri for pointing me to this.

Markus

Last edited by markush; 07-19-2012 at 03:05 PM. Reason: forgot the package
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
building brasero after totem-pl-parser fails ChrisAbela Slackware 4 05-08-2012 03:38 PM
Building RPCBIND fails jubitaneja Linux - Newbie 1 01-12-2012 12:43 PM
[SOLVED] Building custom kernel fails Bindestreck Slackware 9 08-02-2011 06:29 PM
Compiling KDE4.0 on Fedora 7 fails on building kdepimlibs-3.92.0 fooks Fedora 0 09-03-2007 09:10 AM
Building DRBD into 2.6.17 Debian Fails technick Linux - Kernel 1 08-09-2006 02:10 PM


All times are GMT -5. The time now is 01:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration