Re: [wxhaskell-devel] Building wxcore on Ubuntu 10.04

2011-07-22 Thread Dave Tapley
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  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  wrote:
>
>> That was exactly the problem!
>>
>> Thank you very much Eric :)
>>
>> Dave,
>>
>>
>>
>>
>> On 21 July 2011 22:44, Eric Y. 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 
>>>
>>
>>
>
--
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


Re: [wxhaskell-devel] Building wxcore on Ubuntu 10.04

2011-07-22 Thread Dave Tapley
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  wrote:

> That was exactly the problem!
>
> Thank you very much Eric :)
>
> Dave,
>
>
>
>
> On 21 July 2011 22:44, Eric Y. 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 
>>
>
>
--
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/___
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel