How to compile gettext on MSYS2 using x86_64-W64-mingw32-gcc

Asked

Viewed 72 times

1

I am doing a series of recompilations to build a custom QEMU for my microcontroller studies, I have succeeded in compiling some packages up to gettext, after reading all the instruction files in your directory and searching the internet for advice and tips, besides reading scripts that apparently would be a success yet could not pass the make.

I followed the following steps

git clone git://git.savannah.gnu.org/gettext.git
cd gettext
git checkout v0.19.8.1
GNULIB_SRCDIR=../gnulib \
        GNULIB_TOOL=../gnulib-tool \
        ./autogen.sh
mkdir build
cd build
../configure \
    --host=x86_64-w64-mingw32 \
    --prefix=/mingw64 \
    --with-gnu-ld \
    --without-bzip2 \
    --without-xz \
    --without-emacs \
    --without-lispdir \
    --without-cvs \
    --disable-doc \
    --disable-java \
    --disable-native-java \
    --disable-c++ \
    --disable-libasprintf \
    --disable-openmp \
    --disable-csharp \
    --enable-threads=win32 \
    --enable-relocatable \
    --build=x86_64-w64-mingw32
make

When running make after a few minutes, both make and configure naturally take a few good minutes to complete, I get the following error message:

libtool: compile:  no -DHAVE_CONFIG_H -DEXEEXT=\".exe\" -DEXEEXT=\".exe\" -DEXEEXT=\".exe\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -DGNULIB_DEFINED_ERROR -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -I./libcroco -c ../woe32dll/c++html-styled-ostream.cc  -o ../woe32dll/.libs/c++html-styled-ostream.o
../libtool: line 1779: no: command not found
make[5]: *** [Makefile:3202: ../woe32dll/c++html-styled-ostream.lo] Error 1
make[5]: Leaving directory '/c/Users/consu_000/workspace/workspace_ARM_Studies/qemu-delfino/gettext2/gettext-tools/gnulib-lib'
make[4]: *** [Makefile:2618: all] Error 2
make[4]: Leaving directory '/c/Users/consu_000/workspace/workspace_ARM_Studies/qemu-delfino/gettext2/gettext-tools/gnulib-lib'
make[3]: *** [Makefile:2028: all-recursive] Error 1
make[3]: Leaving directory '/c/Users/consu_000/workspace/workspace_ARM_Studies/qemu-delfino/gettext2/gettext-tools'
make[2]: *** [Makefile:1894: all] Error 2
make[2]: Leaving directory '/c/Users/consu_000/workspace/workspace_ARM_Studies/qemu-delfino/gettext2/gettext-tools'
make[1]: *** [Makefile:413: all-recursive] Error 1
make[1]: Leaving directory '/c/Users/consu_000/workspace/workspace_ARM_Studies/qemu-delfino/gettext2'
make: *** [Makefile:369: all] Error 2

I have made several attempts, and I have received other messages, but this is the one I received in the initial attempt.

The interesting thing is to complain about the absence of the command on, I do not know this command, and in the searches I did in Google I did not have healthy results say.

I wonder where my mistake is, and how to fix it?

  • Adding as an observation, that I can compile the code using the configure script in the gettext/gettext-Runtime folder, so getting the same problem when I try psta gettext or gettext/gettext-tool, will this be the right way?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.