From: Emiliano <emi...@gm...> - 2024-06-09 16:13:35
|
Hi Schelte, thanks for testing !! > Great work, thanks. I have tried this on SUSE 15.4 with the following > results: > > ../unix/configure reports (among other things): > checking whether to use libcups... yes > checking for cups/cups.h... no > > The make command then fails with: > ../unix/tkUnixPrint.c:16:10: fatal error: cups/cups.h: No such file or > directory > #include <cups/cups.h> There was a small typo in the check (cups -> libcups) that should be fixed now. I've not regenerated the configure script, just changed configure.ac > So it seems the configure check for cups availability is not foolproof > (me acting as the fool). > > After installing cups-devel (zypper in cups-devel), everything builds > fine. The dialog looks great and correctly shows my printer. I missed > the option to print to a file, which is normally present in a print > dialog. But that option is also not available in the scripted version. > So this is not a deficiency of the compiled version. Default GTK print dialog allows print to file, but others doesn't. This is toolkit dependent. For a generic solution, there is a generic pdf printer which outputs a pdf file in $env(HOME)/PDF directory by default. This printer is also good for testing without wasting ink and paper. > I haven't actually tried printing. My understanding is that the request > was only to check the dialog. The dialog should be there, and print, even if you don't have CUPS development files installed. There's an [exec] based implementation as fallback in this case. Expect it to be *way* slower but fully functional. Thanks for testing. -- Emiliano |