Want to compile wide-char dialog
March 31, 2011 —
BarryK
The 'dialog' utility is used in all puppies. Home page:
http://invisible-island.net/dialog/
Over the years I ave tried many times to compile this with wide-character support. But failed.
It should be configured something like this:
# ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin --libdir=/lib --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --enable-nls --with-ncursesw --enable-widec
...however I always get compile errors.
I checked, T2 compiles it with the libncurses library only (not libncursesw). Weirdly, the Debian dialog package specifies libncursesw as dependency, but when I ran 'ldd ./dialog' on the .deb binary I found it is linked against only libncurses.
So, where to go from here... I could complain to the developer I suppose...
Comments
dialog utf8Username: L18L
got it running, a bit weird anyhow. sample/yesno-utf8 used for test configured --with-ncurses then included '#include <intl.h>' in yesno.c (don't ask me why)resulted in error, of course. configured --with-ncursesw, see screenshot make results in error <intl.h> deleted that intl.h line in yesno.c and make was successful. Hope that helps although a bit weird. Was working in wary503q. [img=http://www.extra-inter.net/dialog/UTF-8.png]screenshot dialog utf8[/img]
image
Username: L18L
"[img]http://www.extra-inter.net/dialog/UTF-8.png[/img] sorry, image should display now?
curses.h
Username: lluamco
"Barry, I have checked that compilation is OK in Quirky provided you copy the file /usr/include/ncursesw/curses.h to /usr/include/curses.h The output of ldd ./dialog confirms it is linked against libncursesw I hope that helps.
curses.h confirmed
Username: L18L
"lluamco, you have saved me from a sleepless night. I was trying to reproduce my compilation without success. Then I saw your post. copy, configure make make install and yesno-utf was working. So it is confirmed in wary, too.
Re PPM
Username: BarryK
"GCMartin, What do you mean by "PPM screen scaling"? If you mean the old problem of being unable to resize the PPM window, that was fixed. In Configure window in PPM, choose "ziggie" user interface.
Blind date?
Username: Sage
"32Mar2011, or maybe even 60Feb2011? Like it!
Tags: puppy