I was trying to brew install postgis
and got an error on the cgal
dependency.
It looks like maybe it has to do with boost, but according to the CGAL manual, I have a suitable Boost version (>1.39)
I was trying to brew install postgis
and got an error on the cgal
dependency.
It looks like maybe it has to do with boost, but according to the CGAL manual, I have a suitable Boost version (>1.39)
$ brew info boost | |
boost: stable 1.56.0 (bottled), HEAD | |
http://www.boost.org | |
/usr/local/Cellar/boost/1.55.0_2 (10036 files, 452M) | |
Poured from bottle | |
/usr/local/Cellar/boost/1.56.0 (10471 files, 438M) * | |
Poured from bottle | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/boost.rb | |
==> Options | |
--c++11 | |
Build using C++11 mode | |
--universal | |
Build a universal binary | |
--with-icu | |
Build regexp engine with icu support | |
--with-mpi | |
Build with MPI support | |
--without-single | |
Disable building single-threading variant | |
--without-static | |
Disable building static library variant | |
--HEAD | |
install HEAD version |
$ brew install --verbose cgal | |
==> Downloading https://gforge.inria.fr/frs/download.php/33525/CGAL-4.4.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/cgal-4.4.tar.gz | |
==> Verifying cgal-4.4.tar.gz checksum | |
tar xf /Library/Caches/Homebrew/cgal-4.4.tar.gz | |
==> Patching | |
patching file src/CGAL/File_header_extended_OFF.cpp | |
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/cgal/4.4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/usr/local/lib -DWITH_CGAL_Qt3=OFF -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF . | |
-- The CXX compiler identification is Clang 6.0.0 | |
-- The C compiler identification is Clang 6.0.0 | |
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ | |
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang | |
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
== Setting paths == | |
-- Build CGAL from release in directory CGAL-4.4 | |
-- Packagenames: CGAL-4.4 | |
== Setting paths (DONE) == | |
== Generate version files == | |
-- CGAL_MAJOR_VERSION=4 | |
-- CGAL_MINOR_VERSION=4 | |
-- CGAL_BUGFIX_VERSION=0 | |
-- CGAL_SONAME_VERSION=10 | |
-- CGAL_SOVERSION =10.0.3 | |
-- CGAL_REFERENCE_CACHE_DIR= | |
-- Building shared libraries | |
-- Targetting Unix Makefiles | |
-- Using /usr/local/Library/ENV/4.3/clang++ compiler. | |
-- DARWIN_VERSION=13 | |
-- Mac Leopard detected | |
-- USING CMake version: 2.8.10 | |
-- System: Darwin | |
== Generate version files (DONE) == | |
== Set up flags == | |
-- Build type: Release | |
-- USING CXXFLAGS = ' -O3 -DNDEBUG' | |
-- USING LDFLAGS = ' ' | |
== Set up flags (DONE) == | |
== Detect external libraries == | |
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TAUCS;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE | |
-- Preconfiguring library: GMP ... | |
-- Found GMP: /usr/local/lib/libgmp.dylib | |
-- GMP has been preconfigured: | |
-- UseGMP-file: | |
-- GMP include: /usr/local/include | |
-- GMP libraries: /usr/local/lib/libgmp.dylib | |
-- GMP definitions: | |
-- USING GMP_VERSION = '6.0.0' | |
-- Preconfiguring library: MPFR ... | |
-- Found MPFR: /usr/local/lib/libmpfr.dylib | |
-- MPFR has been preconfigured: | |
-- UseMPFR-file: | |
-- MPFR include: /usr/local/include | |
-- MPFR libraries: /usr/local/lib/libmpfr.dylib | |
-- MPFR definitions: | |
-- USING MPFR_VERSION = '3.1.2' | |
CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/FindBoost.cmake:732 (file): | |
file STRINGS file | |
"/Library/Frameworks/Mapnik.framework/Headers/boost/boost/version.hpp" | |
cannot be read. | |
Call Stack (most recent call first): | |
cmake/modules/CGAL_SetupBoost.cmake:6 (find_package) | |
cmake/modules/CGAL_SetupDependencies.cmake:85 (include) | |
CMakeLists.txt:590 (include) | |
CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/FindBoost.cmake:746 (math): | |
math cannot parse the expression: " / 100000": syntax error, unexpected | |
exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2) | |
Call Stack (most recent call first): | |
cmake/modules/CGAL_SetupBoost.cmake:6 (find_package) | |
cmake/modules/CGAL_SetupDependencies.cmake:85 (include) | |
CMakeLists.txt:590 (include) | |
CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/FindBoost.cmake:747 (math): | |
math cannot parse the expression: " / 100 % 1000": syntax error, unexpected | |
exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2) | |
Call Stack (most recent call first): | |
cmake/modules/CGAL_SetupBoost.cmake:6 (find_package) | |
cmake/modules/CGAL_SetupDependencies.cmake:85 (include) | |
CMakeLists.txt:590 (include) | |
CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/FindBoost.cmake:748 (math): | |
math cannot parse the expression: " % 100": syntax error, unexpected | |
exp_MOD, expecting exp_OPENPARENT or exp_NUMBER (2) | |
Call Stack (most recent call first): | |
cmake/modules/CGAL_SetupBoost.cmake:6 (find_package) | |
cmake/modules/CGAL_SetupDependencies.cmake:85 (include) | |
CMakeLists.txt:590 (include) | |
-- Boost version: .. | |
-- Found the following Boost libraries: | |
-- thread | |
-- system | |
-- Boost include: /Library/Frameworks/Mapnik.framework/Headers/boost | |
-- Boost libraries: /usr/local/lib/libboost_thread-mt.dylib;/usr/local/lib/libboost_system-mt.dylib | |
-- Boost definitions: | |
-- USING BOOST_VERSION = '..' | |
== Detect external libraries (DONE) == | |
== Write compiler_config.h == | |
-- Performing Test CGAL_CFG_BOOST_VARIANT_SWAP_BUG - Success | |
-- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success | |
-- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Success | |
-- Performing Test CGAL_CFG_IEEE_754_BUG - Success | |
-- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success | |
-- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success | |
-- Performing Test CGAL_CFG_MATCHING_BUG_6 - Success | |
-- Performing Test CGAL_CFG_MATCHING_BUG_7 - Success | |
-- Performing Test CGAL_CFG_MATCHING_BUG_8 - Success | |
-- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Failed | |
-- Performing Test CGAL_CFG_NO_LIMITS - Success | |
-- Performing Test CGAL_CFG_NO_NEXTAFTER - Success | |
-- Performing Test CGAL_CFG_NO_STL - Success | |
-- Performing Test CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG - Success | |
-- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success | |
-- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success | |
-- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success | |
-- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success | |
-- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success | |
== Write compiler_config.h (DONE) == | |
== Generating build files == | |
Configuring libCGAL | |
-- Requested component: MPFR | |
-- Requested component: GMP | |
libCGAL is configured | |
-- Sources for CGAL component library 'CGAL_Core' detected | |
Configuring libCGAL_Core | |
-- Requested component: MPFR | |
-- Requested component: GMP | |
libCGAL_Core is configured | |
-- Sources for CGAL component library 'CGAL_ImageIO' detected | |
-- Sources for CGAL component library 'CGAL_Qt3' detected | |
-- Sources for CGAL component library 'CGAL_Qt4' detected | |
-- Sources for CGAL component libraries 'CGAL_Core;CGAL_ImageIO;CGAL_Qt3;CGAL_Qt4' detected | |
== Generating build files (DONE) == | |
-- Configuring incomplete, errors occurred! | |
==> Configuration | |
HOMEBREW_VERSION: 0.9.5 | |
HEAD: 9df3b7801ab6c8a2c0635a58768bda67643a2ef1 | |
CPU: 8-core 64-bit ivybridge | |
OS X: 10.9.5-x86_64 | |
Xcode: 6.0.1 | |
CLT: 6.0.0.0.1.1410400753 | |
X11: 2.7.6 => /opt/X11 | |
==> ENV | |
HOMEBREW_CC: clang | |
HOMEBREW_CXX: clang++ | |
MAKEFLAGS: -j8 | |
CMAKE_PREFIX_PATH: /usr/local | |
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers | |
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries | |
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9 | |
ACLOCAL_PATH: /usr/local/share/aclocal | |
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
Error: cgal 4.4 did not build | |
Logs: | |
/Users/germuska/Library/Logs/Homebrew/cgal/01.cmake | |
/Users/germuska/Library/Logs/Homebrew/cgal/01.cmake.cc | |
/Users/germuska/Library/Logs/Homebrew/cgal/CMakeCache.txt | |
$ |