Compilation on Linux and BSD does not have many surprises, as its foundation is Unix-based.
Some other libraries can be built support for as well, please refer to
sudo yum install make automake gcc gcc-c++ kernel-devel mesa-libEGL-devel libv4l-devel libxkbcommon-devel mesa-libgbm-devel Cg libCg zlib-devel freetype-devel libxml2-devel ffmpeg-devel SDL2-devel SDL-devel
This list of packages may not be complete.
git clone git://github.com/libretro/libretro-super.git cd libretro-super ./libretro-fetch.sh
You should at least build one libretro implementation so RetroArch can do stuff. There is a super-project that is designed to easily build every libretro port out there. To build every core:
Omit NOCLEAN=1 if you wish to perform "make clean" on every repo before building
Let's assume you'd like to install RetroArch into a folder called
mkdir -p ~/ra/cores cd retroarch make DESTDIR=~/ra install cd .. #to libretro-super directory ./libretro-install.sh ~/ra/cores
You should now have a fully functional RetroArch build in
~/ra Enjoy! :)