Author Topic: Xpdf v. 4.05  (Read 8967 times)

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +3/-0
    • View Profile
Xpdf v. 4.05
« on: March 27, 2024, 08:04:21 pm »
Noticed this post;

https://www.os2world.com/forum/index.php?topic=2162.0

Does anymone know if the v. 4.05 cmdline tools for OS/2 are available anywhere?
« Last Edit: April 11, 2024, 10:09:31 pm by Per E. Johannessen »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #1 on: March 27, 2024, 08:54:46 pm »
Tried building 4.05, seems we are missing some printer support. Linking xpdf.exe is missing,
Code: [Select]
W:\usr\local\src\xpdf-4.05\build> __Z8printPDFP6PDFDocP8QPrinteriiP10XpdfWidget
printPDF(PDFDoc*, QPrinter*, int, int, XpdfWidget*)

I'll examine more. Here's the command line tools that did build.
Edit, removed the command line tools in favour of the ones posted down the page.
« Last Edit: March 28, 2024, 03:49:04 am by Dave Yeo »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #2 on: March 27, 2024, 09:23:12 pm »
Built xdpf.exe by disabling printing like Windows does. Unluckily it crashes with a sigsegv in qt5core.dll

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2255
  • Karma: +175/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #3 on: March 27, 2024, 09:44:24 pm »
Built xdpf.exe by disabling printing like Windows does. Unluckily it crashes with a sigsegv in qt5core.dll

Can it build against qt6?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #4 on: March 27, 2024, 10:00:19 pm »
Yes, as long as the correct qmake is in front of the PATH.
At some point could you get a devel package of Qt6 together?
Edit: My cmake line, run from build
Code: [Select]
cmake -DXPDFWIDGET_PRINTING=OFF -DCMAKE_BUILD_TYPE=Release ..

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +3/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #5 on: March 27, 2024, 10:37:14 pm »
Thanks a lot, Dave.

I've only tried pdftotext so far. This version also seems to work fine from VX-Rexx.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #6 on: March 27, 2024, 10:57:32 pm »
Here's the full release version including the crashing xpdf.exe. 7z sure compresses this better, almost 80% improvement. Built with no patches, just the cmake arguments I posted to Paul.

Andy Willis

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +7/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #7 on: March 28, 2024, 03:55:23 am »
Odd when I built 4.04 last March, I did not have any issues with printer support.  I just built 4.04 again and it built fine (though it crashes) but 4.05 fails building due to printer support.  4.04 built with QT6 just fine then as well (though I no longer recall which release that was).

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2255
  • Karma: +175/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #8 on: March 28, 2024, 05:23:05 am »
Hey Dave,

At some point could you get a devel package of Qt6 together?

Not sure what's missing here - the current zips include all headers/libs. If you mean an RPM -  I have no time/inclination to put one together - I have little enough free time as it is.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #9 on: March 28, 2024, 06:34:25 am »
Hey Dave,

At some point could you get a devel package of Qt6 together?

Not sure what's missing here - the current zips include all headers/libs. If you mean an RPM -  I have no time/inclination to put one together - I have little enough free time as it is.

I thought that some of the libs were missing. Perhaps it is plugins where the import libs are missing.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2255
  • Karma: +175/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #10 on: March 28, 2024, 08:11:24 am »
Hey Dave,

At some point could you get a devel package of Qt6 together?

Not sure what's missing here - the current zips include all headers/libs. If you mean an RPM -  I have no time/inclination to put one together - I have little enough free time as it is.

I thought that some of the libs were missing. Perhaps it is plugins where the import libs are missing.

It *should* all be there - if you find an example, lemme know and I can investigate.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5035
  • Karma: +114/-1
    • View Profile
Re: Xpdf v. 4.01
« Reply #11 on: March 28, 2024, 03:18:56 pm »
Tried building Dooble,
Code: [Select]
[K:\work\dooble-dry\build]qmake ../dooble.pro
L:/QT6-6.2.X/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
Project ERROR: failed to parse default search paths from compiler output

TeLLie

  • Full Member
  • ***
  • Posts: 239
  • Karma: +12/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #12 on: April 01, 2024, 09:11:39 pm »
Hi all,

I compiled 4.05 with qt6 and  print support.
I have no printer so i could not test it, i print to a pdf and that worked.

Maybe some braveheart could test it.

Kind regards, Tellie

David McKenna

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +25/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #13 on: April 02, 2024, 12:29:56 am »
TeLLie!

 Fear not - your build works, printing too! (on an Epson XP-830) Thanks...

Regards,

TeLLie

  • Full Member
  • ***
  • Posts: 239
  • Karma: +12/-0
    • View Profile
Re: Xpdf v. 4.01
« Reply #14 on: April 02, 2024, 07:12:15 am »
Thanks David,

I will see if I can bake a rpm of it, when time persist.

Kind regards, Tellie