This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amazon Linux 2022 => Amazon Linux 2023
- Loading branch information
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnguilmartin please use the
0.12.6.x
branch, it should work with the latest compiler versions.957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashkulz I was able to create a working build for AL2023 based on this branch. I'm not sure if you want the rpm to add to the releases, but I have it available. Thanks for your guidance.
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am also needing the rpm for Amazon Linux 2023.
@johnguilmartin is your rpm available for download somewhere? Or can you provide a little guidance on how I could build my own? Thanks in advance for you help.
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnguilmartin @ashkulz Wonder if either of you know what I am doing wrong here?
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
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacob-hutchings I'm not totally sure about that output, but here are the steps I took to build wkhtmltopdf for Amazon Linux 2023 - I'll see if I can make my rpm available for a wget as well if you're still experiencing issues
957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnguilmartin that worked! Thank you so much. I think the problem was I had checked out the main branch of wkhtmltopdf.git and then did
git checkout 0.12.6.x
so it didn't get the correct version of the qt submodule. But I also installed the "Development Tools" group so it could have been something in there also.957cfe9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jacob-hutchings !
If someone else ends up here using AL2023 but is on ARM/aarch64, here's the modification I just used to get a working binary. Only difference was enabling experimental in docker and the (per documentation) use of --use-qemu.
Spin up new AL2023 instance
sudo dnf update
sudo dnf install docker
sudo echo "{ \n\t"experimental": true\n}" > /etc/docker/daemon.json
sudo systemctl start docker
sudo dnf install git
sudo dnf install p7zip
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo dnf group install "Development Tools"
mkdir wkhtmltopdf-build && cd wkhtmltopdf-build
sudo git clone https://github.com/wkhtmltopdf/packaging.git
sudo git clone --branch 0.12.6.x https://github.com/wkhtmltopdf/wkhtmltopdf.git --recurse-submodules
cd packaging
sudo ./build --use-qemu linux/arm64/v8 package-docker amazonlinux2023-aarch64 ../wkhtmltopdf