LinuxQuestions.org
Review your favorite Linux distribution.
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 09-05-2004, 10:31 PM   #1
foustware
Member
 
Registered: Dec 2003
Posts: 42

Rep: Reputation: 15
problem compiling mplayer


./configure doesn't give errors but when i make i get this:

In file included from /usr/include/asm/thread_info.h:13,
from /usr/include/linux/thread_info.h:21,
from ../osdep/kerneltwosix.h:4,
from vo_fbdev.c:21:
/usr/include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:68: error: requested alignment is not a constant
make[1]: *** [vo_fbdev.o] Error 1
make[1]: Leaving directory `/home/foust/dwnlds/mplayer/MPlayer-20040904/libvo'
make: *** [libvo/libvo.a] Error 2

those are the last few lines of make before it terminated. i don't know if i'm going to have to edit source code for this or not. if i do i'll need help. anyway, i'm using kernel 2.6.0-15 and gcc version 3.3.1. my distro is turbolinux 10f. this mplayer file i downloaded is the latest cvs snapshot : Mplayer-1.Opre5.tar.bz2. if anyone knows what to do for this problem please let me know. thanks.
 
Old 09-05-2004, 10:53 PM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
This just looks like some sort of version mismatch, in which case editing source code would only make matters worse. Can you upgrade to a more recent kernel? Maybe try 2.6.7? Plenty of people must have compiled the latest Mplayer with that.
 
Old 09-06-2004, 02:04 AM   #3
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
If it's Turbo Linux then make sure your using an official "paid for" version and not the promo. The promo lacks various common libraries and tools for compiling such programs.
 
Old 09-06-2004, 08:35 AM   #4
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
i was thinking there is a version problem with something

Based on the output from make i thought this may be a version issue with something. i can't really tell though, because i'm not really getting a specific kernel error or an internel gcc error or anything. it just looks like buggy code more than anything else. if it's not a bug, then maybe there is a switch i should be using or something. when i used make i did:

make --prefix=/usr/local --enable-gui --enable-largefiles --enable-runtime-cpudetection

i'm not sure what i really needed with the switches, i just tried them based on the make output i posted above.
 
Old 09-06-2004, 08:42 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: i was thinking there is a version problem with something

Quote:
Originally posted by foustware
Based on the output from make i thought this may be a version issue with something. i can't really tell though, because i'm not really getting a specific kernel error or an internel gcc error or anything. it just looks like buggy code more than anything else. if it's not a bug, then maybe there is a switch i should be using or something. when i used make i did:

make --prefix=/usr/local --enable-gui --enable-largefiles --enable-runtime-cpudetection

i'm not sure what i really needed with the switches, i just tried them based on the make output i posted above.
All of this you put in with "make" is suppose to go with ./configure

But I don't know why your passing all of these arguments, I do believe they are already enabled except for the GUI portion... Try this when compiling mplayer:

./configure --enable-gui

You'll notice its also two dashes in front when throwing options at it. For a full list of configuration options just do a ./configure --help

After it configures do:

make
su or sudo make install

Blam, your done. mplayer is one of the easiest media players to install, usually you don't have to do much else. The only downside is when you want more codecs and such, you have to install them and then reconfigure mplayer again so it detects them.
 
Old 09-06-2004, 09:14 PM   #6
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
thanks, but

thanks a lot for all your input but i tried everything. i always got the same result. now get this, i downloaded the previous version of mplayer and it installed fine! now i know something was up with that code whether it was a bug or my system because the previous version installed fine. now i have to figure out what is going on when i try to run mplayer or gmplayer. if i run mplayer from the commandline i get this:

MPlayer 0.93-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/foust/.mplayer/config
[cfg] read config file: /home/foust/.mplayer/gui.conf
Reading config file /home/foust/.mplayer/gui.conf: No such file or directory
mplayer: relocation error: mplayer: undefined symbol: XF86VidModeGetModeLine

if i run gmplayer i get the same thing. don't get me wrong the obvious problem is i'm missing config files and there is a problem with XF86VidModeGetModeLine. but does anyone no how to fix that? do i need to do ./configure again with a different switch? and how do i get the config files created?
 
Old 09-06-2004, 10:48 PM   #7
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
Re: thanks, but

Quote:
Originally posted by foustware
thanks a lot for all your input but i tried everything. i always got the same result. now get this, i downloaded the previous version of mplayer and it installed fine! now i know something was up with that code whether it was a bug or my system because the previous version installed fine. now i have to figure out what is going on when i try to run mplayer or gmplayer. if i run mplayer from the commandline i get this:

MPlayer 0.93-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/foust/.mplayer/config
[cfg] read config file: /home/foust/.mplayer/gui.conf
Reading config file /home/foust/.mplayer/gui.conf: No such file or directory
mplayer: relocation error: mplayer: undefined symbol: XF86VidModeGetModeLine

if i run gmplayer i get the same thing. don't get me wrong the obvious problem is i'm missing config files and there is a problem with XF86VidModeGetModeLine. but does anyone no how to fix that? do i need to do ./configure again with a different switch? and how do i get the config files created?
I really did not look at your errors that extensively until now. The times I have installed any Turbo Linux, especially the promos, the first thing I did was upgrade my version of Xfree86 to current. It's real easy to do even from the command line just wget the Xinstall script and run it. It will check to see what binary version you should get. After that just download all the files you need. The install won't proceed until all the files are in the current directory, but then it will install the latest version then run you can xf86config.

Judging from your first post, it looks like some problem with frame buffer or something else explicitly related to X. Upgrading might help unless your already at the latest version. The Install how-to on their site is pretty self explanotory.
 
Old 09-06-2004, 11:59 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I find it best to copy the config files out of the source directory you installed from into your proper directories on your system, where its looking for these files. They will be in the etc directory:

Example:

cd ~/MPlayer-0.93/etc
cp * ~/.mplayer/
mv ~/.mplayer/example.conf ~/.mplayer/config

Then edit the ~/.mplayer/config file to your system specifics, etc.
 
  


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
Problem with compiling mplayer pablovschby Linux - Software 1 11-03-2004 09:21 PM
Mplayer compiling problem (because of divx4?) Villain Linux - Software 5 01-22-2004 10:18 AM
MPlayer compiling Problem fettouhi Linux - Software 4 07-12-2003 09:08 AM
problem compiling mplayer after adding win32 codec chiyoaiki Linux - Software 1 06-25-2003 01:46 PM
Help with compiling MPlayer cirkut5732 Linux - Newbie 1 04-13-2003 04:02 AM

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

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