Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch server-side mapimg to Qt #2334

Merged
merged 10 commits into from
Aug 10, 2024
Merged

Conversation

lmoureaux
Copy link
Contributor

The server-side map image code was using a handcrafted ppm writer. This produces huge files. Since we have Qt with many built-in image writers, use that instead. This also changes the default to png since it's just a better format; and replaces the black background with transparent.

@lmoureaux lmoureaux requested a review from jwrober August 6, 2024 16:38
@@ -22,12 +22,10 @@ install(
${CMAKE_SOURCE_DIR}/dist/licenses/FTL.txt
${CMAKE_SOURCE_DIR}/dist/licenses/GPL2.txt
${CMAKE_SOURCE_DIR}/dist/licenses/GPL3.txt
${CMAKE_SOURCE_DIR}/dist/licenses/IMAGEMAGICK.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should delete this file too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I missed that there were two licenses for ImageMagick

@jwrober
Copy link
Collaborator

jwrober commented Aug 7, 2024

You also need to update the github action workflow files and readme to remove the dependency.

@jwrober jwrober self-requested a review August 7, 2024 21:52
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@lmoureaux
Copy link
Contributor Author

You also need to update the github action workflow files and readme to remove the dependency.

I don't see it there - we never supported building with ImageMagick, I think the mention in the docs was a leftover from upstream.

@lmoureaux lmoureaux requested a review from jwrober August 10, 2024 13:38
@jwrober
Copy link
Collaborator

jwrober commented Aug 10, 2024

You also need to update the github action workflow files and readme to remove the dependency.

I don't see it there - we never supported building with ImageMagick, I think the mention in the docs was a leftover from upstream.

I am referring to the installation of a library we no long need that is referred to in the README and the gh actions build files. You removed it from docs, but it still remains in other places.

@lmoureaux
Copy link
Contributor Author

I don't understand... this is the full list of packages we install on Ubuntu:

sudo apt-get install \
cmake \
ninja-build \
python3 \
python3-pip \
gettext \
qtbase5-dev \
libqt5svg5-dev \
libkf5archive-dev \
liblua5.3-dev \
libsqlite3-dev \
libsdl2-mixer-dev \
python3-sphinx

And on Windows:

git
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-nsis
mingw-w64-x86_64-gcc
mingw-w64-x86_64-libunwind
mingw-w64-x86_64-readline
mingw-w64-x86_64-lua
mingw-w64-x86_64-SDL2_mixer
mingw-w64-x86_64-qt5
mingw-w64-x86_64-qt5-svg
mingw-w64-x86_64-karchive-qt5

What do you want me to remove?

@jwrober
Copy link
Collaborator

jwrober commented Aug 10, 2024

Ok I stand corrected. I guess we had a dep install in docs that we didn't do anywhere else.

@jwrober jwrober merged commit 3e88fc2 into longturn:master Aug 10, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants