于 2011/7/7 20:16, PcX 写道:
于 2011/7/7 19:23, Bruno Haible 写道:
Hi,
I want to build libiconv using mingw gcc on msys from latest git.
Take a look at README.woe32. It recommends to use Cygwin, *not* MSYS, as
a build environment.
But I use "./autogen.sh" first, and some errors came out:
You can also run ./autogen.sh and create a tarball on a Unix machine,
transfer that tarball to the Windows machine and run configure there.
This has higher chances of working than to try to do everything on the
Windows machine. Especially with a build environment that is as broken as
MSYS is.
Bruno
Hi,
Thanks for your reply.
I change to cygwin, then autogen is fine, but then make, there
is some errors:
cd lib && make all
make[1]: Entering directory `/e/new/gcc/libiconv/build/lib'
/bin/sh ../libtool --mode=compile gcc -I. -I. -I../include
-I./../include -I.. -I./.. -g -O2 -fvisibility=hidden
-DLIBDIR=\"/mingw/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/mingw/lib\"
-DNO_XMALLOC
-Dset_relocation_prefix=libiconv_set_relocation_prefix
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
libtool: compile: gcc -I. -I. -I../include -I./../include -I..
-I./.. -g -O2 -fvisibility=hidden -DLIBDIR=\"/mingw/lib\"
-DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1
-DIN_LIBRARY -DINSTALLDIR=\"/mingw/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libiconv_set_relocation_prefix
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
-DDLL_EXPORT -DPIC -o .libs/iconv.o
In file included from ./loops.h:23:0,
from ./iconv.c:136:
./loop_unicode.h: In function 'unicode_transliterate':
./loop_unicode.h:124:34: error: 'translit_data' undeclared (first
use in this function)
./loop_unicode.h:124:34: note: each undeclared identifier is
reported only once for each function it appears in
./iconv.c: At top level:
./iconv.c:594:5: warning: '_libiconv_version' redeclared without
dllimport attribute: previous dllimport ignored [-Wattributes]
make[1]: *** [iconv.lo] Error 1
make[1]: Leaving directory `/e/new/gcc/libiconv/build/lib'
make: *** [all] Error 2
--
Best Regards,
PcX
And I check the lib/translit.h, its content is empty.
--
Best Regards,
PcX
|