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-v2023.03.31.tar.gz cd dosbox-x-dosbox-x-v2023.03.31 ./autogen.sh edit configure LIBS="-lncurses $LIBS" -> LIBS="-lncursesw $LIBS" CPPFLAGS="-I/usr/local/include/ncursesw" LIBS="-lncursesw" CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -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 41.46s] sudo make install