Your operating system should be Ubuntu16.04 x64, other OS may be not compatible.
$sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
$sudo apt-get install lib32ncurses5 lib32z1 lib32stdc++6
We saved all the packages on the github, you just need download and install as follow.
$git clone https://github.com/luwanjia/sdl_libraries.git
$cd sdl_libraries
$sudo ./install.sh
And you can also uninstall all the packages by uninstall.sh command.
$sudo ./uninstall.sh
$git clone https://github.com/luwanjia/sdl_implementation_reference.git
$cd sdl_implementation_reference
$mkdir build
$cd build
$cmake -DCMAKE_BUILD_TYPE="Release" ..
$make
$make install
After those operations, the binary package will be created, copy the bin folder to your embedded linux system, and run.