0.4/2.5.1 MacOS build issues
"Michael S. Muegel" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
I was able to build v0.4 wx.net on Panther via the DarwinPorts wx.widgets
2.5.1 release. For this attempt I'm using the source tar file and not CVS of
wx.net. And wx.Widgets is a point release also, not CVS.
Anyway, I made a few tweaks here and there to the wx.net source to account
for non-existent functionality in the Mac wx.widgets port.
I'm using the DarwinPorts dotgnu packages
ml-pnet-0.6.4
pnet-0.6.4
pnetlib-0.6.4
I'm able to compile/run a C# test program that simply calls wxSleep. So at
least my wx-c library and wx.NET assemblies are somewhat sane.
But when I try a sample that involves a real UI calls I get a "Bus error".
Here is the sample code:
using wx;
public class TestApp
{
[STAThread]
static void Main()
{
try
{
wx.ColourDialog dialog = new wx.ColourDialog();
dialog.Title = "Pick a color, any color";
dialog.ShowModal();
Console.WriteLine("You picked the color " +
dialog.ColourData.Colour.Red.ToString() + "," +
dialog.ColourData.Colour.Green.ToString() + "," +
dialog.ColourData.Colour.Blue.ToString());
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
}
$ cscc /out:WxLibraryTest2.exe /t:winexe /debug
/r:wx.NET.dll -L/usr/local/lib WxLibraryTest2.cs
$ ilrun WxLibraryTest2.exe
Bus error
My next step will be to switch to using the CVS versions of both wxWidgets
and wx.NET. And also to post the changes I made to wx.NET to get feedback (I
am not a C++ programmer).
In the meantime, if anyone has any advice on how to debug the above please
chime in.
My goal is to create a DarwinPort of wx.NET going forward for easy install.
-Mike
--
Michael S. Muegel
Dallas, TX
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click