I have been using MinGW (Minimalist GNU for Windows) to build my code for Windows platform. It has changed a bit since I last used it to build a cross compiler for my class. So, I want to keep a note on how I build using latest binaries. The project has moved here.
Installing MinGW:
C:\Users\Public\ToolC:\Users\Public\Tool\mingw\bin\mingw-get.execd C:\Users\Public\Tool\mingw\var\lib\mingw-get\data\copy defaults.xml profile.xmlcd C:\Users\Public\Tool\mingw\bin\mingw-get.exe updatemingw-get.exe install gcc g++ gmp mpfr mpc msys msys-wget-binmingw-get.exe install mingw-getmingw-getNote20211207 Current software versions {gcc:9.2.0,binutils:2.32}
Some useful things to do:
C:\Users\Public\Tool\mingwmsys.vbs (*Hint*: double-click) will install (or remove if already installed) a pop-up context menu entry (MinGW Shell) whenever you right-click on a folder in Windows ExplorerC:\Users\Public\Tool\mingw\msys\1.0\etc\profile and comment (place '#' at the beginning of) the last line with cd $HOME commandC:\Users\Public\Tool\GitC:\Users\Public\Tool\mingw\msys\1.0\etc\profile and insert PATH=“/c/users/public/tool/git/bin:$PATH” before the block containing an export PATH line(s)mingw-setup.bat sets up normal command prompt for command-line compilationmingw-term.bat script in any folder - when executed, it will open a command prompt (with MinGW path properly configured) in that foldermingw-clear.bat cleans up settings created by mingw-setup.bat
This is what I recommend to my students when developing cross-platform GUI solution. I now compile from source because I can never completely download the pre-built binaries… problem with my uni's network maybe?
Obviously, MinGW must already be installed.
tar xf <file>)$ ./configure --prefix=/c/Users/Public/Tool/wxwidgets --disable-shared $ make $ make install
work in progress…