LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-21-2004, 04:23 AM   #1
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Rep: Reputation: 30
Angry Suse 9.2 mplayer compile problem


As you can tell from the subject I'm having a frustrating time compiling mplayer. I upgraded from 9.1 to 9.2 and then decided to do a clean install after running into some problems. Now I have to reinstall all my software.

I started with the Nvidia drivers, not too many problems. Then moved onto mplayer.

./configure worked fine, so moved onto make. It did its thing for a long time and then spat out this error:

In file included from /usr/include/linux/list.h:7,
from ../osdep/kerneltwosix.h:5,
from vo_fbdev.c:21:
/usr/include/linux/prefetch.h: In function `prefetch_range':
/usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
/usr/include/linux/prefetch.h:64: error: for each function it appears in.)
make[1]: *** [vo_fbdev.o] Error 1
make[1]: Leaving directory `/home/bekkerd/MPlayer-1.0pre5/libvo'
make: *** [libvo/libvo.a] Error 2

I never had this problem on 9.1, what's happened? All dependencies are installed. My config.mak file looks as follows:

# -------- Generated by configure -----------

LANG = C
LANGUAGES = en
TARGET_OS = Linux
DESTDIR =
prefix = $(DESTDIR)/usr/local
BINDIR = $(DESTDIR)/usr/local/bin
DATADIR = $(DESTDIR)/usr/local/share/mplayer
MANDIR = $(DESTDIR)/usr/local/man
CONFDIR = $(DESTDIR)/usr/local/etc/mplayer
LIBDIR = $(DESTDIR)/usr/local/lib
#AR = ar
CC = cc
AWK = gawk
RANLIB = true
INSTALL = install
# OPTFLAGS = -O4 -march=pentium3 -mcpu=pentium3 -pipe -fomit-frame-pointer -ffast-math
EXTRA_INC =
OPTFLAGS = -I../libvo -I../../libvo -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(EXTRA_INC)
STRIPBINARIES = yes

PRG = mplayer
PRG_MENCODER = mencoder



MPLAYER_NETWORK = yes
STREAMING_LIVE_DOT_COM = no
MPLAYER_NETWORK_LIB = -lnsl
DVBIN = yes
VIDIX = yes
SHARED_PP = no
CONFIG_PP = yes
CONFIG_RISKY = yes
CONFIG_MP3LAME = no
LIBMENU = no
I18NLIBS =
MATROSKA_INTERNAL = yes
MATROSKA_EXTERNAL = no
MATROSKA_LIB =

OPENDIVX = no

UNRARLIB = yes
HAVE_FFPOSTPROCESS = yes
PNG = no
JPEG = no
GIF = no

EXTRA_LIB =
Z_LIB =
HAVE_MLIB = no
WIN32_LIB =
STATIC_LIB =
ENCA_LIB =
HAVE_PTHREADS = yes

X11_INC =
X11DIR =

HAVE_XVMC_ACCEL = no

# for libavcodec:
SRC_PATH=..
LIBPREF=lib
LIBSUF=.a
SLIBPREF=lib
SLIBSUF=.so

# video output
X_LIB = -lnsl
GGI_LIB =
MLIB_LIB =
MLIB_INC =
DXR2_INC =
DVB_INC =
PNG_LIB =
JPEG_LIB =
GIF_LIB =
SDL_LIB =
SVGA_LIB =
AA_LIB =
CACA_INC =
CACA_LIB =

# audio output
ALSA_LIB =
NAS_LIB =
ARTS_LIB =
ARTS_INC =
ESD_LIB =
ESD_INC =
JACK_LIB =
JACK_INC =
SGIAUDIO_LIB =

# input/demuxer/codecs
TERMCAP_LIB =
LIRC_LIB = -llirc_client
LIRCC_LIB =
DVDREAD_LIB = -Llibmpdvdkit2 -lmpdvdkit
DVDKIT = no
DVDKIT2 = yes
DVDKIT_SHARED = no
SDL_INC =
W32_DEP = loader/libloader.a
W32_LIB = loader/libloader.a
DS_DEP = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
DS_LIB = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
AV_DEP = libavcodec/libavcodec.a
AV_LIB = libavcodec/libavcodec.a
CONFIG_LIBAVFORMAT = no
ZORAN = no
FAME = no
FAME_LIB =
MP1E_DEP =
MP1E_LIB =
ARCH_LIB = -lpthread -ldl -rdynamic
XVID = no
XVID_INC =
XVID_LIB =
DECORE_LIB =
MENCODER = yes
ENCORE_LIB =
DIRECTFB_INC = -I/usr/include/directfb
DIRECTFB_LIB = -ldirectfb
CDPARANOIA_INC =
CDPARANOIA_LIB = -lcdda_interface -lcdda_paranoia
FREETYPE_INC =
FREETYPE_LIB =
FONTCONFIG_INC =
FONTCONFIG_LIB =
FRIBIDI_INC =
FRIBIDI_LIB =
LIBLZO_LIB=
MAD_LIB =
VORBIS_LIB = -ldv
THEORA_LIB =
FAAD_LIB =
INTERNAL_FAAD = yes
SMBSUPPORT_LIB =
XMMS_PLUGINS = no
XMMS_LIB =
MACOSX = no
MACOSX_FRAMEWORKS =

