Alexander Ellwein wrote:
>i have tried to build wxLua with unicode-enabled wxWidgets. It does
not work, because there
>are lots of (const char*) casts, instead of using wxChar* within the
wrappers.
>Is a unicode-enabled version planned or can I get some
proof-of-concept version to try it out?
First off, welcome. I assume that you've checked out the CVS of the
wxlua.sf.net project? It's a bit different than the original wxLua.
We've changed some things and we're in the process of putting it all
back together, but it does work in linux using wxWidgets >=3D 2.6
without error.
To build it.
cd wxLua/apps/wxlua && make # you get an error about bindings
cd wxLua/bindings/wxwidgets && make # build bindings (won't have to do
this soon)
cd wxLua/apps/wxlua && make # hopefully build the rest of the wxLua app
wxLua should compile without error in unicode on the C++ end. The
const char* casts you see are for lua. Lua itself is not unicode aware
so any strings passed between wxWidgets and lua are run through the
two functions wx2lua and lua2wx that convert char to w_char and back
again.
What sort of errors do you get for the unicode build? Post them.
>The other thing is, when I try to build wxLua with the ANSI version
of wxWidgets on FreeBSD
>(4/5/6), it fails with various error messages
Please post a sample of these too (or all of them if they're not just
the same thing over and over again).
> Have someone already tried it on FreeBSD?
I don't think so. What compiler do you use? I assume you can compile
wxWidgets though?
>There are also some GNUmake-specific things in the Makefiles (like
$(MAKE) etc.) which would
>not allow to build it using BSDmake...
I don't know about this, I thought BSD used the GNU tools like gmake and gc=
c?
The things like $(MAKE) aren't really necessary I suppose, but nice.
If you put this in modules/lua/config or at the top of every Makefile
that has $(MAKE) does it work?
MAKE=3Dmake
-------------------------------------------
You can also try using the configure script in the root wxLua dir, I
haven't personally tried this though. Maybe this can get it right.
Regards,
John Labenski
|