Compiling wxHaskell from source?
Hi there, is there anyone out there having luck with compiling wxHaskell from source on Debian? My Debian version is 3.1, ghc 6.4.1 from sid. wxWidgets 2.6.3. wxHaskell version is 0.9.4. gcc version is 4.0.3. I got the following error messages when trying to run "make". I would really appreciate if you could share some experiences. Thanks. Deling g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/ include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 - DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -Iwxc/include In file included from wxc/src/ewxw_main.cpp:1: wxc/include/wrapper.h: In constructor ` ELJDragDataObject::ELJDragDataObject(void*, char*, int (*) (void*), int (*)(void*, void*), int (*)(void*, int, const void*))': wxc/include/wrapper.h:173: error: no matching function for call to ` wxDataObjectSimple::wxDataObjectSimple(char*&)' /usr/include/wx-2.6/wx/dataobj.h:249: error: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) /usr/include/wx-2.6/wx/dataobj.h:203: error: wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat&) wxc/include/wrapper.h: In constructor ` ELJTextValidator::ELJTextValidator(void*, void*, void*, long int)': wxc/include/wrapper.h:257: error: ambiguous overload for 'operator=' in ' this->ELJTextValidator::buf = _txt' /usr/include/wx-2.6/wx/string.h:626: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx-2.6/wx/string.h:846: error: wxString& wxString::operator=(wchar_t) <near match> /usr/include/wx-2.6/wx/string.h:860: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> /usr/include/wx-2.6/wx/string.h:915: error: wxString& wxString::operator=(const wxString&) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:331: error: conflicting return type specified for ` virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' /usr/include/wx-2.6/wx/ipcbase.h:86: error: overriding `virtual wxChar* wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' wxc/include/wrapper.h: In constructor `ELJConnection::ELJConnection (char*, int) ': wxc/include/wrapper.h:301: error: no matching function for call to ` wxTCPConnection::wxTCPConnection(char*&, int&)' /usr/include/wx-2.6/wx/sckipc.h:106: error: candidates are: wxTCPConnection::wxTCPConnection(const wxTCPConnection&) /usr/include/wx-2.6/wx/sckipc.h:65: error: wxTCPConnection::wxTCPConnection() /usr/include/wx-2.6/wx/sckipc.h:64: error: wxTCPConnection::wxTCPConnection(wxChar*, int) wxc/include/wrapper.h: In constructor `ELJPrintout::ELJPrintout (void*, void*, void*, void*, void*, void*, void*, void*, void*, void*)': wxc/include/wrapper.h:413: error: conversion from `char*' to `const wxString' is ambiguous /usr/include/wx-2.6/wx/string.h:643: error: candidates are: wxString::wxString(wchar_t, unsigned int) <near match> /usr/include/wx-2.6/wx/string.h:632: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: In constructor `ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, void*, void*, void*, void*, int, int, int, int, int)': wxc/include/wrapper.h:475: error: conversion from `char*' to `const wxString' is ambiguous /usr/include/wx-2.6/wx/string.h:643: error: candidates are: wxString::wxString(wchar_t, unsigned int) <near match> /usr/include/wx-2.6/wx/string.h:632: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:534: error: invalid type `const char[11]' for default argument to `const wxString&' make: *** [out/wxc/ewxw_main.o] Error 1 Exit 2
I cannot build it on Mac OSX either. I think it has to do with GCC 4.x. On Nov 17, 2005, at 9:09 PM, Deling Ren wrote:
Hi there, is there anyone out there having luck with compiling wxHaskell from source on Debian? My Debian version is 3.1, ghc 6.4.1 from sid. wxWidgets 2.6.3. wxHaskell version is 0.9.4. gcc version is 4.0.3. I got the following error messages when trying to run "make".
Wouter Swierstra succeeded compiling wxhaskell for Mac OSX Tiger. See his messages on the wxhaskell-mailinglist: http://sourceforge.net/mailarchive/forum.php?forum_id=34197
From: Wouter Swierstra <wss@Cs...>.Nott.AC.UK> Re: Installation on Mac OS X 2005-11-09 04:42 Yep, that fixes it.
Thanks again for everyone's help.
--Wouter
For the record, here's what I had to do
Download wxMac2.6.2
cd wxMac-2.6.2/ mkdir mybuild cd mybuild ./configure --disable-shared --disable-unicode make sudo make install
Download and unpack wxHaskell 0.9.4
comment out the function wxColour_GetPixel in wxhaskell-0.9.4/wxc/src/ ewxw/eljcolour.cpp
./configure --wx-config=/usr/local/bin/wx-config make make install
Cheers, Arthur On 17-nov-05, at 22:29, Joel Reymont wrote:
I cannot build it on Mac OSX either. I think it has to do with GCC 4.x.
On Nov 17, 2005, at 9:09 PM, Deling Ren wrote:
Hi there, is there anyone out there having luck with compiling wxHaskell from source on Debian? My Debian version is 3.1, ghc 6.4.1 from sid. wxWidgets 2.6.3. wxHaskell version is 0.9.4. gcc version is 4.0.3. I got the following error messages when trying to run "make".
Hello, I also couldn't compile it. I looked in the sources a bit, and at least one of the problems was that that the wxHaskell wrappers used 'char' insted of 'wxChar', which I think causes problems if wxWidgets is compiled with unicode support (as is probably the case with the Debian library). It appears that the soultion posted on the board also required wxWidgets without unicode support. These are just guesses though. -Iavor On 11/17/05, Arthur Baars <arthurb@cs.uu.nl> wrote:
Wouter Swierstra succeeded compiling wxhaskell for Mac OSX Tiger. See his messages on the wxhaskell-mailinglist: http://sourceforge.net/mailarchive/forum.php?forum_id=34197
From: Wouter Swierstra <wss@Cs...>.Nott.AC.UK> Re: Installation on Mac OS X 2005-11-09 04:42 Yep, that fixes it.
Thanks again for everyone's help.
--Wouter
For the record, here's what I had to do
Download wxMac2.6.2
cd wxMac-2.6.2/ mkdir mybuild cd mybuild ./configure --disable-shared --disable-unicode make sudo make install
Download and unpack wxHaskell 0.9.4
comment out the function wxColour_GetPixel in wxhaskell-0.9.4/wxc/src/ ewxw/eljcolour.cpp
./configure --wx-config=/usr/local/bin/wx-config make make install
Cheers,
Arthur On 17-nov-05, at 22:29, Joel Reymont wrote:
I cannot build it on Mac OSX either. I think it has to do with GCC 4.x.
On Nov 17, 2005, at 9:09 PM, Deling Ren wrote:
Hi there, is there anyone out there having luck with compiling wxHaskell from source on Debian? My Debian version is 3.1, ghc 6.4.1 from sid. wxWidgets 2.6.3. wxHaskell version is 0.9.4. gcc version is 4.0.3. I got the following error messages when trying to run "make".
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (5)
-
Arthur Baars -
Deling Ren -
Iavor Diatchki -
Joel Reymont -
Johan Jeuring