Compiling MPlayer on Ubuntu Hoary

After discovering the Ubuntu MPlayer package is broken for non-P4 systems, I decided to compile from source. I followed MacEwan’s instructions, but I was getting a strange compile error…

 /usr/lib/libGL.a(glxcmds.o)(.text+0x2eea): In function
 `glXGetMscRateOML':
 : undefined reference to `XF86VidModeQueryVersion'
 /usr/lib/libGL.a(glxcmds.o)(.text+0x2f1a): In function
 `glXGetMscRateOML':
 : undefined reference to `XF86VidModeGetModeLine'
 collect2: ld returned 1 exit status
 make: *** [mplayer] Error 1

Turns out there’s a package missing:

 $ sudo apt-get install libxxf86vm-dev

And everything compiles cleanly now!

8 Responses to “Compiling MPlayer on Ubuntu Hoary”

Thanks alot! I just got over the same error, and did not know which package I was missing. I owe you one. ;)

billybofh says:

Thanks for this – I was just recompiling and hit this error. Small world etc etc :-)

empire says:

If you are still having problems make’ing after installing libxxf86vm-dev, do a ./configure again. That fixed it for me.

are you people morons says:

post your fin command lines if you’re going to talk about compiling files or shut the F up!

Anyi Zhu says:

Me too, and it took me half an hour to figure out why! By the way, do you have any idea why it takes so long to compile Mplayer, that’s even longer than compiling kernels!!!!

faithless says:

I installed libxxf86vm-dev but I’m still getting the same error when I try to compile mplayer.

Cristian says:

same issue,I installed the “tricky” dependency,but Im still getting the same error :(

trustnon says:

yep, thats it working now - after 3 compiles, first time without this, second time without the enable gui switch, just a note, remember to use this.



Mobilized by Mowser Mowser