I want to compile the executable for windows on linux, it's a fork of Core of some altcoin, there's no way im installing altcoin stuff without compiling the source code. Which is the distro that will have all the libraries needed to build the binaries?
Will this work in the latest Ubuntu?
sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.
then get the .git and:
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh # not required when building from tarball
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make