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!


About this entry