Compiling Fox on windows (windows 10 and visual studio 2019 instructions)
Get Visual Studio 2019 from https://visualstudio.microsoft.com/fr/downloads/. Install it with C++ desktop tools, include CLI (command=line interface), C++ clang
Download objcryst from git (https://github.com/vincefn/objcryst), rename the root 'objcryst' directory to 'Fox'
Download cctbx.tar.bz2 and newmat.tar.bz2 (from https://github.com/vincefn/objcryst/releases/tag/v2021-3rdPartyLibs) in the Fox directory and uncompress them (e.g. with 7-zip)
- Delete the Fox/cctbx/include/boost directory
Download boost 1.74 (7z format) from https://sourceforge.net/projects/boost/files/boost/1.74.0/. Unzip in Fox and rename the directory to 'boost'
Open the visual studio command prompt. In the Fox/boost directory, run 'bootstrap' and then 'b2 --build_dir=..\boost_build toolset=msvc release threading=multi --build_type=complete'.
Next download the wxwidgets 3.1.4 installer and run it with default installation, select the installation directory as Fox/wxWidgets
Open the visual studio command prompt. In Fox\wxWidgets\build\msw, run 'nmake /f makefile.vc BUILD=release RUNTIME_LIBS=static' as per https://github.com/wxWidgets/wxWidgets/blob/v3.1.2/docs/msw/install.md
Download fftw-3.3.5-dll32.zip from http://www.fftw.org/install/windows.html, uncompress it as Fox/fftw
In a visual studio command prompt, in the Fox/fftw directory, execute 'lib /def:libfftw3f-3.def'
Open Fox_vc12.sln from Fox/Fox/, and then you can build Fox in debug or release version
Compiling Fox on windows (old instructions)
To compile Fox on windows, first you need to compile wxWidgets (ex-wxWindows), which is the most complex step. Then you compile Fox.
Note: although wxWidgets is a great project, they have had this nasty habit to change the organization of the compiled libraries naming, setup.h use, etc... So the instructions below will be correct for the given wxWidgets version (2.8.7), but probably not for others.
Note2: as a text/programming editor under windows, I recommand the free Crimson Editor.
To compile Fox on windows, you will need to download and install the Visual C++ 2005 or 2008 (Express Edition), which can be downloaded for free. You will also need to install the "Win32 Platform SDK", which must be downloaded separately.
Download the installer from the wxWidgets website. It is better to get the installer (.exe) as it will setup the WXWIN variable environment for you). In the following, it is asssumed that you installed wxWidgets in C:\Dev\wxWidgets.
Answer Yes to all when asked to convert the projects.
Select the Release configuration.
For each sub-project of wxWidgets (adv, base, ..., xrc), right-click on the project name and edit its Properties, go to the Configuration Properties -> C/C++ - Code Generation and select Multi-Threaded (/MT) for the Runtime Library.
Edit C:\Dev\wxWidgets\include\wx\msw\setup.h, and set #define wxUSE_GLCANVAS 1 (line 854 for wxWidgets 2.6.3).
Now Build Solution from the Build menu. This will build all wxWidgets libraries, and will take 5-20 mn. The final message should say: Build: 18 succeeded, 0 failed, 0 up-to-date, 0 skipped.
Download the Fox source code and uncompress it as the C:\Dev\Fox directory
Open the C:\Dev\Fox\Fox.sln project file.
- Then build the Fox solution.