Mingw-w64 compiler and headers (at least version 8.0)
Versions higher than 8.0 are not available for 20.04 so I had to add an unofficial backport from debian sid to ubuntu to install the required mingw-w64 version.
https://launchpad.net/~noasakurajin/+archive/ubuntu/sid-ubuntu-ports
binutils-mingw-w64-i686/focal,now 2.34-5ubuntu1+8.8 amd64 [installed,automatic]
binutils-mingw-w64-x86-64/focal,now 2.34-5ubuntu1+8.8 amd64 [installed,automatic]
g++-mingw-w64-i686/focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64 [installed,automatic]
g++-mingw-w64-x86-64/focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64 [installed,automatic]
g++-mingw-w64/focal,focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 all [installed,automatic]
gcc-mingw-w64-base/focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64 [installed,automatic]
gcc-mingw-w64-i686/focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64 [installed,automatic]
gcc-mingw-w64-x86-64/focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64 [installed,automatic]
gcc-mingw-w64/focal,focal,now 9.3.0-7ubuntu1+22~exp1ubuntu4 all [installed,automatic]
mingw-w64-common/focal,focal,now 8.0.0-0~202009181618~ubuntu20.04.1 all [installed,automatic]
mingw-w64-i686-dev/focal,focal,now 8.0.0-0~202009181618~ubuntu20.04.1 all [installed,automatic]
mingw-w64-x86-64-dev/focal,focal,now 8.0.0-0~202009181618~ubuntu20.04.1 all [installed,automatic]
mingw-w64/focal,focal,now 8.0.0-0~202009181618~ubuntu20.04.1 all [installed
dxgi.dllx1 2022-01
I'm getting build errors on ubuntu 20.04 even after following the troubleshooting section.
Console output