Compiling a native Diablo client

On my Raspberry Pi 4

* sudo apt install git cmake libsdl2-mixer-dev libsdl2-ttf-dev libsodium-dev
* git clone 
* cd devilutionX/build
* cmake ..
* make -j$(nproc)
* mkdir -p ~/.local/share/diasurgical/devilution/ 

Extracting game data files from GOG download

If you have purchased the game from GOG and don't want to install it on a windows machine just to get the archive, you can use innoextract.

First install the prerequistes

* sudo apt install build-essential libboost-all-dev liblzma-dev
* git clone
* cd innoextract/cmake/
* cmake ..
* make
* sudo make install

Download the OFFLINE installer from GOG and use innoextract on the executable and place it in the data directory:

* innoextract --include DIABDAT.MPQ --lowercase 'setup_diablo_1.09_hellfire_v2_(30038).exe'
* mv diabdat.mpq ~/.local/share/diasurgical/devilution/ 

Run game on RPI4

After the executable has been compiled and the data file in place run:

* export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/
* /home/pi/devilutionx (or wherever you have placed the executable)