From: Neil B. <njb...@gm...> - 2007-12-02 23:55:26
|
<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space; ">Hi,<br><br>Could somebody = confirm the correct version of wxWidgets to compile against for Mac OS = X? The website states that wxMAC 2.5.1 is required, but several parts of = the website appear to be out of date, and also 2.5.1 is more than three = years old now.<br><br>I have tried compiling a recent checkout of = wxHaskell with wxMAC 2.8.7 and GHC 6.8, but the following error = occurs:<br><br><br>wxc/src/extra.cpp: At global = scope:<br>wxc/src/extra.cpp:324: error: conflicting return type = specified for =91virtual void wxcHtmlWindow::OnCellClicked(wxHtmlCell*, = wxCoord, wxCoord, const = wxMouseEvent&)=92<br>/usr/include/wx-2.8/wx/html/htmlwin.h:210: = error: overriding =91virtual bool = wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell*, wxCoord, wxCoord, = const wxMouseEvent&)=92<br>wxc/src/extra.cpp: In function =91long = int wxGetNumberFromUser(wxChar*, wxChar*, wxChar*, long int, long int, = long int, wxWindow*, int, int)=92:<br>wxc/src/extra.cpp:1919: error: = cannot convert =91wxPoint=92 to =91int=92 for argument =918=92 to =91long = int wxGetNumberFromUser(wxChar*, wxChar*, wxChar*, long int, long int, = long int, wxWindow*, int, int)=92<br><br><br>Many = thanks,<br>Neil</body></html>= |
From: shelarcy <she...@gm...> - 2007-12-03 04:49:30
|
Hi Neil, On Mon, 03 Dec 2007 06:21:01 +0900, Neil Bartlett <njb...@gm...> wrote: > Could somebody confirm the correct version of wxWidgets to compile against for > Mac OS X? The website states that wxMAC 2.5.1 is required, but several parts of > the website appear to be out of date, and also 2.5.1 is more than three years > old now. wxHaskell uses deprecated wxWidgets 2.4 API. So you must use previous stable version - wxWidgets 2.6.x - or wxWidets 2.8.x with compatiblily mode for wxWidgets 2.4 API. > I have tried compiling a recent checkout of wxHaskell with wxMAC 2.8.7 and GHC 6.8, > but the following error occurs: Because you don't use compatiblity mode. You must add --enable-compat24 option in configuration phase. ./configure --enable-unicode --disable-shared --enable-compat24 And after installing wxWidgets, you must set #define WXWIN_COMPATIBILITY_2_4 1 to your wxHaskell's setup.h. http://riftor.g615.co.uk/content.php?view=53&type=2 http://www.haskell.org/pipermail/libraries/2007-June/007653.html And Jeremy is working on supporting wxWidget 2.8 API now. See below thread. http://www.mail-archive.com/wxh...@li.../msg00180.html Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Neil B. <njb...@gm...> - 2007-12-03 10:43:40
|
Thanks shelarcy. I have followed these suggestions but I get exactly the same error when building wxHaskell from darcs. Should I use the patched wxHaskell 0.9.4 from Riftor's site? If so, will that patch be merged back into the darcs repository? Incidentally I tried to use 2.6.4, but then wxWidgets itself does not build. I think due to some changes in the Carbon APIs in Mac OS X Leopard. Many thanks, Neil On 3 Dec 2007, at 04:49, shelarcy wrote: > Hi Neil, > > On Mon, 03 Dec 2007 06:21:01 +0900, Neil Bartlett <njb...@gm... > > wrote: >> Could somebody confirm the correct version of wxWidgets to compile >> against for >> Mac OS X? The website states that wxMAC 2.5.1 is required, but >> several parts of >> the website appear to be out of date, and also 2.5.1 is more than >> three years >> old now. > > wxHaskell uses deprecated wxWidgets 2.4 API. > So you must use previous stable version - wxWidgets 2.6.x - or > wxWidets 2.8.x > with compatiblily mode for wxWidgets 2.4 API. > >> I have tried compiling a recent checkout of wxHaskell with wxMAC >> 2.8.7 and GHC 6.8, >> but the following error occurs: > > Because you don't use compatiblity mode. > You must add --enable-compat24 option in configuration phase. > > ./configure --enable-unicode --disable-shared --enable-compat24 > > And after installing wxWidgets, you must set > #define WXWIN_COMPATIBILITY_2_4 1 to your wxHaskell's setup.h. > > http://riftor.g615.co.uk/content.php?view=53&type=2 > http://www.haskell.org/pipermail/libraries/2007-June/007653.html > > > And Jeremy is working on supporting wxWidget 2.8 API now. > See below thread. > http://www.mail-archive.com/wxh...@li.../msg00180.html > > > Best Regards, > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2007-12-08 06:22:09
Attachments:
partial.dpatch
|
Hi Neil, On Mon, 03 Dec 2007 19:41:49 +0900, Neil Bartlett <njb...@gm...> wrote: > Thanks shelarcy. I have followed these suggestions but I get exactly > the same error when building wxHaskell from darcs. Should I use the > patched wxHaskell 0.9.4 from Riftor's site? If so, will that patch be > merged back into the darcs repository? I missed his patch. http://riftor.g615.co.uk/wxhaskell/wxhchanges.txt And his patch isn't good. He didn't care about API change any place. So I made patch to fix building problem by refering to his work. Attached file is that. But this is partial work. > wxc/src/extra.cpp:1919: error: cannot convert ‘wxPoint’ to ‘int’ for argument ‘8’ > to ‘long int wxGetNumberFromUser(wxChar*, wxChar*, wxChar*, long int, long int, > long int, wxWindow*, int, int)’ Because I don't know why this problem cause with wxWidgets 2.8. wxWidgets API Document (and header file) saids wxGetNumberFromUser uses wxPoint for argument '8'. http://www.wxwindows.org/manuals/2.8/wx_dialogfunctions.html#wxgetnumberfromuser How about edit setup.h's WXWIN_COMPATIBILITY_2_4 part before building wxWidgets? I edited (wxWidgets)/include/wx/msw/setup.h to build wxHaskell with wxMSW 2.8.4, so I think you must edit (wxWidgets)/include/wx/mac/setup.h or (wxWidgets)/include/wx/mac/setup0.h file. From above reason, my patch isn't good enough solution. But I think this is a good starting point to support wxWidgets 2.8.x. Best Regards, > On 3 Dec 2007, at 04:49, shelarcy wrote: >> wxHaskell uses deprecated wxWidgets 2.4 API. >> So you must use previous stable version - wxWidgets 2.6.x - or >> wxWidets 2.8.x >> with compatiblily mode for wxWidgets 2.4 API. >> >>> I have tried compiling a recent checkout of wxHaskell with wxMAC >>> 2.8.7 and GHC 6.8, >>> but the following error occurs: >> >> Because you don't use compatiblity mode. >> You must add --enable-compat24 option in configuration phase. >> >> ./configure --enable-unicode --disable-shared --enable-compat24 >> >> And after installing wxWidgets, you must set >> #define WXWIN_COMPATIBILITY_2_4 1 to your wxHaskell's setup.h. >> >> http://riftor.g615.co.uk/content.php?view=53&type=2 >> http://www.haskell.org/pipermail/libraries/2007-June/007653.html >> >> >> And Jeremy is working on supporting wxWidget 2.8 API now. >> See below thread. >> http://www.mail-archive.com/wxh...@li.../msg00180.html -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Eric Y. K. <eri...@gm...> - 2007-12-03 14:25:49
|
On Mon, Dec 03, 2007 at 10:41:49 +0000, Neil Bartlett wrote: > Incidentally I tried to use 2.6.4, but then wxWidgets itself does not =20 > build. I think due to some changes in the Carbon APIs in Mac OS X =20 > Leopard. my wx-config --version says 2.6.3. It's from MacPorts, if it helps, and I'm not using 2.4 compatibility mode --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Neil B. <njb...@gm...> - 2007-12-03 17:07:22
|
Thanks Eric. Are you using Mac OS 10.4 (Tiger) or Mac OS 10.5 =20 (Leopard)? I have tried installing wx 2.6 using MacPorts on Leopard, =20 but it fails with the same error that I saw when attempting a manual =20 install. I suspect there is no alternative at this point other than to wait for =20= proper support for wx 2.8. Neil On 3 Dec 2007, at 14:25, Eric Y. Kow wrote: > On Mon, Dec 03, 2007 at 10:41:49 +0000, Neil Bartlett wrote: >> Incidentally I tried to use 2.6.4, but then wxWidgets itself does not >> build. I think due to some changes in the Carbon APIs in Mac OS X >> Leopard. > > my wx-config --version says 2.6.3. It's from MacPorts, if it helps, > and I'm not using 2.4 compatibility mode > > --=20 > Eric Kow http://www.loria.fr/~kow > PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Eric Y. K. <eri...@gm...> - 2007-12-04 11:48:46
|
Hi, On Mon, Dec 03, 2007 at 17:07:03 +0000, Neil Bartlett wrote: > Thanks Eric. Are you using Mac OS 10.4 (Tiger) or Mac OS 10.5 =20 > (Leopard)? I have tried installing wx 2.6 using MacPorts on Leopard, =20 > but it fails with the same error that I saw when attempting a manual =20 > install. I'm on Tiger --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |