Re: wxEuphoria v0.10.0 - wxeud.e:758

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > Jerry Story wrote:
> > > 
> > > Matt Lewis wrote:
> > > > The other thing you could check is to run ldd on the shared library, to
> > > > see if it might be having problems linking.  The default binary build
> > > > might not work if you don't have the same versions of everything, and 
> > > > would require a rebuild on your machine.
> > > 
> > > This is what happened on ldd.

<snip>

> > 
> I don't know how to use wx-config.
> Typing it and pressing return just gives me a bunch of info
> about wx-config that I'm not smart enough to understand.

Could you please post the output.  It might help me understand and make
it work better.  Specifically, try:

$ wx-config --list

and

$ wx-config --libs

> > You could also try ./configure && make for libwxeu.so after that.
> > 
> > Matt
> 
> Always one more problem.
> 
> .... ~/euphoria/include/wxEuphoria/src$ sudo ./configure && make
> cc -c -o be.o -w -fPIC -fsigned-char -O2 -ffast-math -fomit-frame-pointer be.c
> g++ -c -o wxeu.o -D__WXGTK__     -I. 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.8
> -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
> -I/usr/lib/wx/include/gtk2-unicode-release-2.8
> -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
> -pthread
>  wxeu.cpp
> wxeu.cpp: In function ‘wxString get_string(object)’:
> wxeu.cpp:68: error: call of overloaded ‘wxString(char*&)’ is ambiguous
> /usr/include/wx-2.8/wx/string.h:722: note: candidates are:
> wxString::wxString(const
> wxWCharBuffer&) <near match>
> /usr/include/wx-2.8/wx/string.h:692: note:                
> wxString::wxString(wxChar,
> size_t) <near match>
> /usr/include/wx-2.8/wx/string.h:690: note:                
> wxString::wxString(const
> wxString&) <near match>
> /usr/include/wx-2.8/wx/string.h:682: note:                
> wxString::wxString(int)
> <near match>
> wxeu.cpp: At global scope:
> wxeu.cpp:90: warning: ‘EuEventTypes’ initialized and declared ‘extern’
> make: *** [wxeu.o] Error 1

One thing I note is the wxWCharBuffer.  It looks like it's a unicode 
version of wxWidgets, which kinda makes sense, except that wxEuphoria doesn't
use unicode.  Based on that, I suspect that the names of the shared
libraries are different, so that there's not any conflict.  I'll have to
look into this, to see how difficult it will be to build everything with
unicode, which should make it compatible with the distro default.

> 
> After all this stuff is figured out, the next step will be to automate the
> installation of wxEuphoria together with dependencies, like with apt-get.
> Otherwise most people (especially non-Euphoria people) trying to get a
> wxEuphoria-based program to work will quickly give up.

Yeah, although I think it's pretty obvious now that it's the unicode thing
that's the real problem.  I do have a solution in the pipeline that I think
will work for just about everyone.  I'm looking into making a build of
euphoria (interpreter and translator + runtime) that statically links
with wxWidgets/wxEuphoria.  It'd make for a monstrous executable (3-7MB),
but it would contain all of the wxWidgets stuff, so that the external
dependencies would be minimized, to basically libc++ and gtk2. 

I've got a ways to go before there's something useful, and I'm right in the
middle of moving and being very busy at work...

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu