[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Compiling iconv 1.14 and gettext for Win

From: Michele Locati
Subject: [Mingw-cross-env-list] Compiling iconv 1.14 and gettext for Windows
Date: Fri, 1 Jul 2016 17:49:13 +0200

Hi all,

I'm pretty new to mxe (before I used the mingw32 and mingw-w64 ubuntu packages).

I'm trying to build iconv.exe and the gettext tools (msgcat.exe, msgfmt.exe, ...) and I wrote this script (run on a clean Ubuntu server 16.04): https://github.com/mlocati/gettext-iconv-windows/tree/mxe

The first problem I met by following the instructions at http://mxe.cc/#tutorial is that the built files should be placed in the directory specified by PKG_CONFIG_PATH (or in PKG_CONFIG_PATH_i686_w64_mingw32_shared for instance when building for 32-bit shared).
From my tests, that's not the case: I had to specify --prefix when running configure.

Furthermore, I tried to compile all the combinations (32/62 bit, shared/static), but everything gets compiled only for 64 bit shared.

Here's the problems for the other 3 combinations:

### building in 32-bit shared
- libiconv builds (iconv.exe, libcharset-1.dll and libiconv-2.dll are created)
- gettext fails (errors: "undefined reference to `_imp__exit_failure'", "undefined reference to `_imp__argmatch_die'", ...)

### building in 32-bit static
- libiconv builds (iconv.exe is created)
- gettext fails (errors: "undefined reference to `_imp__xmlFree'")

### building in 64-bit static
- libiconv builds
- gettext fails (errors: "undefined reference to `_imp__xmlFree'")

Does anyone have a clue about what I could do to fix this?

Thanks a lot,

PS: once everything will work, I'll publish the binaries at https://mlocati.github.io/gettext-iconv-windows/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]