udoprog/c10t — Issue #194: Build Fails on Mac 10.7.2
Author: jgillman
Created: 2011-11-02 13:29:03+00:00
State: open

Output on 'make c10t' using the ae5698cd627fc6e4d0d2a721c476e37481a1b63e (most recent) commit.
````
$ make c10t

Scanning dependencies of target c10t-nbt
[ 3%] Building CXX object src/nbt/CMakeFiles/c10t-nbt.dir/nbt.cpp.o
Linking CXX static library libc10t-nbt.a
[ 3%] Built target c10t-nbt
Scanning dependencies of target c10t-mc
[ 7%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/blocks.cpp.o
[ 11%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/level.cpp.o
[ 15%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/utils.cpp.o
[ 19%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/world.cpp.o
[ 23%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/region.cpp.o
Linking CXX static library libc10t-mc.a
[ 23%] Built target c10t-mc
Scanning dependencies of target c10t-image
[ 26%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_operations.cpp.o
[ 30%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_base.cpp.o
[ 34%] Building CXX object src/image/CMakeFiles/c10t-image.dir/memory_image.cpp.o
[ 38%] Building CXX object src/image/CMakeFiles/c10t-image.dir/cached_image.cpp.o
[ 42%] Building CXX object src/image/CMakeFiles/c10t-image.dir/color.cpp.o
[ 46%] Building CXX object src/image/CMakeFiles/c10t-image.dir/algorithms.cpp.o
Linking CXX static library libc10t-image.a
[ 46%] Built target c10t-image
Scanning dependencies of target c10t
[ 50%] Building CXX object src/CMakeFiles/c10t.dir/main.cpp.o
In file included from /Users/jgillman/Desktop/c10t/src/main.cpp:24:
/Users/jgillman/Desktop/c10t/src/image/format/png.hpp: In static member function ‘static bool png_format::save(image_base*, const std::string&, png_
config&)’:
/Users/jgillman/Desktop/c10t/src/image/format/png.hpp:48: error: ‘Z_DEFAULT_STRATEGY’ was not declared in this scope
make[3]: *** [src/CMakeFiles/c10t.dir/main.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/c10t.dir/all] Error 2
make[1]: *** [src/CMakeFiles/c10t.dir/rule] Error 2
make: *** [c10t] Error 2

$
````
Originally tried installing with Homebrew but it only seems to build pre-1.8 maps. --version on the brew installed one reports "SNAPSHOT".