From 1fcdd0406dfd4fe84a26ef3bc09406c2b3bb491f Mon Sep 17 00:00:00 2001 From: Mustafa Öksüz Date: Sep 01 2022 07:35:56 +0000 Subject: solving linker issue on customized libtiff --- diff --git a/doc/how_to_build_macosx.md b/doc/how_to_build_macosx.md index 6768314..7568212 100644 --- a/doc/how_to_build_macosx.md +++ b/doc/how_to_build_macosx.md @@ -63,7 +63,7 @@ $ cd ../tiff-4.0.3 $ ./configure && make ``` -If you install libtiff through brew before, linker tool couses fail. In order to solve this problem use install_name_tool +If you install libtiff through brew before, linker tool couses fail. In order to solve this problem use install_name_tool. ``` $ cd opentoonz/thirdparty/tiff-4.0.3/libtiff/.libs/ $ install_name_tool -id $PWD/libtiff.5.dylib libtiff.5.dylib diff --git a/toonz/cmake/FindTIFF.cmake b/toonz/cmake/FindTIFF.cmake index ff5ec51..1d5aaed 100644 --- a/toonz/cmake/FindTIFF.cmake +++ b/toonz/cmake/FindTIFF.cmake @@ -19,14 +19,15 @@ endif() find_library( TIFF_LIBRARY NAMES - libtiff.a + # libtiff.a + #use shared library instead of static + libtiff.dylib HINTS ${SDKROOT} PATH_SUFFIXES tiff-4.0.3/libtiff/.libs NO_DEFAULT_PATH ) - message("***** libtiff Header path:" ${TIFF_INCLUDE_DIR}) message("***** libtiff Library path:" ${TIFF_LIBRARY})