Well I have a response¹ from someone in the wx-dev group saying that the
missing GTK constructor "is
available in 2.9.2 but chances of this being backported to 2.8 are slim".
I don't know how people would feel about modifying wxcore to use a
constructor which is implemented for 2.8 with GTK?
Dave,
¹
---------- Forwarded message ----------
From: Vadim Zeitlin <va...@wxwidgets.org>
Date: 23 July 2011 12:52
Subject: Re: [wx-dev] [2.8.12] Missing constructor definition in gtk
cursor.h
To: wx-...@googlegroups.com
On Sat, 23 Jul 2011 02:32:12 +0100 Dave Tapley <duked...@gmail.com> wrote:
DT> It seems that in (at least) the latest 2.8.12 release of wxWidgets¹ the
DT> cursor.h file in include/wx/gtk/ does not contain a four argument
DT> constructor², however the cursor.h in include/wx/msw does.
DT>
DT> Does anyone know why this is so?
It simply wasn't implemented initially. It was added since then and is
available in 2.9.2 but chances of this being backported to 2.8 are slim.
Regards,
VZ
On 23 July 2011 02:26, Dave Tapley <dave.a.tap...@gmail.com> wrote:
> I have done some further investigation on this and discovered the source of
> the problem, and it is very strange.
>
> It seems that even in the latest 2.8.12 release of wxWidgets¹ the cursor.h
> file in include/wx/gtk/ does not contain the four argument constructor
> (which is causing the build failure below), however the cursor.h in
> include/wx/msw does.
>
> I looked at the history for eljcursor.cpp in darcs and it hasn't been
> changed in anyway in a long time, so this can't be a new problem.
>
> I am going to post to the wx-dev² group and see if anyone knows why this
> constructor declaration is missing.
>
> But the question remains:
> How have we been able to build wxcore for GTK when its .cabal claims³ it
> works for GTK with wxWidgets 2.8?
>
> Thanks,
> Dave
>
>
> ¹ http://sourceforge.net/projects/wxwindows/files/2.8.12/
> ² http://groups.google.com/group/wx-dev
> ³ http://code.haskell.org/wxhaskell/wxcore/wxcore.cabal
>
>
>
> On 22 July 2011 20:06, Dave Tapley <dave.a.tap...@gmail.com> wrote:
>
>> Hmm, unfortunately whilst cabal configure now completes successfully, I am
>> having a problem when doing cabal build, see output below. Could it be
>> related to this:
>> http://comments.gmane.org/gmane.comp.lang.haskell.wxhaskell.general/298
>> ?
>>
>> src/cpp/eljcursor.cpp:23:0:
>> error: no matching function for call to
>> ‘wxCursor::wxCursor(wxString&, long int&, int&, int&)’
>>
>> /usr/include/wx-2.8/wx/gtk/cursor.h:31:0:
>> note: candidates are: wxCursor::wxCursor(const char*, int, int, int,
>> int, const char*, const wxColour*, const wxColour*)
>>
>> /usr/include/wx-2.8/wx/gtk/cursor.h:29:0:
>> note: wxCursor::wxCursor(const wxImage&)
>>
>> /usr/include/wx-2.8/wx/gtk/cursor.h:27:0:
>> note: wxCursor::wxCursor(int)
>>
>> /usr/include/wx-2.8/wx/gtk/cursor.h:26:0:
>> note: wxCursor::wxCursor()
>>
>> /usr/include/wx-2.8/wx/gtk/cursor.h:23:0:
>> note: wxCursor::wxCursor(const wxCursor&)
>>
>>
>>
>>
>>
>>
>> On 21 July 2011 23:00, Dave Tapley <dave.a.tap...@gmail.com> wrote:
>>
>>> That was exactly the problem!
>>>
>>> Thank you very much Eric :)
>>>
>>> Dave,
>>>
>>>
>>>
>>>
>>> On 21 July 2011 22:44, Eric Y. Kow <eric....@gmail.com> wrote:
>>>
>>>> Hi Dave,
>>>>
>>>> On Thu, Jul 21, 2011 at 21:54:11 +0100, Dave Tapley wrote:
>>>> > I am having trouble compiling wxcore on Ubuntu 10.04.
>>>> > The source I am using I pulled with a "darcs get" from hackage, I then
>>>> > descended into the wxcore directory and did a "cabal configure".
>>>>
>>>> I suspect that recent minor changes to our Setup.hs file have
>>>> broken compatibility with wxWidgets 2.8.
>>>>
>>>> Could you try
>>>>
>>>> darcs obliterate -p "Additional libraries required by wxWidgets 2.9"
>>>>
>>>> and see if it has any result?
>>>>
>>>> Alternatively, if you just want a working wxHaskell and aren't
>>>> particularly interested in debugging this sort of thing, I'd
>>>> suggest just doing cabal install wx and fetching the one on
>>>> hackage for now.
>>>>
>>>> Thanks!
>>>>
>>>> --
>>>> Eric Kow <http://erickow.com>
>>>>
>>>
>>>
>>
>
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel