MantisBT - CMake
View Issue Details
0015423CMake(No Category)public2015-02-27 04:442015-07-08 08:57
Mathieu Malaterre 
 
normalminorhave not tried
closedno change required 
CMake 3.1.3 
 
0015423: Need FindLZMA.cmake
Since recent libtiff release, liblzma is internally used. Therefore one will need a find_package(lzma) for proper static linking of libtiff (find_package(TIFF).

Current error:

Undefined symbols for architecture x86_64:
  "_lzma_code", referenced from:
      _LZMADecode in libtiff.a(tif_lzma.o)
      _LZMAPostEncode in libtiff.a(tif_lzma.o)
      _LZMAEncode in libtiff.a(tif_lzma.o)
  "_lzma_end", referenced from:
      _LZMASetupDecode in libtiff.a(tif_lzma.o)
      _LZMASetupEncode in libtiff.a(tif_lzma.o)
      _LZMACleanup in libtiff.a(tif_lzma.o)
  "_lzma_lzma_preset", referenced from:
      _TIFFInitLZMA in libtiff.a(tif_lzma.o)
      _LZMAVSetField in libtiff.a(tif_lzma.o)
  "_lzma_memusage", referenced from:
      _LZMADecode in libtiff.a(tif_lzma.o)
  "_lzma_stream_decoder", referenced from:
      _LZMAPreDecode in libtiff.a(tif_lzma.o)
      _LZMADecode in libtiff.a(tif_lzma.o)
  "_lzma_stream_encoder", referenced from:
      _LZMAVSetField in libtiff.a(tif_lzma.o)
      _LZMAPreEncode in libtiff.a(tif_lzma.o)
ld: symbol(s) not found for architecture x86_64
No tags attached.
Issue History
2015-02-27 04:44Mathieu MalaterreNew Issue
2015-02-27 08:23Brad KingNote Added: 0038092
2015-02-27 08:23Brad KingStatusnew => resolved
2015-02-27 08:23Brad KingResolutionopen => no change required
2015-07-08 08:57Robert MaynardNote Added: 0039084
2015-07-08 08:57Robert MaynardStatusresolved => closed

Notes
(0038092)
Brad King   
2015-02-27 08:23   
We've had FindLibLZMA since 2.8.9.
(0039084)
Robert Maynard   
2015-07-08 08:57   
Closing resolved issues that have not been updated in more than 4 months.