LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-11-2004, 03:48 AM   #1
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Rep: Reputation: 15
[SuSE] Mplayer won't compile


I've been trying to install MPlayer 1.0pre5 on SuSE 9.1 but when I try to use the enable gui option the make fails. I found a tutorial for SuSE 9.0 which told me to use this command.
Code:
./configure --enable-gui --with-gtk-config=/opt/gnome/bin/gtk-config --with-glib-config=/opt/gnome/bin/glib-config
Make does get further in the compiling process but still fails:
Code:
wm/wsxdnd.c:170: warning: dereferencing type-punned pointer will break strict-aliasing rules
cc -c -I../libvo -I../../libvo -I/usr/X11/include -O4 -march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -fexpensive-optimizations -fschedule-insns2 -Wall -I. -I../loader -I./wm -I./skin -I/usr/include/freetype2 -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include  -DDEBUG  -o app.o app.c
cc -c -I../libvo -I../../libvo -I/usr/X11/include -O4 -march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -fexpensive-optimizations -fschedule-insns2 -Wall -I. -I../loader -I./wm -I./skin -I/usr/include/freetype2 -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include  -DDEBUG  -o interface.o interface.c
interface.c: In function `guiInit':
interface.c:203: error: `MSGTR_SKIN_SKINCFG_SkinNotFound' undeclared (first use in this function)
interface.c:203: error: (Each undeclared identifier is reported only once
interface.c:203: error: for each function it appears in.)
interface.c:204: error: `MSGTR_SKIN_SKINCFG_SkinCfgReadError' undeclared (first use in this function)
interface.c:209: error: `MSGTR_NEMDB' undeclared (first use in this function)
interface.c:240: warning: implicit declaration of function `vo_setwindow'
interface.c: In function `guiGetEvent':
interface.c:597: warning: implicit declaration of function `vcd_seek_to_track'
interface.c:753: error: `MSGTR_IDFGCVD' undeclared (first use in this function)
interface.c:833: warning: dereferencing type-punned pointer will break strict-aliasing rules
interface.c: In function `gtkSet':
interface.c:1028: warning: dereferencing type-punned pointer will break strict-aliasing rules
interface.c:1039: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [interface.o] Error 1
make[1]: Leaving directory `/home/rudo/download/mplayer/MPlayer-1.0pre5/Gui'
make: *** [Gui/libgui.a] Error 2
As far as I know I installed just about every gtk related program in YaST. Can anyone help me with this?
 
Old 08-11-2004, 05:49 AM   #2
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,055

Rep: Reputation: 57
Can't you get mplayer with YaST??
 
Old 08-11-2004, 06:55 AM   #3
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Original Poster
Rep: Reputation: 15
nope
 
Old 08-11-2004, 09:41 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Could you post the output of ./configure instead? When I installed mplayer in SuSE 9.1 Pro, all I did was ./configure --prefix=/usr/local --enable-gui, I did not need to specify any path to the gtk libraries either...
 
