I am trying to compile i3 version 4.14.1 under Cygwin 2.884 (Windows 7). I have installed needed libiconv library via Cygwin setup but while running ./configure I get this error:
configure: error: in `/home/msamec/Downloads/i3-4.14.1/x86_64-unknown cygwin': configure: error: cannot find the required iconv_open() function despite trying to link with -liconv See `config.log' for more details
Any clue what can I do to help it find the library?
I have tried to compile the library libiconv-1.13.1 manually but I have encountered some errors I don't know how to resolve:
libtool: link: /bin/gcc -shared .libs/localcharset.o .libs/relocatable.o -o .libs/cygcharset-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libcharset.dll.a .libs/relocatable.o: In function `DllMain': /home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324: undefined reference to `cygwin_conv_to_posix_path' /home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324:(.text+0x113): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path' collect2: error: ld returned 1 exit status make: *** [Makefile:59: libcharset.la] Error 1 make: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset/lib' make: *** [Makefile:34: all] Error 2 make: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset' make: *** [Makefile:42: lib/localcharset.h] Error 2
I have grepped the iconv_open() function name and found it in the cygwin folder
and also in the libiconv folder
But for some reason the configure script is not able to find it.
Here is my config.log
Here is my iconv.h https://gist.github.com/anonymous/0b117d1680954d591f989256b508bfc5
I have checked where is this libary file inconv.h located on Ubuntu. Unlinke in cygwin it is in /lib/ while in cygwin it is here /usr/include/. Tried copying the library to that location but that did not help either. I was able to reproduce the issue on my home Windows 10 as well.
EDIT: Here is the configure file that I am using: enter link description here