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

How to integrate into LibTIFF which checks existence of lzma.h #3

Closed
ghost opened this issue Jul 10, 2018 · 1 comment
Closed

How to integrate into LibTIFF which checks existence of lzma.h #3

ghost opened this issue Jul 10, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 10, 2018

I am trying to integrate LZMA2 functionality into LibTIFF (https://gitlab.com/libtiff/libtiff) using CMake. Without it LibTIFF will complain when running cmake:

-- LZMA2 support: ON (requested) FALSE (availability)

The CMakeLists.txt of LibTIFF tests existence of LZMA2 library using CMake's own script in Modules\FindLibLZMA.cmake. This file tries to check the existence of lzma.h to decide the include directory:

find_path(LIBLZMA_INCLUDE_DIR lzma.h )
find_library(LIBLZMA_LIBRARY NAMES lzma liblzma)

But I could not find lzma.h anywhere in the downloaded source package from here. Also the lzma.lib and liblzma.lib do not exist either in output folder of fast-lzma2 after I successfully built it, which are to be linked to LibTIFF. So how to integrate Fast LZMA2 into LibTIFF using CMake? Thanks.

My environment:

  • Windows 10
  • Visual Studio 2015 & 2017
  • CMake 3.11.4
@ghost ghost changed the title How to integrate into libtiff which checks existence of lzma.h How to integrate into LibTIFF which checks existence of lzma.h Jul 10, 2018
@ghost
Copy link
Author

ghost commented Jul 10, 2018

It turns out that I should use another library for LZMA2: XZ Utils. So please close this issue since it's solved.

@conor42 conor42 closed this as completed Jul 11, 2018
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

1 participant