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

broken on aarch64? #141

Open
kb3ien opened this issue Dec 20, 2024 · 1 comment
Open

broken on aarch64? #141

kb3ien opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kb3ien
Copy link

kb3ien commented Dec 20, 2024

Describe the Bug

All images known valid PNG and JPEG produce this error:

[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg::load(): Failed to recognize format of file 'tunnelwash1.png'.
Error: 'tunnelwash1.png' has an unrecognized file format

To Reproduce

compile on bookworm with kernel Linux 6.1.21-v8+ GNU/Linux
ii gcc 4:12.2.0-3 arm64 GNU C compiler
ii gcc-10 10.2.1-6 arm64 GNU C compiler
ii gcc-10-base:arm64 10.2.1-6 arm64 GCC, the GNU Compiler Collection (base package)
ii gcc-11-base:arm64 11.3.0-12 arm64 GCC, the GNU Compiler Collection (base package)
ii gcc-12 12.2.0-14 arm64 GNU C compiler
ii gcc-12-base:arm64 12.2.0-14 arm64 GCC, the GNU Compiler Collection (base package)
ii gcc-9-base:arm64 9.3.0-22 arm64 GCC, the GNU Compiler Collection (base package)
ii libgcc-10-dev:arm64 10.2.1-6 arm64 GCC support library (development files)
ii libgcc-12-dev:arm64 12.2.0-14 arm64 GCC support library (development files)
ii libgcc-s1:arm64 12.2.0-14 arm64 GCC support library

Expected Behavio(u)r

Expected to see a picture.

Screenshots

make
g++ -O2 -fpermissive -std=c++17 -Wall -fexceptions -c -o tiv.o tiv.cpp
g++ -O2 -fpermissive -std=c++17 -Wall -fexceptions -c -o tiv_lib.o tiv_lib.cpp
g++ -pthread tiv.o tiv_lib.o -o tiv

compiled okay.

Version/Commit Hash

Terminal Image Viewer v1.2.1 3770786

OS Specifics

Linux cg5a 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

@kb3ien kb3ien added the bug Something isn't working label Dec 20, 2024
@stefanhaustein
Copy link
Owner

stefanhaustein commented Dec 20, 2024

IIRC We are using CImg for image loading but we don't depend on its file format plugins.

Can you try installing imagemagic (that's usually the simplest way to make sure the plugins are there where we aren't included in a package manager)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants