Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2005-07-10 13:42:53
Size: 3991
Comment:
Revision 7 as of 2009-03-28 15:54:10
Size: 2371
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
To compile Fox under windows, first you need to compile [http://wxwidgets.org wxWidgets] (''ex-wxWindows''), which is the most complex step. Then you compile Fox. ## page was renamed from FoxCompileWindows
== Compiling Fox on windows ==
To compile Fox on windows, first you need to compile [[http://wxwidgets.org|wxWidgets]] (''ex-wxWindows''), which is the most complex step. Then you compile Fox.
Line 3: 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 5: Line 7:
'''''Note2''''': as a text/programming editor under windows, I recommand the free [http://www.crimsoneditor.com/ Crimson Editor]. '''''Note2''''': as a text/programming editor under windows, I recommand the free [[http://www.crimsoneditor.com/|Crimson Editor]].
Line 7: Line 9:
= Compiling using M$ Visual C++ Toolkit 2003 (free compiler) =
== Preliminary notes ==
 * Instructions to get the free (''as in : free as a beer'') VC++2003 compiler can be found on the [http://wiki.wxwidgets.org/wiki.pl?Installing_WxWin_For_MS_Free_Tools wxWidgets wiki]. However once you have all the required tools (please also read the note on that page about getting the ```nmake.exe``` from the .NET SDK).
 * In the following, we assume that the following directories are used (''these are the paths written in the Fox makefiles, so you need to chage these in ```Fox\ObjCryst\rules.mak``` if they are not the same''):
  * wxWidgets uncompressed in: ```C:\Dev\wxWidgets```.
  * VC++ 2003 installed in ```C:\Program Files\Microsoft Visual C++ Toolkit 2003```
  * VC++ SDK installed in ```E:\Program Files\Microsoft SDK```
  
 * Then define the following environment variables (''some of these may be redundant...''), using the '''Control Panel''' ```System : Advanced : Environment Variables```:
  * '''''Variable name''''': ```DOTNETSDK``` '''''Value''''': ```E:\Program Files\Microsoft SDK```
  * '''''Variable name''''': ```INCLUDE``` '''''Value''''': ```%MSSDK%\include;%MSVC%\include;```
  * '''''Variable name''''': ```LIB``` '''''Value''''': ```%MSSDK%\lib;%MSVC%\lib```
  * '''''Variable name''''': ```MSSDK``` '''''Value''''': ```E:\Program Files\Microsoft SDK```
  * '''''Variable name''''': ```MSVC``` '''''Value''''': ```C:\Program Files\Microsoft Visual C++ Toolkit 2003```
  * '''''Variable name''''': ```VCToolkitInstallDir``` '''''Value''''': ```C:\Program Files\Microsoft Visual C++ Toolkit 2003\```
  * '''''Variable name''''': ```WXWIN``` '''''Value''''': ```C:\Dev\wxWidgets```
  * the ```Path``` environment variable must be extended to include:
    * ''C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;E:\Program Files\Microsoft SDK\Bin;E:\Program Files\Microsoft SDK\Bin\Win64;E:\Program Files\Microsoft SDK\Bin\WinNT''
   * On my test computer, the full path (standard path, plus the one used for the Borland and M$ compilers, plus the ```cvs``` program) is equal to:
    *''%!SystemRoot%\system32;%!SystemRoot%;%!SystemRoot%\System32\Wbem;C:\Borland\BCC55\Bin;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;E:\Program Files\Microsoft SDK\Bin;E:\Program Files\Microsoft SDK\Bin\Win64;E:\Program Files\Microsoft SDK\Bin\WinNT;C:\PROGRA~1\GNU\WINCVS~1.3\CVSNT''
=== Requirements ===
 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.
 You will also need to install the ''"Win32 Platform SDK"'', which must be downloaded separately.
Line 28: Line 13:
== Compiling wxWidgets ==
 * Download the wxWidgets source code from [http://wxwidgets.org wxWidgets.org], and uncompress it.
 * Edit the ```C:\wxWidgets\include\wx\msw\setup.h```, and set ```wxUSE_GLCANVAS``` to 1.
 * Then open a console (command prompt) and type:
  {{{
    cd C:\Dev\wxWidgets\build\msw
    nmake -f makefile.vc BUILD=release SHARED=0 MONOLITHIC=1 USE_OPENGL=1 RUNTIME_LIBS=static }}}
 * You should then have the compiled libraries in ```C:\Dev\wxWidgets\lib\vc_lib```. Note that after the compilation, you can remove all the objects file in the ```C:\Dev\wxWidgets\build\msw\vc_msw``` directory to gain some place.
== Compiling Fox ==
 * [:FoxDownload: Download] the !ObjCryst++/Fox source code (get the ```Fox-(version)-src.zip``` file)
 * Uncompress and rename it so that the Fox directory is ```C:\Dev\Fox```
 * Then in a console:
  {{{
    cd C:\Dev\Fox
    nmake }}}
 * Voilà, you now have Fox in ```C:\Dev\Fox\Fox.exe```.
=== Compiling wxWidgets ===
 * ''''''Download the installer'''''' from the [[http://wxwidgets.org/downld2.htm|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.

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)