Amazon Linux 2023

213 views
Skip to first unread message

John Guilmartin

unread,
Apr 11, 2023, 4:46:50 PM4/11/23
to wkhtmltopdf General
How can we build this for Amazon Linux 2023?

Ashish Kulkarni

unread,
Apr 14, 2023, 9:29:16 AM4/14/23
to wkhtmltopdf General
There's no official build yet, but support was added in the packaging repo. You can try to build it yourself.

John Guilmartin

unread,
Apr 14, 2023, 11:56:47 AM4/14/23
to wkhtmltopdf General
I tried to do a build from this. It starts fine and begins to compile but then errors out. I'm new here, and new to building in general, so I'm not sure what the best practices are in terms of posting the errors. But from what I have gathered there seems to be an issue with the version of gcc and compiling qt. But I can't be sure. Any help getting a build working would be fantastic!

Jacob Hutchings

unread,
May 12, 2023, 5:43:49 PM5/12/23
to wkhtmltopdf General
I am also trying to build an rpm for Amazon Linux 2023 but am getting an error. Any ideas what I am doing wrong?

Here is the build command I am using

./build --use-qemu linux/arm64/v8 package-docker amazonlinux2023-aarch64 ../wkhtmltopdf/

and the last few lines of output

/src/qt/src/gui/dialogs/qpagesetupdialog_unix.cpp:553:12: error: 'class Ui::QPageSetupWidget' has no member named 'paperHeight'
  553 |     widget.paperHeight->setValue(m_paperSize.height() / m_currentMultiplier);
      |            ^~~~~~~~~~~
make[1]: *** [Makefile:126266: .obj/release-static/qpagesetupdialog_unix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tgt/qt/src/gui'
make: *** [Makefile:375: sub-gui-make_default-ordered] Error 2
docker run --rm -v/home/ec2-user/wkhtmltopdf:/src -v/home/ec2-user/packaging-master/targets/amazonlinux2023-aarch64:/tgt -v/home/ec2-user/packaging-master:/pkg -w/tgt/qt --user 0:0 wkhtmltopdf/0.12:amazonlinux2023-aarch64 make -j2
command failed: exit code 2

Yozons eSignForms

unread,
Nov 7, 2023, 3:17:58 PM11/7/23
to wkhtmltopdf General
I am also looking to run on Amazon Linux 2023.    I tried the CentOS 8 version, but it failed with respect to openssl.  I tried the Amazon Linux 2 version, and it complains about missing libpng15.so.15 while the installed libpng seems to be libpng16.so.16 (2:1.6.37-10.amzn2023.0.6 per yum list).  Not sure, but suspect it will also grumble about libssl.so.10 and libcrypto.so.10  missing too.

Has anybody made a version that will run under Amazon Linux 2023 since that's their latest push to get all the older OSes update by year end?

Thanks in advance for any insights as this is still blocking our OS migration.

Yozons eSignForms

unread,
Nov 7, 2023, 3:27:38 PM11/7/23
to wkhtmltopdf General
I'm not positive this is the solution, but I tried using wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm and it seems to run on Amazon Linux 2023. I've not test more yet, but at least this comes out now:

$ wkhtmltopdf --version

wkhtmltopdf 0.12.6.1 (with patched qt)

Reply all
Reply to author
Forward
0 new messages