From: <a_r...@ya...> - 2007-05-02 21:17:31
|
Hi, I tried to build wxhaskell 0.9.4 on debian lenny with ghc 6.6 and wxgtk2.6. Configure runs ok, but make gives the following error: 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 wxc/include/wrapper.h: In constructor ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*)): wxc/include/wrapper.h:172: error: no matching function for call to wxDataObjectSimple::wxDataObjectSimple(char*&) /usr/include/wx-2.6/wx/dataobj.h:249: note: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) /usr/include/wx-2.6/wx/dataobj.h:202: note: 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 ((ELJTextValidator*)this)->ELJTextValidator::buf = (const char*)_txt /usr/include/wx-2.6/wx/string.h:627: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx-2.6/wx/string.h:846: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx-2.6/wx/string.h:860: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> /usr/include/wx-2.6/wx/string.h:611: note: wxString& wxString::operator=(const wxString&) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:330: error: conflicting return type specified for virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat) /usr/include/wx-2.6/wx/ipcbase.h:85: 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:300: error: no matching function for call to wxTCPConnection::wxTCPConnection(char*&, int&) /usr/include/wx-2.6/wx/sckipc.h:106: note: candidates are: wxTCPConnection::wxTCPConnection(const wxTCPConnection&) /usr/include/wx-2.6/wx/sckipc.h:65: note: wxTCPConnection::wxTCPConnection() /usr/include/wx-2.6/wx/sckipc.h:64: note: 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:412: error: conversion from char* to const wxString is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: 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:474: error: conversion from char* to const wxString is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:534: error: default argument for parameter of type const wxString& has type const char [11] make: *** [out/wxc/ewxw_main.o] Error 1 Any hints? Thanks, Antonio Regidor García ____________________________________________________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Mads <mad...@ya...> - 2007-05-02 23:08:58
|
Hi Antonio Try the Darcs repository. You will properly have better luck with that. I have build the version in the repository on a Debian Etch machine. Try something like: su apt-get update apt-get install darcs libwxgtk2.6-dev xlibmesa-gl-dev xlibmesa-glu-dev exit darcs get http://darcs.haskell.org/wxhaskell cd wxhaskell chmod 755 configure ./configure --with-opengl --prefix=/usr/local make su make install make wx make wx-install then append /usr/local/lib to /etc/ld.so.conf.d/i486... and run ldconfig. Note, that the "make wx"-step also needs to be run as root. Greetings, Mads Lindstrøm > Hi, > > I tried to build wxhaskell 0.9.4 on debian lenny with ghc 6.6 and wxgtk2.6. Configure runs ok, but > make gives the following error: > > 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 > wxc/include/wrapper.h: In constructor ‘ELJDragDataObject::ELJDragDataObject(void*, char*, int > (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*))’: > wxc/include/wrapper.h:172: error: no matching function for call to > ‘wxDataObjectSimple::wxDataObjectSimple(char*&)’ > /usr/include/wx-2.6/wx/dataobj.h:249: note: candidates are: > wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) > /usr/include/wx-2.6/wx/dataobj.h:202: note: > 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 > ‘((ELJTextValidator*)this)->ELJTextValidator::buf = (const char*)_txt’ > /usr/include/wx-2.6/wx/string.h:627: note: candidates are: wxString& wxString::operator=(int) > <near match> > /usr/include/wx-2.6/wx/string.h:846: note: wxString& wxString::operator=(wxChar) > <near match> > /usr/include/wx-2.6/wx/string.h:860: note: wxString& wxString::operator=(const > wxWCharBuffer&) <near match> > /usr/include/wx-2.6/wx/string.h:611: note: wxString& wxString::operator=(const > wxString&) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:330: error: conflicting return type specified for ‘virtual char* > ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’ > /usr/include/wx-2.6/wx/ipcbase.h:85: 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:300: error: no matching function for call to > ‘wxTCPConnection::wxTCPConnection(char*&, int&)’ > /usr/include/wx-2.6/wx/sckipc.h:106: note: candidates are: wxTCPConnection::wxTCPConnection(const > wxTCPConnection&) > /usr/include/wx-2.6/wx/sckipc.h:65: note: wxTCPConnection::wxTCPConnection() > /usr/include/wx-2.6/wx/sckipc.h:64: note: > 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:412: error: conversion from ‘char*’ to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) > <near match> > /usr/include/wx-2.6/wx/string.h:633: note: 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:474: error: conversion from ‘char*’ to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) > <near match> > /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:534: error: default argument for parameter of type ‘const wxString&’ has > type ‘const char [11]’ > make: *** [out/wxc/ewxw_main.o] Error 1 > > Any hints? > > Thanks, > > Antonio Regidor García > > > > ____________________________________________________________________________________ > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: <a_r...@ya...> - 2007-05-03 10:45:13
|
Thanks, it compiled :-) Antonio Regidor García > Try the Darcs repository. You will properly have better luck with that. > I have build the version in the repository on a Debian Etch machine. ____________________________________________________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |