Re: Howdy!
Bryan Bulten <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Hello Jason,
> I saw this come from the dotgnu mailing list, and thought I'd take a
> look. Would anyone here be interested in guiding a Mac OS X user
> through the process of getting wx.NET running on a Jaguar system?
I can try. :-)
(Disclaimer: This was my first time using OS X/Darwin, so of course I
try to turn it into something more like a Linux install ;-) )
> What components does one need in order to get it running? I can't seem
> to get Premake to work... not certain if I've just got it in the
> wrong place, as there's not much in the way of installation directions
> on Premake's website.
For my separate build environment, I had to set a few variables (dumped
in my rc script):
export PATH=$PATH:$HOME/workbench/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/workbench/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$HOME/workbench/lib
export CPATH=$CPATH:$HOME/workbench/include
export CPPFLAGS=-I$HOME/workbench/include
export LDFLAGS=-L$HOME/workbench/lib
As you can see, I used 'workbench' for installing everything. This is
because I haven't a clue how OS X handles this stuff. Change this at
your discretion. ;-)
Here's a list of components:
- Portable.NET (latest release)
I installed this into $HOME/workbench.
- Mono libraries
I found that Portable.NET with the mono libraries was a little more
stable in Panther when testing wx.NET, so you may want to try them
if you're experiencing major difficulties.
Also installed into $HOME/workbench
- wxMac 2.4.2 (http://www.wxwindows.org)
Build with './configure --prefix=$HOME/workbench && make && make
install'.
- Premake
You shouldn't need premake, since I've included Makefiles in the
modified sources (below).
- wx.NET
I made several modifications to wx.NET, to get it to create dylibs,
and fix several minor issues.
The modified sources can be found here:
http://wxnet.sf.net/mac/wx.NET-mac.tar.gz
First, extract these. Then from the wx.NET directory, run make
(Don't run premake from here, since the Makefiles have already been
generated and modified to create dylib's.)
When the build has completed, copy Bin/libwx-c.dylib and
Bin/wx.NET.dll into your library path (i.e. $HOME/workbench/lib).
With that done, you should be able to build the samples. cd into
the Samples directory, and run make.
Now, to run those samples, an OS X .app bundle is required. I hacked
one together (included with the modified sources.) In it you'll need to
modify Controls.app/Contents/MacOS/Controls to setup the environment
appropriately, and run the right sample.
With the bundle created, you should be able to run the sample from
Finder.
> Anyhow, thanks and this looks like a pretty darn cool project!
Thank-you.
If these steps are too overwhelming, or you just want it to work,
contact me off list, and I can send you a copy of my build environment
for wx.NET (around 32M) - I built this in Panther, so it may not work
in Jaguar.
Cheers.
--
Bryan Bulten
http://www.bulten.ca/
http://wxnet.sourceforge.net/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/