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

Compilation failed with "Found no acceptable Z library. This is fatal." #2

Open
caph1993 opened this issue Jan 30, 2020 · 2 comments
Open

Comments

@caph1993
Copy link

Hello, I tried your docker image but got this error:

-- Looked for Z libraries named z;zlib;zdll.
-- Found no acceptable Z library. This is fatal.

Is it maybe a new dependency that is missing?

This is the full console log:

# Executing: cmake -DLYX_USE_QT=QT5 -DLYX_CPACK=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_SOURCE_TGZ:BOOL=ON -DLYX_NLS=ON -DLYX_EXTERNAL_Z=ON -DLYX_EXTERNAL_ICONV=ON -DLYX_EXTERNAL_BOOST=OFF ..
-- TOP_SRC_DIR = /build/lyx
-- 
-- Building out-of-source
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 
-- CXX11_FLAG_DETECTED = "--std=c++14"
-- Compiler supports std_regex
-- Found CXX11Compiler: --std=c++14  
-- Using GCC version 7.4.0
-- CMAKE_COMPILER_IS_GNUCXX = 1
-- CMAKE_CXX_STANDARD set to 14
-- Found Qt-Version 5.9.5
-- Looking for magic_file
-- Looking for magic_file - not found
-- Function magic_file not found
-- Looking for magic_open
-- Looking for magic_open - not found
-- Function magic_open not found
-- Looking for magic_load
-- Looking for magic_load - not found
-- Function magic_load not found
-- Looking for magic_close
-- Looking for magic_close - not found
-- Function magic_close not found
-- Looking for magic_error
-- Looking for magic_error - not found
-- Function magic_error not found
-- Could NOT find Magic (missing: Magic_INCLUDE_DIR Magic_LIBRARY HAS_MAGIC_FUNCTIONS) 
-- Could NOT find MYTHESLIB (missing: MYTHESLIB_LIBRARY MYTHESLIB_INCLUDE_DIR) 
-- Could NOT find ASPELL (missing: ASPELL_LIBRARY ASPELL_INCLUDE_DIR) 
-- ASPELL not found, building without ASPELL support
-- Could NOT find ENCHANT (missing: ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR) 
-- ENCHANT not found, building without Enchant support
-- Could NOT find HUNSPELL (missing: HUNSPELL_LIBRARY HUNSPELL_INCLUDE_DIR) 
-- HUNSPELL not found, building without Hunspell support
-- Found PythonInterp: /usr/bin/python (found suitable version "2.7.17", minimum required is "2.0") 
-- Installing provided .gmo-files only
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library: 
-- Looked for Z libraries named z;zlib;zdll.
-- Found no acceptable Z library. This is fatal.
CMake Error at development/cmake/modules/FindZLIB.cmake:52 (message):
  Could NOT find z library, set GNUWIN32_DIR to dir containing /include and
  /bin folders: -DGNUWIN32_DIR=...
Call Stack (most recent call first):
  CMakeLists.txt:860 (find_package)


-- Configuring incomplete, errors occurred!
See also "/build/lyx/build/CMakeFiles/CMakeOutput.log".
See also "/build/lyx/build/CMakeFiles/CMakeError.log".
Command 'cmake -DLYX_USE_QT=QT5 -DLYX_CPACK=ON -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_SOURCE_TGZ:BOOL=ON -DLYX_NLS=ON -DLYX_EXTERNAL_Z=ON -DLYX_EXTERNAL_ICONV=ON -DLYX_EXTERNAL_BOOST=OFF ..' failed, exiting
@caph1993
Copy link
Author

It can be fixed by installing zlib1g-dev. I created a pull request.

DrChr added a commit that referenced this issue Jan 30, 2020
In issue #2 'caph1993' notes that the build does not work,
and that by installing the package 'zlib1g-dev' it works.

The error message (from issue #2) is as follows:

    -- Looked for Z libraries named z;zlib;zdll.
    -- Found no acceptable Z library. This is fatal.
    CMake Error at development/cmake/modules/FindZLIB.cmake:52 (message):
      Could NOT find z library, set GNUWIN32_DIR to dir containing /include and
      /bin folders: -DGNUWIN32_DIR=...

Note: caph1993 had very nicely created a pull request, but to avoid
multiple commits I manually added the single line that was needed.

Note: caph1993's work was done in caph1993's fork,
    https://github.com/caph1993/build-lyx-using-ubuntu-latest-qt5-cmake
and the pull request refers to commit
    9e630cc

Issue #2: #2
@DrChr
Copy link
Owner

DrChr commented Jan 30, 2020

Hello!

Thank you very much for finding and fixing the issue.

As you can see from the commit above I took your fix and applied it manually.

I've now triggered DockerHub to rebuild the container, even though it should happen automatically.
Then I'll trigger the CI system to retrieve the new version.

However, would you mind confirming it now works for you?
If so, I can close this issue.

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

No branches or pull requests

2 participants