Tried on Ubuntu 20/24 for countless hours too many errors, MSYS2 on windows first time run everything built.
use mingw64.exe
first command run two times
pacman -Syu --noconfirm
then
pacman -S --needed --noconfirm git mingw-w64-x86_64-libjpeg-turbo make mingw-w64-x86_64-gcc
git clone https://github.com/trek-view/max2sphere.git
cd max2sphere
make -f Makefile clean
make -f Makefile
you find binaries in C:\msys64\home<username>\max2sphere\max2sphere.exe
Tried on Ubuntu 20/24 for countless hours too many errors, MSYS2 on windows first time run everything built.
use mingw64.exe
first command run two times
pacman -Syu --noconfirmthen
you find binaries in C:\msys64\home<username>\max2sphere\max2sphere.exe