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.tapley@...> 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.tapley@...> wrote:
>
>> That was exactly the problem!
>>
>> Thank you very much Eric :)
>>
>> Dave,
>>
>>
>>
>>
>> On 21 July 2011 22:44, Eric Y. Kow <eric.kow@...> 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&gt;
>>>
>>
>>
>

That was exactly the problem!
Thank you very much Eric :)
Dave,
On 21 July 2011 22:44, Eric Y. Kow <eric.kow@...> 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&gt;
>

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&gt;

Hi all,
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".
It gives me a "* Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8,
wx_baseu_xml-2.8..." error,
I have the .so files for "libwx_baseu-2.8.so" in my /usr/lib, but I don't
have any headers in /usr/include, could this be a problem?
If so then does anyone know where I can obtain these headers? I have already
installed the libwxbase2.8-dev and libwxgtk2.8-dev packages.
Running "cabal configure -v3" I can see the first problem is this:
"/usr/bin/ld: cannot find -lwxmsw28ud_media"
Is it safe to assume that "msw" refers to MS Windows? If so should I be
trying to link against this when building in Linux?
I have pasted the full output from "cabal configure -v3" here:
http://hpaste.org/49326
Thanks,
Dave

Hi all,
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".
It gives me a "* Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8,
wx_baseu_xml-2.8..." error,
I have the .so files for "libwx_baseu-2.8.so" in my /usr/lib, but I don't
have any headers in /usr/include, could this be a problem?
If so then does anyone know where I can obtain these headers? I have already
installed the libwxbase2.8-dev and libwxgtk2.8-dev packages.
Running "cabal configure -v3" I can see the first problem is this:
"/usr/bin/ld: cannot find -lwxmsw28ud_media"
Is it safe to assume that "msw" refers to MS Windows? If so should I be
trying to link against this when building in Linux?
I have pasted the full output from "cabal configure -v3" here:
http://hpaste.org/49326
Thanks,
Dave

Heinrich Apfelmus wrote:
> Dmitriy Nikitinskiy wrote:
>> Heinrich Apfelmus wrote:
>>> Seems to be the same as this bug:
>>>
>>> http://sourceforge.net/tracker/index.php?func=detail&aid=1826548&group_id=9863&atid=109863
>>>
>>> Any workaround?
>>>
>> On my side this example works ok.
>> I have tested on openSuSe 11.4 and WinXp with ghc-7.0.2 and wxWidgets-2.8.11.
>
> Ah, I should have mentioned that I am on Mac OS X, version 10.6.8 .
Apparently, I'm not very good at reporting bugs. I had wxWidgets-2.8.8
which came bundled with the OS. Installing a newer version (2.8.12)
via MacPorts fixes the problem.
Best regards,
Heinrich Apfelmus
--
http://apfelmus.nfshost.com