我需要分别使用 ncursesw5 和 ncursesw6 交叉编译程序。我在 ncursesw6 附带的 Debian Buster 中。于是我跑了apt install libncursesw5:i386 libncursesw5-dev:i386
。
然后我试图跑
./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32 /usr/lib/i386-linux-gnu/libncursesw.so.5"
但是,当我运行时,ldd ./program
我得到了两个库。
linux-gate.so.1 (0xf7f8c000)
libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xf7e91000)
libncurses.so.6 => /lib/i386-linux-gnu/libncurses.so.6 (0xf7e49000)
libtinfo.so.6 => /lib/i386-linux-gnu/libtinfo.so.6 (0xf7e20000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7c21000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7c1b000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xf7bf6000)
/lib/ld-linux.so.2 (0xf7f8e000)
这是 dpkg 看到的:
$ dpkg -l | grep curses
ii libncurses-dev:amd64 6.1+20181013-2+deb10u2 amd64 developer's libraries for ncurses
ii libncurses-dev:i386 6.1+20181013-2+deb10u2 i386 developer's libraries for ncurses
ii libncurses5:i386 6.1+20181013-2+deb10u2 i386 shared libraries for terminal handling (legacy version)
ii libncurses6:amd64 6.1+20181013-2+deb10u2 amd64 shared libraries for terminal handling
ii libncurses6:i386 6.1+20181013-2+deb10u2 i386 shared libraries for terminal handling
ii libncursesw5:i386 6.1+20181013-2+deb10u2 i386 shared libraries for terminal handling (wide character legacy version)
ii libncursesw5-dev:amd64 6.1+20181013-2+deb10u2 amd64 transitional package for libncurses-dev
ii libncursesw5-dev:i386 6.1+20181013-2+deb10u2 i386 transitional package for libncurses-dev
ii libncursesw6:amd64 6.1+20181013-2+deb10u2 amd64 shared libraries for terminal handling (wide character support)
ii libncursesw6:i386 6.1+20181013-2+deb10u2 i386 shared libraries for terminal handling (wide character support)
ii ncurses-base 6.1+20181013-2+deb10u2 all basic terminal type definitions
ii ncurses-bin 6.1+20181013-2+deb10u2 amd64 terminal-related programs and man pages
ii ncurses-term 6.1+20181013-2+deb10u2 all additional terminal type definitions
我只能找到一组包括:
$ ls /usr/include/ncurses
ncurses_dll.h ncurses.h ncursesw/
有什么线索吗?谢谢