# --- Some stuff for autoconfigure ----
TARGET_ARCH_X86 = yes
TARGET_WIN32 = no
TARGET_CPU=686
TARGET_MMX = yes
TARGET_MMX2 = yes
TARGET_3DNOW = no
TARGET_3DNOWEX = no
TARGET_SSE = yes
TARGET_ALTIVEC =

# --- GUI stuff ---
GTKLIB =
GLIBLIB =
GTK_LIBS =
GUI = no
DEBUG = -DDEBUG
 
Old 12-21-2004, 04:26 AM   #2
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
just get the packman rpms or something
 
Old 12-21-2004, 04:28 AM   #3
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
I'd rather have an optimised mplayer, thanks anyway.
 
Old 12-21-2004, 10:49 AM   #4
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Just posting so that hopefully people will have a look, still no joy with compilation. The rpm suggestion doesn't solve the bigger problem of things not compiling.

I need to be able to compile from source.

DAve
 
Old 12-21-2004, 03:40 PM   #5
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Okay,

I used cvs to get the latest source codes and it now compiles just fine, so for the record:

MPlayer-1.0pre5 works on Suse 9.1 but NOT on Suse 9.2

Hope that saves someone the trouble I went to!

Dave
 
Old 12-21-2004, 06:19 PM   #6
dhaval04
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Hi Guys,

I am new bie as well. I dont know much about compiling stuff and running. I had trouble installing MPlayer on SuSE before. But I found the way by which one can install MPlayer 9.2 very easily.
The steps are listed on link:
http://forums.suselinuxsupport.de/in...opic=7482&st=0
The steps are below:

(1) Open the control center -> YaST modules -> Software -> Change Source of Installation
(2) Click Add
(3) Select http
Put packman.iu-bremen.de in the site field
Put suse/9.2 in the path field.
(4) Close it.
(5) Open "Install and Remove Software" from same place.
(6) Search of "mplayer". You will see "MPlayer" and "mplayerplug-in". Install both. You might need "CD1" (If you install from CD or may be DVD) for that. It will finish smoothly.
(7) Now go to control center -> KDE Components -> File Associations and look for "video" catagory in file extensions. There are bunch of stuff inside video. We have to make "MPlayer" as default program for types in which "MPlayer" appears. So click on any type and see the "Application Preference Order" on right side. If "MPlayer" is there, then make it top most by selecting it and click "Move up".
(8) Close the control center and logout and login. (No need to do logout-login but I play at safe side)
(9) Open firefox or any browser and try to play video files. It should play inside it. At very first I played trailers from Apple which are in quicktime format.
(10) Enjoy.

This thing works on mine very smoothly. Thanks to the guy who did this RPM. Also thanks to that forum on which I found answer. I think it should also work for 9.1 if you put "suse/9.1" in step 3. I havent tried yet.
You might consider removing old files for "MPlayer" if any. ( I mean you try to compile, make and it didnt go well ).

Regards,
Dhaval
 
Old 12-22-2004, 12:26 PM   #7
solop
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Aha! One I can answer!

If you want to complile mplayer from scratch, rather than using someone else's rpms, but you don't want to grab the latest from CVS, you need to make a very small change to the source.

Specifically, there's a hack in there that works around a bug in certain of the 2.5 development kernels. Unfortunately, it causes problems with recent 2.6 kernels, most notably the one shipped with SuSE 9.2. The fix is to go into the file osdep/kerneltwosix.h and delete all but the first line of the file.

Then do your regular ./configure and make.

There's a cleaner fix including in CVS, and I presume that it will find its way into the next release, but this does the trick with the current pre5 builds.

S.
 
Old 01-20-2005, 06:30 PM   #8
acidjuice
Member
 
Registered: Jan 2005
Location: a tiny spot on the iceberg
Distribution: Slackware 10.1 (dropline 2.10, kernel 2.6.11.6)
Posts: 320

Rep: Reputation: 30
just a thought: why not install it directly from YaST using

HTTP
Server: "packman.iu-bremen.de"
Directory: "suse/9.2"

as source?
 
Old 01-20-2005, 08:17 PM   #9
solop
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Quote:
why not install it directly from YaST
Sometimes you want to customize software. In the case of MPlayer, I find that it runs faster and more smoothly on my system if I compile it myself, rather than using Packman's fairly generic configuration.

Other people may want to compile it so that they can include or leave out specific features -- for example, if you're short on memory or space, you might want to leave out some codecs.

And besides, it's a great way to make the transition from newbie to experienced user -- that was how I decided I actually had a clue about what I was doing with Linux: I compiled MPlayer myself and it actually worked! <grin>

S.
 
  


Reply



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] Mplayer won't compile Harkov Linux - Software 14 01-16-2005 05:23 AM
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
mplayer compile problem axlotl Linux - Software 6 03-16-2004 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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