Differences between revisions 6 and 7
Revision 6 as of 2008-03-08 23:02:47
Size: 2345
Editor: localhost
Comment: converted to 1.6 markup
Revision 7 as of 2009-03-28 15:54:10
Size: 2371
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
'''''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.6.1), but probably not for others. '''''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.
Line 10: Line 10:
 To compile Fox on windows, you will need to download and install the [[http://msdn.microsoft.com/vstudio/express/visualc/|Visual C++ 2005 (Express Edition)]], which can be downloaded for free.  To compile Fox on windows, you will need to download and install the [[http://msdn.microsoft.com/vstudio/express/visualc/|Visual C++ 2005 or 2008 (Express Edition)]], which can be downloaded for free.
Line 17: Line 17:
 * 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++``` and select '''''```Multi-Threaded (/MT)```''''' for the ```Runtime Library```.
 * 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```.

Compiling Fox on windows

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.

Requirements

  • 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.

Compiling wxWidgets

  • 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.

  • Open C:\Dev\wxWidgets\build\msw\wx.dsw

  • 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.

Compiling Fox

  • 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.

None: Compile/Windows (last edited 2009-03-28 15:54:10 by VincentFavreNicolin)