[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gettext on win(woe)32
From: |
David Bruce |
Subject: |
Gettext on win(woe)32 |
Date: |
Tue, 27 Nov 2007 13:48:22 -0500 |
User-agent: |
KMail/1.9.7 |
Hi,
"Woe" is me, so far.
My program works fine with gettext on Linux.
Under WinXP, it runs fine in English, or if I use "set LANG=xx_XX" to some
language without a .gmo file.
If, for example, I use "set LANG=nn_NO" (a supported lingua), the program
terminates immediately at the first call of gettext(). Thus, I believe the
path to the locale directory is set correctly. Windows displays a dialog
saying my program encountered an error and had to terminate, but does not
print any useful output to the command line nor to the stdout.txt or
stderr.txt files.
I cross-build the Windows version of my program on Debian using Debian's
cross-tools package and libgw32c.a. My program has its own intl directory
after running gettextize on it.
So, I am wondering if the intl lib is getting built and linked into my app, or
if I need other dll's for gettext to work.
When I configure the cross-build, some possibly relevant output:
address@hidden:~/tux4kids/tuxmath/trunk$ ./cross-configure.sh
configure: creating cache cross-config.cache
checking build system type... i386-pc-linux-gnu
checking host system type... i586-pc-mingw32msvc
checking build system type... (cached) i386-pc-linux-gnu
checking target system type... i586-pc-mingw32msvc
...
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
...
checking for iconv... no, consider installing GNU libiconv
checking for NL_LOCALE_NAME macro... no
...
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking whether to use NLS... yes
checking where the gettext function comes from... included intl directory
And the linking at the end of "make" appears to link in intl:
i586-mingw32msvc-gcc -Wall -g -DDATA_PREFIX=\"data\" -DDEBUG
-DVERSION=\"tuxmath-1.5.9\" -DSOUND -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D__GW32__ -L/usr/local/cross-tools/i586-mingw32msvc/lib -o
TuxMath.exe tuxmath.o setup.o titlescreen.o game.o options.o credits.o
highscore.o loaders.o audio.o mathcards.o fileops.o ConvertUTF.o SDL_extras.o
lessons.o ../intl/libintl.a -lmingw32 -lSDLmain -L/usr/lib -lSDL -lSDL_image
-lSDL_mixer -lSDL_ttf -lgw32c -luuid -lole32 -lwsock32 -mwindows
Any thoughts on how to debug this or where I can find more info on
gettext/woe32 would be appreciated. Also, if there is another
gettext-related list that is more geared to the end programmer, I'd be happy
to post my questions there. I realize this may have more to do with windows
lib/dll/portability issues than with gettext per se.
--
David Bruce
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Gettext on win(woe)32,
David Bruce <=