Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

solving linker issue on customized libtiff

Mustafa Öksüz1fcdd0406dfd
diff --git a/doc/how_to_build_macosx.md b/doc/how_to_build_macosx.md
index 676831451..7568212a0 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 ff5ec5129..1d5aaed13 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})