Neil Bartlett | 2 Dec 2007 22:27
Picon
Gravatar

Correct version of wxMAC?

Hi,

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.

I have tried compiling a recent checkout of wxHaskell with wxMAC 2.8.7  
and GHC 6.8 on Mac OS 10.5, and the following error occurs:

wxc/src/extra.cpp: At global scope:
wxc/src/extra.cpp:324: error: conflicting return type specified for  
‘virtual void wxcHtmlWindow::OnCellClicked(wxHtmlCell*, wxCoord,  
wxCoord, const wxMouseEvent&)’
/usr/local/include/wx-2.8/wx/html/htmlwin.h:210: error:   overriding  
‘virtual bool wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell*,  
wxCoord, wxCoord, const wxMouseEvent&)’
wxc/src/extra.cpp: In function ‘long int wxGetNumberFromUser(wxChar*,  
wxChar*, wxChar*, long int, long int, long int, wxWindow*, int, int)’:
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)’
make: *** [out/wxc/extra.o] Error 1

Many thanks
Neil
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
(Continue reading)

Neil Bartlett | 2 Dec 2007 22:21
Picon
Gravatar

Correct version of wxMac?

Hi,

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.

I have tried compiling a recent checkout of wxHaskell with wxMAC 2.8.7 and GHC 6.8, but the following error occurs:


wxc/src/extra.cpp: At global scope:
wxc/src/extra.cpp:324: error: conflicting return type specified for ‘virtual void wxcHtmlWindow::OnCellClicked(wxHtmlCell*, wxCoord, wxCoord, const wxMouseEvent&)’
/usr/include/wx-2.8/wx/html/htmlwin.h:210: error:   overriding ‘virtual bool wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell*, wxCoord, wxCoord, const wxMouseEvent&)’
wxc/src/extra.cpp: In function ‘long int wxGetNumberFromUser(wxChar*, wxChar*, wxChar*, long int, long int, long int, wxWindow*, int, int)’:
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)’


Many thanks,
Neil
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
shelarcy | 3 Dec 2007 05:49
Picon
Gravatar

Re: Correct version of wxMac?

Hi Neil,

On Mon, 03 Dec 2007 06:21:01 +0900, Neil Bartlett
<njbartlett@...> 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/wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg00180.html

Best Regards,

--

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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
shelarcy | 3 Dec 2007 06:04
Picon
Gravatar

Re: darcs patch: Move drag-and-drop events to Graphics.UI... (and 2 more)

Hi Eric,

On Sun, 25 Nov 2007 12:06:50 +0900, shelarcy <shelarcy@...> wrote:
> I fixed this problem and send patch again.
> Please test newer version.

Should I attach newer patch to previous reply mail instead of that
using darcs send command?
Or are you just busy now?

I send newer version in below mail.
http://www.mail-archive.com/wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg00290.html

Bust you don't push patch and reply mail after that time.
So I'm worried about that my action offends to you.

Best Regards,

--

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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Neil Bartlett | 3 Dec 2007 11:41
Picon
Gravatar

Re: Correct version of wxMac?

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
<njbartlett@... 
> > 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/wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg00180.html
>
>
> Best Regards,
>
> -- 
> shelarcy <shelarcy    hotmail.co.jp>
> http://page.freett.com/shelarcy/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Eric Y. Kow | 3 Dec 2007 13:08
Picon
Gravatar

Re: darcs patch: Move drag-and-drop events to Graphics.UI... (and 2 more)

On Mon, Dec 03, 2007 at 14:04:45 +0900, shelarcy wrote:
> Should I attach newer patch to previous reply mail instead of that
> using darcs send command?
> Or are you just busy now?

Sorry, I am just very busy right now (I am moving)

If you could darcs send everything in one bundle, that would be great.

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Eric Y. Kow | 3 Dec 2007 15:25
Picon
Gravatar

Re: Correct version of wxMac?

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

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Neil Bartlett | 3 Dec 2007 18:07
Picon
Gravatar

Re: Correct version of wxMac?

Thanks Eric. Are you using Mac OS 10.4 (Tiger) or Mac OS 10.5  
(Leopard)? I have tried installing wx 2.6 using MacPorts on Leopard,  
but it fails with the same error that I saw when attempting a manual  
install.

I suspect there is no alternative at this point other than to wait for  
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
>
> -- 
> Eric Kow                     http://www.loria.fr/~kow
> PGP Key ID: 08AC04F9         Merci de corriger mon français.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Eric Y. Kow | 4 Dec 2007 12:48
Picon
Gravatar

Re: Correct version of wxMac?

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  
> (Leopard)? I have tried installing wx 2.6 using MacPorts on Leopard,  
> but it fails with the same error that I saw when attempting a manual  
> install.

I'm on Tiger

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
Eric Y. Kow | 6 Dec 2007 15:40
Picon
Gravatar

Re: darcs patch: (OS X) Check architecture to use intermediate step of ...

Hi,

I think I have solved my compilation problems by upgrading to XCode 2.5.
Do you still want me to apply this patch?

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

Gmane