tce-load -i compiletc automake libtool-dev intltool bash SDL2-dev libxkbfile-dev alsa-dev libGL-dev nasm freetype-dev libXrandr-dev wget https://github.com/joncampbell123/dosbox-x/archive/refs/tags/dosbox-x-v0.84.3.tar.gz cd dosbox-x-dosbox-x-v0.84.3 ./autogen.sh edit configure LIBS="-lncurses $LIBS" -> LIBS="-lncursesw $LIBS" CPPFLAGS="-I/usr/local/include/ncursesw" LIBS="-lncursesw" CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --enable-sdl2 [-flto, -fno-rtti fail] find . -name Makefile -type f -exec sed -i 's/-g -std=gnu11 -O2/-std=gnu11/g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -std=gnu++14 -O2/-std=gnu++14/g' {} \; make [10m 16.05s] sudo make install