Old 08-11-2004, 09:56 AM   #5
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Original Poster
Rep: Reputation: 15
Here's the entire ./configure --enable-gui, with no extra options:
Code:
rudo@noname:~/download/mplayer/MPlayer-1.0pre5> ./configure --enable-gui
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 3.3.3, ok
Checking for CPU vendor ... AuthenticAMD (6:8:1)
Checking for CPU type ...  AMD Athlon(TM) XP 2400+
Checking for GCC & CPU optimization abilities ... athlon-4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowex ... yes
Checking for kernel support of sse ... yes
Checking for mtrr support ... yes
Checking for assembler (/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/as 2.15.90.0.1.1) ... ok
Checking for Linux kernel version ... 2.6.5-7.104-default, ok
Checking for mplayer binary name ... mplayer
Checking for awk ... gawk
Checking for extra headers ... none
Checking for extra libs ... none
Checking for i18n ... yes
Checking for setlocale() ... yes
Checking for iconv ... 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 kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lnsl)
Checking for inet_pton() ... yes (using -lnsl)
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for stddef.h ... yes
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 sys/soundcard.h ... yes
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 BSDI dvd.h ... no
Checking for HPUX SCSI header ... no
Checking for userspace SCSI headers (Solaris) ... no
Checking for termcap ... no
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for linux devfs ... no
Checking for scandir() ... yes
Checking for strsep() ... yes
Checking for strlcpy() ... no
Checking for strlcat() ... no
Checking for fseeko() ... yes
Checking for localtime_r() ... yes
Checking for vsscanf() ... yes
Checking for posix select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Mac OS X APIs ... no
Checking for Samba support (libsmbclient) ... no
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for tdfxvid ... no
Checking for tga ... yes
Checking for DirectFB headers presence ... yes (using -I/usr/include/directfb)
Checking for DirectFB ... yes (920)
Checking for X11 headers presence ... yes (using /usr/X11/include)
Checking for X11 libs presence ... yes (using /usr/X11R6/lib)
Checking for X11 ... yes
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for DGA ... yes (using DGA 2.0)
Checking for OpenGL ... no
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... yes
Checking for DVB ... no (specify path to DVB/ost/include with --with-dvbincdir=DIR)
Checking for DVB HEAD ... yes
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... yes
Checking for SDL ... no
Checking for Windows waveout ... no
Checking for Directx ... no
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for libmp1e ... no
Checking for libfame ... no
Checking for OSS Audio ... yes
Checking for aRts ... no
Checking for EsounD ... no
Checking for JACK ... no
Checking for ALSA audio ... no
Checking for Sun audio ... no
Checking for Sun mediaLib ... no
Checking for SGI audio ... no
Checking for VCD support ... ok
Checking for DVD support (libmpdvdkit) ... yes
Checking for DVD support (libdvdread) ... disabled by libmpdvdkit2
Checking for cdparanoia ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... no
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for external liblzo support ... no
Checking for mad support ... no
Checking for OggVorbis support ... no
Checking for OggTheora support (only the CVS version!) ... no
Checking for mp3lib support ... yes
Checking for liba52 support ... yes
Checking for libmpeg2 support ... yes
Checking for Matroska support (external 0.6.0 or later OR internal) ... yes, internal
Checking for internal FAAD2 (AAC) support ... yes
Checking for external FAAD2 (AAC) support ... no
Checking for FAAD2 version ... 2.0
Checking for MacOS X SHLB (shared lib) support ... no
Checking for Win32 codec DLL support ... yes (using /usr/local/lib/codecs)
Checking for Win32 loader support ... yes
Checking for DirectShow ... yes
Checking for XAnim DLL ... yes (using /usr/local/lib/codecs)
Checking for RealPlayer DLL ... yes (using /usr/local/lib/codecs)
Checking for LIVE.COM Streaming Media libraries ... no
Checking for FFmpeg libavcodec (static) ... yes
Checking for FFmpeg libavformatc (static) ... no
Checking for libdv-0.9.5+ ... yes
Checking for zr ... no
Checking for bl ... no
Checking for XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... yes
Checking for DivX4linux encore (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 EDL support ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for byte order ... Little Endian
Checking for shared postprocess lib ... no
Checking for OSD menu ... no
Checking for QTX codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK version ... 1.2.10 (using gtk-config)
Checking for glib version ... 1.2.10 (using glib-config)
Creating Gui/config.mak
Checking for ftello() ... yes
Checking for VIDIX ... yes
Checking for joystick ... no
Checking for lirc ... yes
Checking for lircc ... no
Creating config.mak
Creating config.h
./configure: line 6254: config.h: Permission denied
Creating libvo/config.mak
Creating libao2/config.mak
Creating help_mp.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: athlon-4 mmx mmx2 3dnow 3dnowex sse mtrr

  Languages:
    Messages/GUI: en
    Manual pages: en (no localization selected, use --language=all)

  Enabled optional drivers:
    Input: ftp network tv-v4l2 tv-v4l edl tv matroska(internal) cdda mpdvdkit2 vcd dvb
    Codecs: qtx libdv libavcodec real xanim dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib gif
    Audio output: oss mpegpes(dvb)
    Video output: xvidix cvidix vesa gif89a jpeg png mpegpes(dvb) fbdev dga xv x11 xover dfbmga directfb tga
  Disabled optional drivers:
    Input: tv-bsdbt848 live.com dvdread smb
    Codecs: opendivx xvid libtheora libvorbis libmad liblzo
    Audio output: sgi sun alsa jack esd arts dxr2 nas win32 sdl macosx
    Video output: winvidix bl zr zr2 dxr3 dxr2 directx sdl svga caca aa ggi xmga mga opengl xvmc tdfx_vid tdfxfb 3dfx quartz

'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/devices.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
no errors except for the config.h permission denied part
I tried to compile this one as well, didnt work, same error

edit:
because of the permission denied part I tried configuring as root:
this produces the following error:
Code:
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).

Check "configure.log" if you do not understand why it failed.
I have the gtk-devel package installed, even tried reinstalling it and downloading a rpm instead of the one provided by YaST.

Last edited by Harkov; 08-11-2004 at 10:00 AM.
 
Old 08-11-2004, 10:08 AM   #6
Harkov
Member
 
Registered: May 2004
Distribution: Ubuntu 10.04.1 LTS
Posts: 38

Original Poster
Rep: Reputation: 15
Problem solved:
for future reference:

compile as root with ./configure --enable-gui --with-gtk-config=/opt/gnome/bin/gtk-config --with-glib-config=/opt/gnome/bin/glib-config and then just make and make install.

thanks for your help

edit:
or better yet, just make sure your user account can access config.h /me =

Last edited by Harkov; 08-11-2004 at 10:35 AM.
 
Old 08-11-2004, 01:16 PM   #7
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Rep: Reputation: 31
Also, for future reference, you can use YAST to install MPlayer. You do this by adding the http://packman.links2linux.org/ site to your YAST sources. Here is how it is done.

To add it as a YAST source.

Open Control Center
Open YAST modules
Open software
Change source of installation
ADD "HTTP"
As server name add "packman.iu-bremen.de"
As directory add "suse/9.1"

done, move that entry to the top and next time you go to "install and remove software" the new/updated packages are visible in blue.

This works great. Then all you have to type is gmplayer and you can watch your DVD's.

Dave
 
Old 08-15-2004, 06:19 PM   #8
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Dave-

Anymore good servers to add to YaST? Thanks for the great tip, I was ready to poke my eyes out...
 
Old 08-15-2004, 08:52 PM   #9
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Rep: Reputation: 31
mikedeatworld, that is the only one that I know of at the moment. It does work great though. If I do find anymore I will be sure to post them though.

Dave
 
Old 08-16-2004, 07:38 AM   #10
demoncheese
LQ Newbie
 
Registered: Aug 2003
Location: South East England
Distribution: Suse 9.1, Mandrake 9.2 & 10, Fedora Core 2 & IPCop 1.3
Posts: 11

Rep: Reputation: 0
There are links to the SUSE rpm (and Mandrake, Debian and Mac OS X packages) via the related projects page on the MPlayer site.

The actual SUSE link points to the location mentioned above but just in case someone wanted to know.
 
Old 09-09-2004, 08:43 PM   #11
{-_-}
LQ Newbie
 
Registered: Jul 2004
Location: Houston, Tx
Distribution: SUSE 9.0 Professional
Posts: 17

Rep: Reputation: 0
Compile errors

After about 28 different ./configure tries, I gave up on compiling mplayer on this box. The rpm's from packman work just fine, however I'm not able to output to libcaca via the -vo switch; here's and example of the commands I'm running

mplayer -vo caca blah.avi
mplayer -vo libcaca blah.avi
mplayer -vo sdl:caca blah.avi
mplayer -vo sdl:libcaca blah.avi

I'm very tempted to go back to the told source (0.93) and use the patch from there to get some libcaca luv going on around here. Has anyone else here with suse 9.0 been able to successfully compile Mplayer OR find an rpm with support for libcaca as well ?


Thanks
 
Old 09-11-2004, 11:57 AM   #12
jtm_tango
LQ Newbie
 
Registered: Aug 2004
Location: Germany - Berlin
Distribution: Kubuntu 12.04
Posts: 23

Rep: Reputation: 15
copiling mplayer

[QUOTE]Originally posted by Harkov
[B]Problem solved:
for future reference:

