Hi, I'm sending this message to both wine-users and wine-devel in hopes of getting help from someone with knowledge of Wine's internals.
I've had this problem for a while, but only recently have I realized that I better fix it soon! I compile my own Wine out of git. Currently, I'm running wine-0.9.29-g5441536 but this issue appeared long before that. Moreover, I stopped being able to print between Wine updates, so I don't think it is anything to do with changes in Wine's code. The simplest way to reproduce my problem is try printing in notepad. First, I open notepad: $ WINEDEBUG=+winspool wine notepad trace:winspool:WINSPOOL_EnumPrinters Found 0 printers trace:winspool:WINSPOOL_EnumPrinters Found 0 printers
Next, I type some text. Then I go to "File -> Printer Setup". Wine outputs this to the console:
trace:winspool:WINSPOOL_EnumPrinters Found 0 printers fixme:winspool:WINSPOOL_EnumPrinters We don't handle PRINTER_ENUM_CONNECTIONS
and I see a message box saying: "Before you can perform printer-related tasks such as page setup or printing a document, you need to install a printer. Please install one and retry."
I've tried deleting and re-creating my ~/.wine multiple times. I know that wine is compiled with CUPS support $ ~/apps/wine-git/configure --x-libraries=/emul/linux/x86/usr/lib/ LDFLAGS="-L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib" --without-libcapi20 --without-libhal --without-libicu --without-libldap --without-libsane > /tmp/wine-config $ grep -i cups /tmp/wine-config checking cups/cups.h usability... yes checking cups/cups.h presence... yes checking for cups/cups.h... yes checking for -lcups soname... libcups.so
I have a local CUPS printer installed on my system: $ lpstat -t scheduler is running system default destination: HPDeskjet710c device for HPDeskjet710c: parallel:/dev/lp0 HPDeskjet710c accepting requests since Thu Jan 18 20:26:33 2007 printer HPDeskjet710c is idle. enabled since Thu Jan 18 20:26:33 2007
and I am able to print to it from other Linux applications.
I considered tracing the winespool code ot see where it fails to find my printer, but it looks way too cryptic for my uninitiated eyes.
Any help would be appreciated.
-- Libre Software: http://www.gnu.org/philosophy/free-sw.html
Michael [Plouj] Ploujnikov wrote:
You know.. you are not the only one with this problem. I don't print all that often and for the life of me I cannot remember the last time I tried. but I know that it has worked for me in the past. I am using Suse 10.2 and I am not sure that it has ever worked with this distro. I was using Fedora Core for quite a while and I know it worked using that.
There is a bug that seems related to this.
http://bugs.winehq.org/show_bug.cgi?id=7060
--
Tony Lambregts
On Sa, 2007-01-20 at 23:15 -0500, Michael [Plouj] Ploujnikov wrote:
$ WINEDEBUG=+winspool wine notepad trace:winspool:WINSPOOL_EnumPrinters Found 0 printers
wine loads libcups.so to get the list of installed printers, but the command "lpr" is still needed to do the printing.
You must see this line in your log: trace:winspool:CUPS_LoadPrinters loaded libcups.so.2 trace:winspool:CUPS_LoadPrinters Found 3 CUPS printers:
I know that wine is compiled with CUPS support
This looks like a 64Bit machine. Are you sure, that wine can load cups as 32Bit lib?
checking for -lcups soname... libcups.so
This is "libcups.so.2" here. My system has "libcups.do" as a link to "libcups.so.2"
device for HPDeskjet710c: parallel:/dev/lp0
Here without problems: device for Z11: parallel:/dev/lp0
I considered tracing the winespool code ot see where it fails to find my printer, but it looks way too cryptic for my uninitiated eyes.
The function is: static BOOL CUPS_LoadPrinters(void)
You can reach me on #winehackers as "winspool" (GMT + 1h)