About/News |
Building on Windows Using Visual Studio.NETIntroductionThis document provides detailed instructions on how to build wx.NET using Microsoft's Visual Studio.NET (VS.NET) on Windows. Microsoft's .NET runtime is also assumed to be your virtual machine. In the following instructions Download wxWidgetsAs of this writing, wx.NET requires version 2.6 of wxWidgets. There are a variety of ways you can build and install wxWidgets. Regardless of which method you use, you must install somewhere without spaces in a folder name. Building from the 2.6 SnapshotDownload this release from: Both the Download a Nightly CVS SnapshotIf you know of a bug that is resolved in CVS, using a snapshot of CVS is probably the easiest approach to take. The source tarball is available at: Building from CVSIf you want to always stay on top of the latest wxWidgets changes, you will probably want to use a CVS client to synchronize your wxWidgets source to CVS. If you have Cygwin installed, use the following command to check out the latest CVS source: $ cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwindows \ co wxWidgets Use the password "anoncvs". WinCVS is a free GUI oriented CVS client that could be used as well. WinCVS can be downloaded at http://www.wincvs.org/. Configure wxWidgetsBuilding wxWidgets works very differently under Windows than it does on Linux/Mac, because many developers do not have the standard UN*X oriented build tools. While you should be able to build using the VS.NET
IDE, it is problematic because CVS (I think??) converts Windows CR/LF
to UN*X newlines only. And unfortunately VS.NET is so brain dead that
it can not read these files. While Cygwin's Your first major step is to create a
Next edit the file Setup Your VC Build EnvironmentLaunch a Windows shell ( "%VS71COMNTOOLS%vsvars32.bat" You must type/paste the quotes. This script will define various environment variables needed by the Visual C++ compiler and linker. It is assumed you will use this shell when building wxWidgets in the sections that follow. Build wxWidgetsIn the folder Now from your Windows shell do the following: cd WXNET_TOP/Build/Windows/VS.NET nmake wxw This will build the wxWidgets core libraries and a few contrib libraries. If you would like to build the wxWidgets samples, do the following: nmake wxw-samples
Please see the samples section for details about the wxWidgets samples. Configure and Build wx.NETInside of the Next, from your Windows shell: cd WXNET_TOP/Build/Windows/VS.NET nmake wxnet This will create Visual Studio.NET library/sample solution and project files. Now launch
the wx.NET solution file, The build process is split into two parts:
If everything goes well, the above files will be placed
in Build and Run the wx.NET SamplesLaunch To run the samples, use the Explorer to open the top-level source or
install folder. Launch Build the UtilitiesThere is currently
one utility provided with wx.NET, ToWxnet. This C# program can be used
to convert wxGlade ( Last changed on $Date: 2005/07/25 05:15:16 $ by $Author: t9mike $ • Original Author: Michael S. Muegel |