Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 10:34 pm


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Bookmark this article:

Author Message
debuser
Post  Post subject: FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong  |  Posted: Fri Aug 27, 2010 2:01 pm

Joined: Thu Aug 06, 2009 9:48 am
Posts: 90

Offline
Save on Delicious
I was trying to compile FFMPEG rev 24953 (27-08-2010) on CentOS 4.8 and following error occured:

Code:
[root@server ffmpeg]# make
CC   libavdevice/alldevices.o
CC   libavdevice/avdevice.o
CC   libavdevice/dv1394.o
CC   libavdevice/oss_audio.o
CC   libavdevice/v4l.o
In file included from libavdevice/v4l.c:34:
/usr/include/linux/videodev.h:56: error: expected specifier-qualifier-list before ‘ulong’
libavdevice/v4l.c: In function ‘grab_read_header’:
libavdevice/v4l.c:136: error: ‘struct video_tuner’ has no member named ‘mode’
libavdevice/v4l.c:138: error: ‘struct video_tuner’ has no member named ‘mode’
libavdevice/v4l.c:140: error: ‘struct video_tuner’ has no member named ‘mode’
make: *** [libavdevice/v4l.o] Error 1


I have found some sites suggesting following solutions:
use --disable-demuxer=v4l --disable-demuxer=v4l2 configure options to ffmpeg
1) upgrade kernel and headers
2) upgrade ffmpeg to SVN revision >= 14852
3) configure ffmpeg disabling the v4l and v4l2 muxers/demuxers.
--disable-demuxer=v4l --disable-demuxer=v4l2 --disable-muxer=v4l --disable-muxer=v4l2

For me, for this SVN revision, none of the above worked.
Instead I found a working workaround:

Open config.h and config.mak files and change the following lines:
Quote:
config.h
#define CONFIG_V4L2_INDEV 1
#define CONFIG_V4L_INDEV 1
to
#define CONFIG_V4L2_INDEV 0
#define CONFIG_V4L_INDEV 0

config.mak
CONFIG_V4L2_INDEV=yes
CONFIG_V4L_INDEV=yes
to
CONFIG_V4L2_INDEV=no
CONFIG_V4L_INDEV=no


Now run make and compile will not fail.


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Can't compile ssldump on FreeBSD 6 - compile fails

admin

0

425

Thu Mar 17, 2011 6:26 pm

admin View the latest post

There are no new unread posts for this topic. Courier compile fails with "/usr/bin/ld: cannot find -lperl"

debuser

2

1175

Thu Aug 13, 2009 5:36 pm

debuser View the latest post

There are no new unread posts for this topic. ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No

debuser

0

7344

Fri Aug 27, 2010 2:10 pm

debuser View the latest post

There are no new unread posts for this topic. /usr/bin/ld: cannot find -lltdl PHP Compiling fails on Centos/Red Hat

mandrei99

0

2053

Mon Feb 22, 2010 2:08 pm

mandrei99 View the latest post

There are no new unread posts for this topic. "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

debuser

1

1507

Tue Dec 06, 2011 5:32 pm

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO