darbyjohnston / tlRender

tlRender is an open source library for building playback and review applications for visual effects, film, and animation.
BSD 3-Clause "New" or "Revised" License
172 stars 19 forks source link

tlRender build fails on osx - ZLIB_VERNUM != PNG_ZLIB_VERNUM #134

Open djacobs7 opened 2 months ago

djacobs7 commented 2 months ago

Build is failing on mac os x. This this the error message ( it's right in the middle of the log that I attached below)

Command line:

 build % uname -a
Darwin MacBook-Air-7.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64

djacobs7@MacBook-Air-7 build % sw_vers
ProductName:        macOS
ProductVersion:     13.0.1
BuildVersion:       22A400

djacobs7@MacBook-Air-7 build % pwd
/Users/djacobs7/git/theboyjones/tlRender/build
djacobs7@MacBook-Air-7 build % cmake ../etc/SuperBuild -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH=$PWD/install -DCMAKE_BUILD_TYPE=Debug    

Error message:

In file included from /Users/djacobs7/git/theboyjones/tlRender/build/PNG/src/PNG/scripts/intprefix.c:21:
/Users/djacobs7/git/theboyjones/tlRender/build/PNG/src/PNG/scripts/../pngpriv.h:911:4: error: ZLIB_VERNUM != PNG_ZLIB_VERNUM       "-I (include path) error: see the notes in pngpriv.h"
#  error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
   ^
1 error generated.
CMake Error at scripts/genout.cmake:78 (message):
  Failed to generate
  /Users/djacobs7/git/theboyjones/tlRender/build/PNG/src/PNG-build/scripts/intprefix.out.tf1

Full build log: log.txt

darbyjohnston commented 2 months ago

Hi, thanks for the detailed information. It looks like some of the dependencies are being picked up from homebrew instead of using the internal tlRender dependencies. I'll look into how to fix this.