Hi Neil,

On Mon, 03 Dec 2007 19:41:49 +0900, Neil Bartlett <[EMAIL PROTECTED]> 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/wxhaskell-users@lists.sourceforge.net/msg00180.html


-- 
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

Attachment: partial.dpatch
Description: Binary data

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to