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

ZLIB & PNG are found... then not found... #438

Open
YLSnewb opened this issue Nov 4, 2023 · 2 comments · May be fixed by #440
Open

ZLIB & PNG are found... then not found... #438

YLSnewb opened this issue Nov 4, 2023 · 2 comments · May be fixed by #440

Comments

@YLSnewb
Copy link

YLSnewb commented Nov 4, 2023

Compiling v4.1.1 on Rocky Linux 9.2 freshly patched & booted. A fresh clone of the repository produces similar errors.

Only requisites installed are YASM and LibPNG.

$ cmake -G "Unix Makefiles"

-- CMAKE_ASM_NASM_COMPILER = /usr/local/bin/yasm
-- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64
-- CMAKE_ASM_NASM_FLAGS = -DELF -D__x86_64__ -DPIC
-- SIMD extensions: x86_64 (WITH_SIMD = 1)
-- PNG reading support enabled (PNG_SUPPORTED = 1)
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found PNG: /usr/local/lib/libpng.so (found suitable version "1.6.40", minimum required is "1.6")
-- PNG reading support enabled (PNG_SUPPORTED = 1)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PNG (missing: PNG_LIBRARY) (Required is at least version "1.6")

Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindPNG.cmake:159 (find_package_handle_standard_args)
CMakeLists.txt:721 (find_package)

Disabling PNG works.

$ cmake -G "Unix Makefiles" -DPNG_SUPPORTED=OFF

-- SIMD extensions: x86_64 (WITH_SIMD = 1)
-- FLOATTEST = sse
-- RPM architecture = x86_64, DEB architecture = amd64
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/mozjpeg-4.1.1

make && make test

216/216 Test #216: jpegtran-static-crop-cmp .......................... Passed 0.00 sec
100% tests passed, 0 tests failed out of 216
Total Test time (real) = 117.51 sec

@YLSnewb
Copy link
Author

YLSnewb commented Nov 4, 2023

This seems related, but affected ~ v4.0.3 :

#351

EDIT: Confirming that disabling the static build gets a clean compile...

cmake -G "Unix Makefiles" -DENABLE_STATIC=FALSE

@dofuuz
Copy link
Contributor

dofuuz commented Dec 15, 2023

#403 (comment)

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 a pull request may close this issue.

2 participants