compile as root with ./configure --enable-gui --with-gtk-config=/opt/gnome/bin/gtk-config --with-glib-config=/opt/gnome/bin/glib-config and then just make and make install.

t==============

Hi! I'm having the same problem... with your advice i could configure it, but i still can't compile!

Here is the last part of my output... can anybody help me? Thanks!!!

===================
include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11/include
-o mp_msg.o mp_msg.c
In file included from mp_msg.c:19:
Gui/mplayer/widgets.h:7:28: gdk/gdkkeysyms.h: No such file or directory
Gui/mplayer/widgets.h:8:21: gtk/gtk.h: No such file or directory
In file included from mp_msg.c:19:
Gui/mplayer/widgets.h:23: error: parse error before '*' token
Gui/mplayer/widgets.h:23: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:24: error: parse error before '*' token
Gui/mplayer/widgets.h:24: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:25: error: parse error before '*' token
Gui/mplayer/widgets.h:25: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:27: error: parse error before '*' token
Gui/mplayer/widgets.h:27: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:28: error: parse error before '*' token
Gui/mplayer/widgets.h:28: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:30: error: parse error before '*' token
Gui/mplayer/widgets.h:30: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:31: error: parse error before '*' token
Gui/mplayer/widgets.h:31: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:39: error: parse error before '*' token
Gui/mplayer/widgets.h:39: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:40: error: parse error before '*' token
Gui/mplayer/widgets.h:40: warning: data definition has no type or storage class
Gui/mplayer/widgets.h:47: error: parse error before '*' token
Gui/mplayer/widgets.h:49: error: parse error before '*' token
Gui/mplayer/widgets.h:50: error: parse error before '*' token
Gui/mplayer/widgets.h:51: error: parse error before '*' token
Gui/mplayer/widgets.h:52: error: parse error before '*' token
Gui/mplayer/widgets.h:57: error: parse error before "gchar"
Gui/mplayer/widgets.h:58: error: parse error before '*' token
Gui/mplayer/widgets.h:59: error: parse error before '*' token
make: *** [mp_msg.o] Error 1

========================================

Javier.
 
Old 09-17-2004, 07:40 PM   #13
revmyo
LQ Newbie
 
Registered: Jan 2003
Distribution: SuSE 8.0 Pro
Posts: 17

Rep: Reputation: 0
Thumbs up

Quote:
Originally posted by ddpicard
Also, for future reference, you can use YAST to install MPlayer. You do this by adding the http://packman.links2linux.org/ site to your YAST sources. Here is how it is done.

To add it as a YAST source.

Open Control Center
Open YAST modules
Open software
Change source of installation
ADD "HTTP"
As server name add "packman.iu-bremen.de"
As directory add "suse/9.1"

done, move that entry to the top and next time you go to "install and remove software" the new/updated packages are visible in blue.

This works great. Then all you have to type is gmplayer and you can watch your DVD's.

Dave
Thanks so much for the above tip! You guys are cookin'!

Blessings,
Denis
 
Old 09-20-2004, 04:38 AM   #14
jtm_tango
LQ Newbie
 
Registered: Aug 2004
Location: Germany - Berlin
Distribution: Kubuntu 12.04
Posts: 23

Rep: Reputation: 15
solved!

Thank you! It worked. Now i get a "Error opening/initializing the selected video_out (-vo) device" message... i'll look for help.

Javier.
 
Old 01-16-2005, 05:23 AM   #15
SuperCoffeeMan
Member
 
Registered: Oct 2004
Location: Portland, Oregon
Distribution: Slackware and Ubuntu
Posts: 47

Rep: Reputation: 15
just poke through the preferances for another video driver, no biggie.
 
  


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 compile problem in SUSE 9.1 perfect_circle SUSE / openSUSE 2 02-19-2005 08:40 AM
Suse 9.2 mplayer compile problem Phyrexicaid SUSE / openSUSE 8 01-20-2005 08:17 PM
how to compile mplayer with GUI on SuSE 9.2? mking007 SUSE / openSUSE 1 11-16-2004 04:22 AM
mplayer compile problem hkl8324 Fedora 7 08-11-2004 02:42 PM
compile mplayer from source shanenin Linux - Software 2 09-21-2003 01:38 PM

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

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration