LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2009, 07:55 PM   #1
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Rep: Reputation: 30
MPLAYER source in UBUNTU


Hi.
I have mplayer from ubuntu's repository, but it's not working perfectly. Specially with my VCD discs.

I formated the pc, and it's still the same. So, the problem is with the relationship between the system and the package it offers in its repository.

So, I decided to install mplayer from source, to be sure it would work perfectly.
the problem is, it's failing!
CAn you help me?

Quote:
root@meu-laptop:/usr/local/lib/MPlayer-1.0rc2# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.3.3, ok
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... GenuineIntel (6:15:10)
Checking for CPU type ... Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of ssse3 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... native
Checking for assembler support of -pipe option ... yes
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as ) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.28-11-generic, ok
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for mkstemp ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes
Checking for inet_pton() ... yes (using )
Checking for network ... yes
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for w32threads ... no (using pthread instead)
Checking for rpath ... no
Checking for iconv ... yes
Checking for soundcard.h ... yes (sys/soundcard.h)
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for termcap ... no
Checking for termios ... yes (sys/termios.h)
Checking for shm ... yes
Checking for strsep() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for POSIX select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for sys/sysinfo.h ... yes
Checking for pkg-config ... yes
Checking for Samba support (libsmbclient) ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for tdfxvid ... no
Checking for xvr100 ... no
Checking for tga ... yes
Checking for md5sum support ... yes
Checking for bl ... no
Checking for DirectFB ... no
Checking for X11 headers presence ... yes
Checking for X11 ... yes
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... no
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... no
Checking for XF86keysym ... yes
Checking for DGA ... no
Checking for 3dfx ... no
Checking for OpenGL ... yes
Checking for VIDIX ... yes (internal)
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... yes
Checking for DVB ... no
Checking for DVB HEAD ... yes
Checking for zr ... no
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for PNM support ... yes
Checking for GIF support ... no
Checking for VESA support ... no
Checking for SDL ... no
Checking for NAS ... yes
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out ... yes
Checking for V4L2 MPEG Decoder ... yes
Checking for OSS Audio ... yes
Checking for aRts ... no
Checking for EsounD ... no
Checking for Polyp ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... yes (using alsa 1.0.x and alsa/asoundlib.h)
Checking for Sun audio ... no
Checking for VCD support ... yes
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes
Checking for cdparanoia ... no
Checking for libcdio ... no
Checking for bitmap font support ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for SSA/ASS support ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for liblzo2 support ... no
Checking for mad support ... no
Checking for Twolame ... no
Checking for Toolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no
Checking for OggTheora support ... no
Checking for internal mp3lib support ... yes
Checking for internal liba52 support ... yes
Checking for libdca support ... no
Checking for internal libmpeg2 support ... yes
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC (AAC encoder) support ... no (in libavcodec: )
Checking for FAAD2 (AAC) support ... yes (internal floating-point)
Checking for LADSPA plugin support ... no
Checking for Win32 codecs ... yes (using /usr/local/lib/codecs)
Checking for XAnim codecs ... yes (using /usr/local/lib/codecs)
Checking for RealPlayer codecs ... yes (using /usr/local/lib/codecs)
Checking for QuickTime codecs ... yes
Checking for Nemesi Streaming Media libraries ... no
Checking for LIVE555 Streaming Media libraries ... no
Checking for FFmpeg libavutil ... yes (static)
Checking for FFmpeg libavcodec ... yes (static)
Checking for FFmpeg libavformat ... yes (static)
Checking for FFmpeg libpostproc ... yes (static)
Checking for libamr narrowband ... no
Checking for libamr wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for XviD ... no
Checking for x264 ... no (in libavcodec: no)
Checking for libnut ... no
Checking for libmp3lame (for mencoder) ... no
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UniquE RAR File Library ... yes
Checking for TV interface ... yes
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for TV teletext interface ... yes
Checking for Radio interface ... no
Checking for Capture for Radio interface ... no
Checking for Video 4 Linux 2 Radio interface ... no
Checking for Video 4 Linux Radio interface ... no
Checking for Video 4 Linux 2 MPEG PVR interface ... yes
Checking for audio select() ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for OSD menu ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... no
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... yes
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Checking for color console output ... no
Checking for DVD support (libdvdnav) ... no
Creating config.mak
Creating config.h

Config files successfully generated by ./configure !

Install prefix: /usr/local
Data directory: /usr/local/share/mplayer
Config direct.: /usr/local/etc/mplayer

Byte order: little-endian
Optimizing for: native

Languages:
Messages/GUI: en
Manual pages: en

Enabled optional drivers:
Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network
Codecs: libavcodec qtx real xanim win32 faad2 libmpeg2 liba52 mp3lib tremor(internal)
Audio output: alsa oss v4l2 ivtv nas mpegpes(dvb)
Video output: v4l2 ivtv pnm jpeg png mpegpes(dvb) fbdev xvidix cvidix opengl x11 xover md5sum tga
Audio filters:
Disabled optional drivers:
Input: dvdnav vstream radio live555 nemesi cddb cdda smb
Codecs: x264 xvid libdv libamr_wb libamr_nb faac musepack libdca libtheora speex toolame twolame libmad liblzo gif
Audio output: sun openal jack polyp esd arts dxr2 sdl
Video output: dxr3 dxr2 sdl vesa gif89a zr zr2 svga caca aa ggi xmga mga winvidix 3dfx dga xvmc xv dfbmga directfb bl xvr100 tdfx_vid s3fb tdfxfb
Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
Quote:
root@meu-laptop:/usr/local/lib/MPlayer-1.0rc2# make
./version.sh `cc -dumpversion`
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/freetype2 -c -o mplayer.o mplayer.c
mplayer.c: In function 'parse_cfgfiles':
mplayer.c:815: warning: ignoring return value of 'write', declared with attribute warn_unused_result
mplayer.c: In function 'main':
mplayer.c:2503: warning: format not a string literal and no format arguments
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/freetype2 -c -o vobsub.o vobsub.c
make -C libvo libvo.a
make[1]: Entering directory `/usr/local/lib/MPlayer-1.0rc2/libvo'
cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/freetype2 -c -o vo_ivtv.o vo_ivtv.c
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 `/usr/local/lib/MPlayer-1.0rc2/libvo'
make: ** [libvo/libvo.a] Erro 2

Last edited by doraimom; 05-17-2009 at 02:08 AM.
 
Old 05-17-2009, 01:56 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You are compiling from source as root I see. The first 2 steps should be done as the user, or your user account won't be able to run the program. You will also only be able to run the non-gui of mplayer from the above.
Code:
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
http://ubuntuforums.org/showthread.php?t=558538&page=14 suggests using
Code:
./configure --disable-ivtv
http://ubuntuforums.org/showpost.php...&postcount=138 has other suggestions for places to look for more information.

Question: Why aren't you getting mplayer from your repositories via Synaptic?
 
Old 05-17-2009, 02:07 AM   #3
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
Quote:
You are compiling from source as root I see. The first 2 steps should be done as the user
I have always installed softwares as root, speacially because most of them won't install correctly as user due to the lack of privilegies to write in /usr/local for exemple. But I think you are write, because these writtings will only happen after "make install", right?
Thanks for the tip. The only strange thing is that, I have always installed softwares like this, and I never had any problem using them as user later.

Anyway, you say I should: CONFIGURE and MAKE as user, and MAKE INSTALL as root, right? Should I do that only to be able to use mplayer as user, or because it should solve the ERRORS I got?

Quote:
Question: Why aren't you getting mplayer from your repositories via Synaptic?
I think the very first line of my first post, after "HI", answers that:

Quote:
Hi.
I have mplayer from ubuntu's repository, but it's not working perfectly. Specially with my VCD discs.

I formated the pc, and it's still the same. So, the problem is with the relationship between the system and the package it offers in its repository.
I'll try ./configure --disable-ivtv and see if that will solve the errors. Right now I'm under Windows OS.

Thanks

Last edited by doraimom; 05-17-2009 at 02:08 AM.
 
Old 05-17-2009, 04:01 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I missed the bit about not playing the VCDs - are you getting an error or is it a playback problem?

Yes, ./configure & make should be as the user and then do sudo make install. The compilation as you have it will not have a gui, by the way.
 
Old 05-17-2009, 08:48 AM   #5
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
Quote:
I missed the bit about not playing the VCDs - are you getting an error or is it a playback problem?
http://www.linuxquestions.org/questi...player-726419/

If you search for this error you will find a few pages mentioning it, in many forums, but no solution. So I gave up. Anyway, installatation from source should work anywhere if you have all deps. :@

./configure --disable-ivtv
is giving me a make with no end! Just looping I think. overflow.

Last edited by doraimom; 05-17-2009 at 08:51 AM.
 
Old 05-24-2009, 03:18 AM   #6
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Hi doraimom,

If you are compiling MPlayer from source I would suggest a newer version than the 2007 release. Have a look at:

HowTo: Install the very latest MPlayer under Jaunty Jackalope
http://ubuntuforums.org/showthread.php?t=1081070

and this might be the answer for you. BTW it is more conventional in Ubuntu to use sudo for 'make install' but './configure' and 'make' as an ordinary user. (oops I see that has already been mentioned!)

Andrew

Last edited by andrew.46; 05-24-2009 at 03:19 AM.
 
  


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
Mplayer install from source ganesha Slackware 22 10-01-2008 12:19 PM
I came this far with Installing MPlayer from source ur-unholyness Linux - Newbie 2 10-22-2004 10:40 AM
Installing Mplayer from source--???? ur-unholyness Linux - Newbie 3 10-22-2004 10:09 AM
compile mplayer from source shanenin Linux - Software 2 09-21-2003 01:38 PM
MPlayer source Tinkster Linux - Software 6 08-19-2002 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration