LinuxQuestions.org
Register a domain and help support LQ
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 10-18-2008, 07:47 PM   #1
BULPulse
Member
 
Registered: Nov 2007
Location: UK
Distribution: Slackware 13
Posts: 60

Rep: Reputation: 15
Mplayer compiling error


Hello, I tried to install Mplayer on my Slackware 12.1 and when I configure it is fine but when I type make it gives me this error:

Code:
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:84: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:97: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/spas/Downloads/Programs/MPlayer-1.0rc2/libvo'
make: *** [libvo/libvo.a] Error 2
any advice?

BULPulse
 
Old 10-18-2008, 08:08 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
If I were you I would just use the SlackBuild at slackbuilds.org to build MPlayer. From their SlackBuild:
Code:
# Patch to account for linux-2.6.24.x+ including ivtv, but MPlayer won't
# build against it.  See this link for more information and patch origin:
# http://archives.free.net.ph/message/20080201.201454.1047775e.en.html
patch -p1 < $CWD/patches/ivtv_fix-2.6.24.x.diff
And here's the patch they used:
Code:
Patch to account for linux-2.6.24.x including ivtv, but MPlayer won't
build against it.  See this link for more information and the origin
of the patch:
http://archives.free.net.ph/message/20080201.201454.1047775e.en.html
<rworkman@slackbuilds.org>

diff -Nur MPlayer-1.0rc2.orig/configure MPlayer-1.0rc2/configure
--- MPlayer-1.0rc2.orig/configure	2007-10-07 14:49:33.000000000 -0500
+++ MPlayer-1.0rc2/configure	2008-03-09 23:38:20.998568493 -0500
@@ -4920,7 +4920,7 @@
 echores "$_dxr3"
 
 
-echocheck "IVTV TV-Out"
+echocheck "IVTV TV-Out (pre linux-2.6.24)"
 if test "$_ivtv" = auto ; then
   cat > $TMPC << EOF
 #include <stdlib.h>
@@ -4928,7 +4928,13 @@
 #include <linux/types.h>
 #include <linux/videodev2.h>
 #include <linux/ivtv.h>
-int main(void) { return 0; }
+#include <sys/ioctl.h>
+int main(void) {
+struct ivtv_cfg_stop_decode sd;
+struct ivtv_cfg_start_decode sd1;
+ioctl (0, IVTV_IOC_START_DECODE, &sd1);
+ioctl (0, IVTV_IOC_STOP_DECODE, &sd);
+return 0; }
 EOF
   _ivtv=no
   cc_check && _ivtv=yes
There was also a recent thread about this problem -- I think you may be able to disable ivtv in the ./configure step.
 
Old 10-19-2008, 05:48 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
Yes, you can run it with '--disable-ivtv' or something like that, see './configure --help'.
 
1 members found this post helpful.
Old 10-19-2008, 09:58 AM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
This is from Essential pre-reading for life with LFS talking about building from source:
Quote:
If you want a real challenge, try [15]MPlayer.
MPlayer is known to be difficult to build - I would definitely go for the Slackbuild option..
 
Old 10-19-2008, 10:01 AM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Compiling mplayer is nothing compared to compile (god forbid) a gnome app like evolution
 
Old 10-19-2008, 10:08 AM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Compiling mplayer is nothing compared to compile (god forbid) a gnome app like evolution
Gnome - whats Gnome ?
 
Old 10-19-2008, 08:53 PM   #7
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
>> BULPulse

Adding "--disable-ivtv" to the configure line should work as long as you have included v4l support in your kernel.

This works well for at least the PVR150

Last edited by mudflap; 10-19-2008 at 08:56 PM.
 
Old 10-20-2008, 01:08 AM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by bgeddy View Post
This is from Essential pre-reading for life with LFS talking about building from source:


MPlayer is known to be difficult to build - I would definitely go for the Slackbuild option..
Sorry, this is untrue/incorrect. Mplayer is quite easy to build once you read docs and ./configure --help, and it's one of the few apps that should be build from source. Things like "Gnu cash" and "inkscape" sometimes give much more problems due to dependency hell.
 
Old 10-20-2008, 01:18 AM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Sorry, this is untrue/incorrect. Mplayer is quite easy to build once you read docs and ./configure --help, and it's one of the few apps that should be build from source.
Well I stand corrected - I read the comments in the LFS tips and took them on face value. I seem to remember someone else saying it was tricky too..
To be honest when I compiled it i ran a Slackbuild so I suppose I can't really comment..

However if there is a Slackbuild freely available I still think it makes sense to use it - I don't say not to build from source but to take advantage of the resources available to help when doing so.
 
  


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
compiling mplayer with nvidia drivers error Daedra Slackware 1 11-29-2006 02:16 PM
mplayer compiling error mariotwsh Fedora 1 05-31-2006 12:17 AM
error compiling mplayer from source jimjamjahaa Linux - Software 1 01-23-2006 03:23 AM
Error compiling mplayer on gentoo aeruzcar Linux - Software 8 08-08-2005 11:05 AM
Mplayer compiling error FreeBSD 4.10 agarfors *BSD 8 09-28-2004 06:30 AM


All times are GMT -5. The time now is 02:31 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