OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: Per E. Johannessen on March 27, 2024, 08:04:21 pm

Title: Xpdf v. 4.05
Post by: Per E. Johannessen 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?
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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.
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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
Title: Re: Xpdf v. 4.01
Post by: Paul Smedley 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?
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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 ..
Title: Re: Xpdf v. 4.01
Post by: Per E. Johannessen 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.
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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.
Title: Re: Xpdf v. 4.01
Post by: Andy Willis 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).
Title: Re: Xpdf v. 4.01
Post by: Paul Smedley 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.
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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.
Title: Re: Xpdf v. 4.01
Post by: Paul Smedley 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.
Title: Re: Xpdf v. 4.01
Post by: Dave Yeo 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
Title: Re: Xpdf v. 4.01
Post by: TeLLie 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
Title: Re: Xpdf v. 4.01
Post by: David McKenna on April 02, 2024, 12:29:56 am
TeLLie!

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

Regards,
Title: Re: Xpdf v. 4.01
Post by: TeLLie 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


Title: Re: Xpdf v. 4.01
Post by: Dave Yeo on April 02, 2024, 07:58:53 am
Hi Tellie, how did you get cmake to find L:\qt6-2.x\lib\cmake\Qt6 for the IMPORTED_IMPLIB's for the various QT6 DLL's?
Title: Re: Xpdf v. 4.01
Post by: TeLLie on April 02, 2024, 11:17:57 am
Hi Tellie, how did you get cmake to find L:\qt6-2.x\lib\cmake\Qt6 for the IMPORTED_IMPLIB's for the various QT6 DLL's?

Hi Dave,
I use a .sh file for building cmake progs.
When using qt6 i have to reboot and use a qt6 config.sys with a qt6 bindir and libdir and includedir set
This worked for me the best.
I might sounds a bit cumbersome, but like i say works for me :)

BTW: I also convert the qt6 .a to .lib
Kind regards, Tellie





Title: Re: Xpdf v. 4.01
Post by: TeLLie on April 04, 2024, 05:06:41 pm
Hi all

Also make a QT5 build

Title: Re: Xpdf v. 4.01
Post by: mauro on April 04, 2024, 07:20:18 pm
trying it as command line:

mypdffile.pdf present in same working directory (bin) of xpdf.exe and other .exe

xpdf.exe mypdffile.pdf

SYS1804: The system cannot find the file PAPER1.

found no reference on the net about this missing file
Title: Re: Xpdf v. 4.01
Post by: TeLLie on April 04, 2024, 08:56:55 pm
trying it as command line:

mypdffile.pdf present in same working directory (bin) of xpdf.exe and other .exe

xpdf.exe mypdffile.pdf

SYS1804: The system cannot find the file PAPER1.

found no reference on the net about this missing file

Hi Mauro


Installed Packages
libpaper.pentium4
libpaper-devel.pentium4


Kind regards, Elbert
Title: Re: Xpdf v. 4.01
Post by: Martin Iturbide on April 04, 2024, 09:59:13 pm
Hello Tellie

Is it ok if I upload "xpdf-4.05-qt5-os2.7z " to hobbes with this readme?

Regards
Title: Re: Xpdf v. 4.01
Post by: TeLLie on April 04, 2024, 10:20:32 pm
Hello Tellie

Is it ok if I upload "xpdf-4.05-qt5-os2.7z " to hobbes with this readme?

Regards

Hi Martin,

Yah thats ok for me :)
Title: Re: Xpdf v. 4.01
Post by: mauro on April 05, 2024, 02:36:53 pm
.............
SYS1804: The system cannot find the file PAPER1.

found no reference on the net about this missing file

Hi Mauro

Installed Packages
libpaper.pentium4
libpaper-devel.pentium4

Kind regards, Elbert

right, that did the trick ! Thank you much
regards