Author Topic: Installing CUPS on MCP  (Read 2043 times)

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #15 on: January 16, 2025, 02:22:00 pm »
Alex is installing CUPS in MCP or ECS even worth the trouble ? As I seem to recall the that the postscript driver in ArcaOS has had extensive updates, this also includes PIN.EXE.
A lot of the postscript PPD files with PIN.EXE would just crash because of bad coding.
Is that correct Alex ?

That's true of the old IBM PSCRIPT driver, but since Neil is installing PSPRINT that should be moot. 

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1090
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #16 on: January 17, 2025, 04:49:42 am »
You may need to add the path to the correct CUPS install as a parameter to cupswiz.exe.

Regarding the trap, the only thing I can think of is the PSPRINT install is broken somehow. 

If you go into PrintMan and choose File -> Manage presentation drivers, what does the entry for PSPRINT report? In particular the Version and Status columns.  Next, if you double-click on the PSPRINT entry, does it pop up its list of supported printers?

I think you are correct about the path to the cups install. If I give CUPSWIZ C:\usr as a parameter, I get a list of printers.

The process goes well until I say create printer, then I get the VX-REXX error shown earlier in the thread.

If I select Manage presentation drivers, then the list is blank. So something is wrong with PSPRINT install.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1090
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #17 on: January 17, 2025, 05:26:18 am »
I installed PSPRINT using Manage Printers, and now I get an entry in the presentation drivers list.

When I create my printer, I get a new error message; screenshot is attached.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Remy

  • Hero Member
  • *****
  • Posts: 783
  • Karma: +12/-1
    • View Profile
Re: Installing CUPS on MCP
« Reply #18 on: January 17, 2025, 05:39:39 am »
Do you have the unlock command into path  statement ?

ivan

  • Hero Member
  • *****
  • Posts: 1614
  • Karma: +20/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #19 on: January 17, 2025, 09:07:52 am »
What printer are you trying to get to work with cups?

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1090
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #20 on: January 17, 2025, 04:25:49 pm »
With unlock.exe provided from HobbesArchive, the printer creation now fails this way. It's an HP Color Laserjet Pro M252, which works pretty well under ArcaOS. My goal is to get Manage Printers, CupsWiz and PSPRINT to work under MCP, and eventually under Warp 4.

(The screen shot says see CupsWiz.L1. Scroll down to the end of CupsWiz.L1 to see the most recent errors.)

I see ArcaOS has a more recent unlock.exe than HobbesArchive.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #21 on: January 18, 2025, 03:48:48 pm »
With unlock.exe provided from HobbesArchive, the printer creation now fails this way. It's an HP Color Laserjet Pro M252, which works pretty well under ArcaOS. My goal is to get Manage Printers, CupsWiz and PSPRINT to work under MCP, and eventually under Warp 4.

(The screen shot says see CupsWiz.L1. Scroll down to the end of CupsWiz.L1 to see the most recent errors.)

It's failing when it attempts to run prntobj.exe to create the WPS printer object and queue.  The error from prntobj.exe should be recorded in cupswiz.l2 (in the same directory as cupswiz.l1). That should tell us which API function call in prntobj actually failed.  (prntobj.exe comes with cupswiz and is installed in the same directory.)

FWIW the exact command it's running should be:
Code: [Select]
prntobj HPCOLOR1 CUPS3 "PSPRINT.HP Color LaserJet M552" "HP Color LaserJet M552"
It seems the actual error code the OS/2 spooler is returning is 5, which is an Access Denied error. I'm not sure what would cause that.

By the way, do make sure that C:\OS2\DLL\PSPRINT\PSPRINT.DRV has all its extended attributes (the output from 'dir' should show about 20Kb of EAs).  In general, printer drivers will break horribly if they lose their EAs, because they contain a lot of essential information.

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #22 on: January 18, 2025, 03:55:38 pm »
BTW, one possible problem is that, if your previous actions created a partial but incomplete setup (e.g. a WPS printer object without a print queue, an orphaned print queue without a printer object, or something else along those lines) then I could see the spooler getting upset when it tries to create a new object with the same queue name.

ISTR there was a command-line tool from FaxWorks that could purge broken print configs if the system got into such a state. It might be worth trying that to make sure you're starting clean.

Tom

  • Full Member
  • ***
  • Posts: 216
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #23 on: January 18, 2025, 07:27:32 pm »
ISTR there was a command-line tool from FaxWorks that could purge broken print configs if the system got into such a state. It might be worth trying that to make sure you're starting clean.

You mean prndrv.exe ? Can be found at Hobbes: http://hobbesarchive.com/Home/Download?path=/Hobbes/pub/os2/util/printer/PrnDrv_2000-01-16.zip