Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2021/06/01)Fwd 1 day (to 2021/06/03) >>>20210602 
tkamppeter Hi, trying to build gpdl for my Foomatic Printer Application but have problems with building iut.11:50.38 
  Tryingh with 9.54.011:50.52 
artifexirc-bot <KenSharp> And the problem is ?11:51.39 
tkamppeter When it comes to linking I get a problem with libtiff and/or libdeflate: https://paste.ubuntu.com/p/bmT4vHxBP9/11:52.16 
artifexirc-bot <KenSharp> Are you using shared libraries, or the ones shipped with the GhostPDl source ?11:52.59 
  <Robin_Watts> That looks to me like you're using a system libtiff, which has been built to depend on libdeflate rather than our one which depends on libz.11:55.27 
  <KenSharp> Building from our source, no special config, on Ubuntu works correctly for me11:58.53 
tkamppeter I have used12:13.21 
  ./configure --prefix=/usr --without-x --disable-gtk --enable-freetype --without-tesseract12:13.24 
  Should this not use the internal libtiff?12:13.39 
artifexirc-bot <KenSharp> Beyond my noobn level of expertise.....12:13.59 
  <KenSharp> I suspect you may need Chris, I think he's at lunc at the moment.12:14.17 
  <KenSharp> I can try that config locally though12:14.28 
  <KenSharp> But that may not tell me anything, I'm not sure what the system libtiff on this setup is12:14.52 
  <KenSharp> When you run ./configure, does it run the libtiff configure script ?12:17.04 
  <KenSharp> It certainly appears to be using the llibtiff from the Ghostscript source tree for me12:18.16 
  <KenSharp> Ah, and again, when running configure, what is the value of SHARE_LIBTIFF ?12:18.51 
  <KenSharp> For me its 012:18.54 
tkamppeter It runs ./configure of libtiff: https://paste.ubuntu.com/p/ZQxNBzXfC6/12:23.00 
  And in config.log (of ghostpdl, main dir) SHARE_LIBTIFF is 0.12:23.55 
artifexirc-bot <KenSharp> Then its beyond me, I am not an expert in build systems on Linux12:24.15 
chrisl It's finding both libz and libdeflate - I don't what it does when it finds both12:24.24 
artifexirc-bot <KenSharp> It works for me as expected12:24.28 
tkamppeter chrisl, I cannot simply uninstall libdeflate-dev, as libtiff-dev needs it.12:25.11 
  chrisl, can I inject command line options to the .configure of the built-in libtiff?12:25.46 
chrisl It means changing the invocation of the libtiff configure when it's called from ours.... let me do a quick experiment12:27.09 
  Well, that doesn't appear to be the problem, since it works just fine for me :-(12:29.58 
tkamppeter chrisl, I am on Ubuntu 21.04 (Hirsute).12:30.26 
chrisl I'll have to setup a VM, then12:33.17 
tkamppeter chrisl, could you do so? Great.12:36.35 
chrisl tkamppeter: While that's happening, I should point out that gpdl includes GhostPCL, and that requires (and includes) fonts that are not GPL licensed12:42.06 
tkamppeter chrisl, I will not need the PCL input part for my use case. So I would not build that part of GhostPDL, I only need the CUPS/PWG/Apple Raster input part. By the way, which ./configure options suppress the build for the unneeded input formats (I also would not need TIFF as input format)?12:44.41 
chrisl There isn't one(s)12:48.04 
tkamppeter chrisl, so my use-case of raster-only->GS graphics engine is not (yet) covered? So ghostpdl only builds with a proprietary software blob (which I actually do not need)?12:49.55 
chrisl GhostPDL builds with all the PDLs we support which includes PCL5, which requires fonts that are not available under the (A)GPL12:51.11 
tkamppeter chrisl but can I build it without these fonts and then simply only use it with CUPS/PWG Raster as input? I will only put it in Snaps where users do not call it directly, so no one sees that with PCL input it does not work.12:52.51 
chrisl tkamppeter: Possibly. Frankly we can solve the problem in a few ways, I was wanted to let you know that *right now* the license would be a problem for you12:54.30 
tkamppeter chrisl, in general it would be a great feature for GhostPDL to allow the user to select by ./configure options which input formats he actually wants, especially as we do not only use the classic Debian and RPM packaging where we want to activate as much functionality in the package as we can but we also have the sandboxed/Snap packaging, where each Snap has its dependencies built-in and so we build these dependencies 12:59.32 
  individually for the Snap only activating what the Snap actually needs. For example in the PostScript Printer Application Snap I build Ghostscript with only the ps2write device as there Ghostscript only serves for turning PDF into PostScript.12:59.32 
  For a Printer Application retro-fitting built-in drivers of Ghostscript it makes sense to build a Ghostscript/GhostPDL which takes only PDF and PWG/CUPS/Apple Raster as input.13:01.25 
chrisl For a real printer, it generally means a customized makefile, anyway13:03.08 
tkamppeter Therefore my feature request is to allow selection of supported input formats via ./configure options, for easy creation of sandboxed packages.13:03.11 
chrisl I don't have a problem the idea, I just don't know, off the top of my head, how much work is involved. I'm willing to look at it, when I have the time13:07.08 
tkamppeter chrisl, OK13:07.28 
  chrisl, KenSharp, I think for the Foomatic retro-fit I will go with the encapsulation of the Raster input in PostScript, as this would allow for keeping the foomatic-rip filter unchanged and so lowers the risk of something to break which I cannot test.13:09.16 
chrisl tkamppeter: Personally, I think that is probably for the best. I feel it will give you the most flexibility13:15.45 
  tkamppeter: I do indeed see the build gpdl problem with Ubuntu 21.04 - I'll look into that14:13.16 
  s/build gpdl problem/gpdl build problem14:15.21 
  I do wonder why it doesn't happen on 20.10... but never mind.14:22.32 
Antonio81 Hello everyone17:25.24 
  how are you?17:25.27 
ghostbot mas o menos, Antonio8117:25.27 
artifexirc-bot <KenSharp> had no idea ghostbot spoke other languages17:25.52 
Antonio81 I am getting unrecoverable error exit code 117:26.05 
  but just that, no more info17:26.14 
  is there any log ghostscript writes?17:26.21 
artifexirc-bot <KenSharp> No17:26.27 
  <KenSharp> Everything is sent ro stdout or stderr17:26.40 
  <KenSharp> Everything is sent to stdout or stderr17:26.59 
Antonio81 and if I use gswin64.exe, does it help?17:27.13 
artifexirc-bot <KenSharp> Of course, you haven't quoted the entire back channel, given us a command line, and you may have set things like -dQUIET which would suppress output17:27.31 
Antonio81 im using gswin64c.exe and gs is not printing erros to dos17:27.33 
  huum17:27.45 
artifexirc-bot <KenSharp> I doubt you are using DOS 🙂17:27.46 
  <KenSharp> Possibly you mean the command shell17:27.52 
Antonio81 cmd17:27.54 
  yup17:27.55 
  -sDEVICE=pdfwrite -sDEFAULTPAPERSIZE=a4 -dCompatibilityLevel=1.4 -dBATCH -dNOPAUSE -o %%f.tmmp -f %%f17:28.26 
artifexirc-bot <KenSharp> There is little difference between gswin64c and gswin64. Its just that you can drag-and-drop to the window, and it captures stodut and stderr and writes the output to the window17:28.29 
Antonio81 -q -o %%f.PCL -sDEVICE=ljet4 -dBATCH -dNOPAUSE -f %%f17:28.36 
artifexirc-bot <KenSharp> You appear to have two DEVICE switches17:29.00 
  <KenSharp> You can't do that.17:29.04 
Antonio81 i can17:29.08 
  its working well17:29.10 
  its not the same command17:29.14 
artifexirc-bot <KenSharp> Well if its two different commands and not a follow on you do really need to make that clear17:29.39 
Antonio81 sorry, you are right17:29.50 
  gswin64c.exe -sDEVICE=pdfwrite -sDEFAULTPAPERSIZE=a4 -dCompatibilityLevel=1.4 -dBATCH -dNOPAUSE -o %%f.tmmp -f %%f17:29.57 
artifexirc-bot <KenSharp> And -q is 'queit' so you don't want to do that if you are having a problem17:30.00 
Antonio81 ah f...17:30.17 
artifexirc-bot <KenSharp> Not saying it will help, but its possibly more information17:30.46 
tkamppeter Is there a PostScript command which makes Ghostscript exiting with error code 1 (or any given error code)? I know that one can end Ghostscript with "quit" but this gives exit code 0.19:53.36 
artifexirc-bot <RayJohnston> tkamppeter: Ghostscript exits with 1 after an error, so anything that causes an error will do it. Try: bin/gs -c clear pop ; echo $?21:07.49 
  <RayJohnston> Of course, this will do the message/error_handler for 'stackunderflow", but the exit code is 121:07.49 
  <RayJohnston> If you don't want the message, you could redefine the error handler before doing that, and it will still exit21:08.41 
  <RayJohnston> or you can do: bin/gs -q -dBATCH -sDEVICE=bbox -c 1 1 .quit ; echo $?21:15.25 
  <RayJohnston> that just prints: GPL Ghostscript GIT PRERELEASE 9.55.0: Unrecoverable error, exit code 121:15.51 
  <RayJohnston> (you may not need the -sDEVICE=bbox (my system couldn't open the x11 device, so it gave a different error message)21:16.44 
  <RayJohnston> note that "0 10 quit" will print: GPL Ghostscript GIT PRERELEASE 9.55.0: Unrecoverable error, exit code 10 but still exit with the system exit value of 121:18.54 
  <RayJohnston> note that "0 10 .quit" will print: GPL Ghostscript GIT PRERELEASE 9.55.0: Unrecoverable error, exit code 10 but still exit with the system exit value of 122:31.37 
 <<<Back 1 day (to 2021/06/01)Forward 1 day (to 2021/06/03)>>> 
ghostscript.com #mupdf
Search: