|
From: Wouter S. <ws...@Cs...> - 2005-11-08 23:22:30
|
Dear all,
I've been trying to install wxhaskell on my iBook, so far to no
avail. I'm running 10.4 with Wolfgang Thaller's ghc version 6.4.1 and
XCode 2.1. So far I have managed to build managed to build and
install wxMac 2.6.2 (which oddly enough seems to correspond to
wxwidgets 2.5.3).
Wxhaskell configures as follows:
configuration:
library: wxhaskell-0.9.4 (release 0)
compiler: ghc-6.4.1
wxwidgets: mac-2.5.3
with openGL: no
library dir: /usr/local/wxhaskell/lib
But building gives me the error attached at the bottom of this message.
I tried the binaries provided, but alas:
> ghc -package wx HelloWorld.hs -o hello
HelloWorld.hs:4:0:
Failed to load interface for `Graphics.UI.WX':
Bad interface file: /usr/local/wxhaskell/lib/imports/
Graphics/UI/WX.hi
mismatched interface file versions: expected 6041, found
6040
Any clues as to what's amiss would be greatly appreciated.
Thanks in advance,
--Wouter
Compilation error:
g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/
include/mac-unicode-debug-2.5 -I/usr/include/wx-2.5 -D__WXDEBUG__ -
D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -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: invalid conversion from 'char*' to
'long unsigned int'
wxc/include/wrapper.h:172: error: initializing argument 1 of
'wxDataFormat::wxDataFormat(long unsigned int)'
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.5/wx/string.h:643: note: candidates are: wxString&
wxString::operator=(int) <near match>
/usr/include/wx-2.5/wx/string.h:856: note: wxString&
wxString::operator=(wxChar) <near match>
/usr/include/wx-2.5/wx/string.h:863: note: wxString&
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:919: 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.5/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.5/wx/sckipc.h:106: note: candidates are:
wxTCPConnection::wxTCPConnection(const wxTCPConnection&)
/usr/include/wx-2.5/wx/sckipc.h:65: note:
wxTCPConnection::wxTCPConnection()
/usr/include/wx-2.5/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.5/wx/string.h:659: note: candidates are:
wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.5/wx/string.h:649: 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.5/wx/string.h:659: note: candidates are:
wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.5/wx/string.h:649: note:
wxString::wxString(int) <near match>
make: *** [out/wxc/ewxw_main.o] Error 1
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
|