|
From: Dave T. <dav...@gm...> - 2011-07-23 01:26:28
|
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 <dav...@gm...> 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 <dav...@gm...> wrote: > >> That was exactly the problem! >> >> Thank you very much Eric :) >> >> Dave, >> >> >> >> >> On 21 July 2011 22:44, Eric Y. Kow <eri...@gm...> 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> >>> >> >> > |