Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Aug 20, 2017 4:48 am


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

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 7:01 am

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong

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  
E-mail friendPrint 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

605

Thu Mar 17, 2011 11:26 am

admin View the latest post

There are no new unread posts for this topic. vlc-2.1.5 port fails to compile on FreeBSD 9.2

mandrei99

0

723

Sun Dec 28, 2014 5:32 pm

mandrei99 View the latest post

There are no new unread posts for this topic. ffmpeg error

lcsilva

0

512

Tue Nov 20, 2012 1:00 pm

lcsilva View the latest post

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

debuser

3

1430

Wed Mar 04, 2015 5:56 am

waleed222 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

3

30424

Tue Mar 06, 2012 3:03 pm

admin 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

1214

Mon Feb 22, 2010 7:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

403

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

There are no new unread posts for this topic. ipsec-tools: configure: error: OpenSSL version must be 0.9.8s or higher.

admin

0

756

Tue Jan 06, 2015 4:13 pm

admin 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

2339

Tue Dec 06, 2011 10:32 am

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can 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:  
cronNews 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 - 5 hours [ DST ]



phpBB SEO