root/trunk/README.win32.txt

Revision 560, 3.6 kB (checked in by uncle_fungus, 2 years ago)

Updated documentation

  • Property svn:eol-style set to native
Line 
1 INSTRUCTIONS FOR COMPILING ON MS WINDOWS
2 ========================================
3
4 This guide details how to setup a build environment using the Microsoft Free
5 Tools and wxWidgets for Windows. Other build environment will require slightly
6 different setups, but most of the details should be fairly easy to adjust to
7 your own environment.
8
9 Setting up the build environment
10 ================================
11
12 Download the following software (free)
13 * Microsoft Visual C++ 2010 Express Edition (MSVC)
14 * wxWidgets >= 2.8.7
15
16 The total size of the required installations sources is >500MB
17
18 * Install MSVC.
19 * Install wxWidgets.
20
21 Installation of the required software will require >1GB of disk space.
22
23 The rest of the documentation assumes that you installed everything into the
24 default locations. So you may need to alter paths etc.
25
26 Aggressive wxWidgets stripping
27 ==============================
28
29 If you wish to build an aggressively stripped minimal version of the wxWidgets
30 library capable of linking against FahMon and reducing the final executable size
31 by several hundred kb, then copy the "resources\setup_aggressive.h" file to
32 C:\wxMSW-2.8.x\include\wx\msw\setup.h before continuing. This is not guaranteed
33 to work from SVN as this file is not updated regularly against the FahMon
34 sources.
35
36 Compiling wxWidgets
37 ===================
38
39 * Navigate to c:\wxwidgets-2.8.x\build\msw and open wx.dsw.
40 * When prompted to open and convert the files, click "yes to all".
41 * Change the build type to "Unicode Release" by default this is set to "Debug".
42   This can be altered by selecting the option from the drop-down list between
43   the compile button (green arrow) and the platform type (which should say
44   "Win32").
45  * In the "Solution explorer" select all the wx subprojects. There are 20 of
46    them.
47  * Right click on the selected projects and select properties.
48  * On the properties dialog and go to "Configuration Properties->C/C++->Code
49    Generation."
50  * Change the value of "Runtime Library" to "Multi-threaded (/MT)"
51  * Close the properties dialog (with OK)
52  * Go to the Build menu and hit "Build solution"
53  * Make a snack, this will take a while
54  * When the compiling has finished, you should see a line that reads
55    "Build: 20 succeeded, 0 failed, 0 up-to-date, 0 skipped"
56  * You have now sucessfully set up your FahMon build environment! Note: if you
57    need to make any changes to wxWidgets, just open wx.sln (not wx.dsw) and
58    recompile.
59
60 Compiling libcurl
61 =================
62
63 * Open wxcurl\win32_libcurl\curl.sln
64 * Make sure the build type is set to "DLL Release"
65 * Go to the build menu and hit "Build Solution"
66
67
68 Configuring FahMon
69 ================
70
71 * If you having installed wxwidgets 2.8.11 to c:\wxwidgets-2.8.11 you do not
72   need to configure FahMon further.
73 * Open fahmon.sln
74 * Change build type to "Release"
75 * For fahmon and wxcurl, Right click and go to properties.
76 * Goto "Configuration properties->VCC++ Directories"
77 * Select "Include Directories"
78 * Add the following directories to the list:
79   "c:\wxMSW-2.8.x\include"
80   "c:\wxMSW-2.8.x\include\msvc"
81 * Select "Library Directories"
82 * Add the following directories to the list:
83   "c:\wxSW-2.8.x\lib\vc_lib"
84 * Close the options dialog (with OK).
85
86 Compiling FahMon
87 ================
88
89 * Open fahmon.sln
90 * Change the build type to "Release"
91 * Go to the Build menu and hit "Build Solution"
92 * When the compiling has finished, you should see a line that reads:
93   "Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped"
94 * If this is the case, FahMon has compiled successfully and you can find your
95   new fahmon.exe inside the "Release" folder
96 * To clean up the "Release" folder and organise the translations run
97   "gen_msw.bat"
Note: See TracBrowser for help on using the browser.