Notes on compiling MPlayer on Ubuntu 20 Linux ---------------------------------------------- Download sources: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.4.tar.xz Unzip and rename master directory as mplayer. Download codecs: http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 Unzip and put in codecs directory parallel to mplayer directory. Install the following packages: sudo apt install gcc sudo apt install yasm sudo apt install zlib1g-dev sudo apt install libx11-dev sudo apt install libxext-dev sudo apt install libgtk2.0-dev Now run configure and make: ./configure --codecsdir="../codecs" --enable-gui make Notes on compiling MPlayer on Fedora 34 Linux --------------------------------------------- Download sources: http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.4.tar.xz Unzip and rename master directory as mplayer. Download codecs: http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 Unzip and put in codecs directory parallel to mplayer directory. Install zlib-devel and gtk2-devel: sudo dnf install zlib-devel sudo dnf install gtk2-devel Now run configure and make in mplayer directory with codecs in ../codecs: ./configure --codecsdir="../codecs" --enable-gui make Notes on compiling MPlayer on Scientific Linux 32-bit and 64-bit (Fedora) ------------------------------------------------------------------------ Upgrading to GCC 4.8 on Linux: wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo sudo yum install devtoolset-2 scl enable devtoolset-2 bash gcc --version The line: scl enable devtoolset-2 bash Applies the new compiler to this bash shell, but the new compiler has not replaced the existing /usr/bin/gcc. When compiling MPlayer on Linux with GCC 4.4.7 or 4.8 we must edit: /ffmpeg/ffbuild/common.mak adding the line CPPFLAGS += -Icompat/atomics/gcc So the file looks like this:L CPPFLAGS := $(IFLAGS) $(CPPFLAGS) CPPFLAGS += -Icompat/atomics/gcc As described here: https://trac.mplayerhq.hu/ticket/2312 Install zlib-devl and gtk2-devel: sudo yum install zlib-devel sudo yum install gtk2-devel Configure in the mplayer directory, with codecs downloaded an unpacked in ../codecs, then make: ./configure --codecsdir="../codecs" --enable-gui make produces an mplayer static executable with graphical user interface.