Currently we are trying to compile Qemu for Xilinx Devices on Ubuntu Machine and we do cross compile it for Windows using Mingw64 by following this link.
Qemu Compiles Successfully when Curses feature is disabled, but when we enable the Curses feature by adding --enable-curses it fail with error
Blockquote ERROR: User requested feature curses configure was not able to find it. Install ncurses devel
when we debug more we find that configure is trying to compile curses before allowing the make with the following command:
/qemu/bin/ndebug/x86_64-w64-mingw32# sys:1: Warning: g_file_test: assertion 'filename != NULL' failed S=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -std=gnu99 -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/p11-kit-1 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -DNCURSES_WIDECHAR -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -no-pie -m64 -fstack-protector-strong -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -Wl,--enable-auto-import -lncursesw
,and this fails with the following error:
config-temp/qemu-conf.c:4:10: fatal error: langinfo.h: No such file or directory
According to gnu langinfo.h is missing on mingw.
So, does anyone knows other way to overcome this issue? should we use packages other than ncurse?(like -> pcurses,...) how to include langinfo.h to mingw? (i searched about it but with no success, i tried to copy all these library to mingw include path, but for sure it fail).
Many thanks for your support in advance and wish you all happy new year
CODESET
lookup. – Thomas Dickey