LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem compiling mplayer (https://www.linuxquestions.org/questions/linux-software-2/problem-compiling-mplayer-227138/)

foustware 09-05-2004 10:31 PM

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.

maroonbaboon 09-05-2004 10:53 PM

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.

jev-bird 09-06-2004 02:04 AM

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.

foustware 09-06-2004 08:35 AM

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.

trickykid 09-06-2004 08:42 AM

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 :confused:

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.

foustware 09-06-2004 09:14 PM

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?

jev-bird 09-06-2004 10:48 PM

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. ;)

trickykid 09-06-2004 11:59 PM

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.


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