About/News |
MacOS X Build InstructionsIntroductionThe MacOS X version of wx.NET is still in a state of flux as wxWidgets is undergoing significant improvements on the MacOS side. But with the release of wxWidgets 2.6, Mac wxWidgets (aka wxMac) is very usable. In the rest of this document I'll use Install your .NET Package(s)There are two open source .NET runtimes and development environments available:
As of July 2004 Mono is at version 1.0. PNET is at v0.6.6. Installing MonoDownload the Framework installer here: When you run the installer, Mono will get installed under Installing DotGNU Portable.NetThe easiest way to install PNET is to first install DarwinPorts, which provides an easy to use environment for compiling, installing, and maintaining Open Source packages in a custom tree on your MacOS X system. It is very similar to Perl's CPAN module. It is available at http://darwinports.opendarwin.org/. A nice summary and how-to is available at O'Reilly's Website. Make sure you add the DarwinPorts "bin" to your There is usually a DarwinPort of the latest PNET release. As of early July 2004 PNET 0.6.6 is available using DarwinPorts. To install PNET type: $ port install treecc pnet pnetlib ml-pnet If you have previously installed an older version PNET you will get an error that you need to un-install the older version. To un-install type: $ port uninstall pnet $ port uninstall pnetlib $ port uninstall ml-pnet Then re-run the entire port install command above. This installs PNET developer and runtime tools and libraries along with the some Mono libraries to supplement those that are available via PNET. Acquire wxWidgets SourceAs of this writing, wx.NET requires version 2.6 of wxWidgets. There are a variety of ways you can build and install wxWidgets. Downloading the 2.6 ReleaseDownload this release from: Untar the file 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: Using the Latest CVS HEADIf you want the latest and greatest development version of wxWidgets, use the latest unreleased "CVS HEAD" version. This just means the latest developer version. Standard checkout command: $ cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/pack/cvsroots/wxwindows \ co wxWidgets Use the password "anoncvs". Configure the BuildInside of the You must change:
And you should probably review:
The default for Build Wx.WidgetsInside of a shell do the following: $ cd WXNET_TOP/Build/MacOS
$ make wxw
This will:
The wxw build is actually broken into steps. To see a list of sub-builds you can perform, you can type make without any arguments: $ make You can find the list of commands here. The wxw target does not build the wxWidgets samples. If this is your first time using wxWidgets/wx.NET, I suggest building these as well: $ make wxw-samples Please see the samples section for details about the wxWidgets samples. Build wx.NETInside of a shell do the following: $ cd WXNET_TOP/Build/MacOS $ make wxnet This will:
Upon successful build libraries and assemblies are all placed in a common "bin" folder, You can also "install" wx.NET to another directory on your
Mac. This is a great way to archive different builds of wx.NET or test
on another Mac. The install will be done to the directory defined by To start the install type: $ make wxnet-install See Install Package for a description of what gets installed. And note that the install step is optional. You do not have to do it to run the samples or even develop using wx.NET. Try Out the SamplesUsing the Finder, open the top-level source or install folder and launch
the Sample-Launcher application shortcut. This
will start a sample browser using the .NET runtime you defined
in Last changed on $Date: 2005/07/25 16:24:20 $ by $Author: t9mike $ • Original Author: Michael S. Muegel |