LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Building zbar fails while configuration - no video support (https://www.linuxquestions.org/questions/slackware-14/building-zbar-fails-while-configuration-no-video-support-4175417610/)

markush 07-19-2012 10:09 AM

Building zbar fails while configuration - no video support
 
1 Attachment(s)
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

camorri 07-19-2012 10:23 AM

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.

H_TeXMeX_H 07-19-2012 10:26 AM

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.

markush 07-19-2012 10:31 AM

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

markush 07-19-2012 10:43 AM

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

mlangdn 07-19-2012 01:19 PM

The videodev.h file is in /usr/include/libv4l1-videodev.h

Maybe symlink that file to where its looking?

markush 07-19-2012 01:38 PM

Quote:

Originally Posted by mlangdn (Post 4732928)
The videodev.h file is in /usr/include/libv4l1-videodev.h

Maybe symlink that file to where its looking?

Thanks very much to mlangdn :hattip:, 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


All times are GMT -5. The time now is 10:13 PM.