> Date: Wed, 5 Dec 2007 06:29:53 -0500
> From: David Bruce
> Subject: Re: [Mingw-users] Cross-compiling for Win32 on Linux -
> gettext usable??.
> To: MinGW Users List
> Content-Type: text/plain; charset=3D"iso-8859-1"
> On Wednesday 05 December 2007 05:02:20 am John Brown wrote:
>> David Bruce wrote:
>> Your post was very vague. It is never enough to say "It's not working!
>> Help!", so:
> Of course - I was first trying to determine whether this is an appropriat=
> list for my questions.
>> 1) When you say that you "have not been able to get the crossbuild to
>> work", what do you mean, exactly?
> The windows build compiles without problems. It runs fine in English, or =
> set the language to something like Swahili that isn't a translation for m=
> program. If I use "set LANG=3Dxx_XX" to set the language to anything incl=
> in my collection of .mo files, the program terminates immediately at the
> first call of gettext(). Windows displays a dialogue saying my program
> terminated unexpectedly, and nothing helpful gets written to the stderr.t=
>> 2) Did you compile gettext yourself with your cross-compiler? Of course,
>> your cross-compiler cannot link to your Debian gettext.
> My program has its own intl directory (created by gettextize), which cont=
> gettext() and I followed the gettext docs to tell the build to use it rat=
> than a separate libintl. However, I haven't done anything in the build to
> link in libiconv, which I think may be the problem. Just copying icon.dll=
> the same folder as the rest of the dll's used by my program (SDL.dll, etc=
> did not fix the problem.
gettext will work without iconv, and if your mo files are in UTF-8 and your
locale is in UTF-8, you might not need iconv at all -- I haven't tried this=
I'm only thinking it should work fine.
But, you might have trouble if your local intl directory is being compiled
and linked against your host glibc iconv calls -- is that possible? (Discla=
I know next-to-nothing about cross-compiling.)
There is a configure switch to disable iconv, as I recall, but I don't reca=
about disabling the intl subdirectory use of iconv.
But, it might be covered in the bootstrap docs for gettext and iconv; I rem=
you have to build gettext first (with no iconv), then iconv (with gettext),=
finally gettext again (to have iconv).=20
Put your friends on the big screen with Windows Vista=AE + Windows Live=99.