[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make fails in intl when trying to cross-compile for mingw32
From: |
David Bruce |
Subject: |
make fails in intl when trying to cross-compile for mingw32 |
Date: |
Tue, 23 Oct 2007 14:11:35 -0400 |
User-agent: |
KMail/1.9.7 |
Hi,
I'm trying to add i18n support to a linux-based project that I also crossbuild
for Windows using the mingw32 cross-tools in Debian. I ran gettextize --intl
(v. 0.16.1) to add the intl dir to the project. When I try to build for
Windows, make fails in intl as follows:
Making all in intl
make[2]: Entering directory `/home/dbruce/tux4kids/tuxmath/trunk/intl'
i586-mingw32msvc-gcc -c
-DLOCALEDIR=\"/usr/local/cross-tools/i586-mingw32msvc/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/cross-tools/i586-mingw32msvc/share/locale\"
-DLIBDIR=\"/usr/local/cross-tools/i586-mingw32msvc/lib\" -DBUILDING_LIBINTL
-DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/usr/local/cross-tools/i586-mingw32msvc/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I.
-I.. -I/usr/local/cross-tools/i586-mingw32msvc/include -idirafter
/usr/local/cross-tools/i586-mingw32msvc/include/glibc -g -O2 -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D__GW32__ -fvisibility=hidden
localename.c
localename.c: In function ‘_nl_locale_name_default’:
localename.c:1145: error: duplicate case value
localename.c:1144: error: previously used here
localename.c:1359: error: duplicate case value
localename.c:1358: error: previously used here
localename.c:1367: error: duplicate case value
localename.c:1366: error: previously used here
make[2]: *** [localename.o] Error 1
make[2]: Leaving directory `/home/dbruce/tux4kids/tuxmath/trunk/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dbruce/tux4kids/tuxmath/trunk'
make: *** [all] Error 2
The duplicate case values are in the SUBLANG switch (sub) statements, two of
which are shown here:
case LANG_PUNJABI:
switch (sub)
{
case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */
case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */
}
return "pa";
case LANG_RHAETO_ROMANCE: return "rm_CH";
case LANG_ROMANIAN:
switch (sub)
{
case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO";
case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD";
}
return "ro";
If I comment out the lines for the three errors, the project builds
successfully (I haven't yet gotten to the point of seeing if any translations
work under Windows).
Any hints? - thanks.
--
David Bruce
- make fails in intl when trying to cross-compile for mingw32,
David Bruce <=