Skip to content

Instantly share code, notes, and snippets.

@acgetchell
Created April 18, 2014 08:31
Show Gist options
  • Select an option

  • Save acgetchell/11031662 to your computer and use it in GitHub Desktop.

Select an option

Save acgetchell/11031662 to your computer and use it in GitHub Desktop.
Debugging for CGAL 4.4 install from homebrew. All options work except imaging. I first show an install with all options except imaging, then I show the verbose results of the failed install with imaging
┌─[getchell][Hapkido][~]
└─▪ brew update
Already up-to-date.
┌─[getchell][Hapkido][~]
└─▪ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: f8236b59f79fd0334f8a1e239dd6538a9f738ff1
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
GCC-4.2: build 5666
Clang: 5.1 build 503
X11: 2.7.5 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/getchell/.rbenv/shims/ruby
┌─[getchell][Hapkido][~]
└─▪ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse_i32.la
/usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/osxfuse.pc
┌─[getchell][Hapkido][~]
└─▪ brew install cgal --c++11 --with-lapack
==> Downloading https://gforge.inria.fr/frs/download.php/33525/CGAL-4.4.tar.gz
Already downloaded: /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=
==> make install
🍺 /usr/local/Cellar/cgal/4.4: 2622 files, 31M, built in 20 seconds
┌─[getchell][Hapkido][~]
└─▪ brew uninstall cgal
Uninstalling /usr/local/Cellar/cgal/4.4...
┌─[getchell][Hapkido][~]
└─▪ brew install cgal --c++11 --with-lapack --with-eigen3
==> Downloading https://gforge.inria.fr/frs/download.php/33525/CGAL-4.4.tar.gz
Already downloaded: /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=
==> make install
🍺 /usr/local/Cellar/cgal/4.4: 2622 files, 31M, built in 20 seconds
┌─[getchell][Hapkido][~]
└─▪ brew info cgal
cgal: stable 4.4
http://www.cgal.org/
/usr/local/Cellar/cgal/4.4 (2622 files, 31M) *
Built from source with: --with-lapack, --with-eigen3, --c++11
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/cgal.rb
==> Dependencies
Build: cmake ✔
Required: boost ✔, gmp ✔, mpfr ✔
==> Options
--c++11
Build using C++11 mode
--imaging
Build ImageIO and QT compoments of CGAL
--with-eigen3
Build with Eigen3 support
--with-lapack
Build with LAPACK support
┌─[getchell][Hapkido][~]
└─▪ brew uninstall cgal
Uninstalling /usr/local/Cellar/cgal/4.4...
┌─[getchell][Hapkido][~]
└─▪ brew install -v cgal --imaging 2>&1
==> 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 .
-- The CXX compiler identification is Clang 5.1.0
-- The C compiler identification is Clang 5.1.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.12
-- 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 = '5.1.3'
-- 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'
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- system
-- Boost include: /usr/local/include
-- Boost libraries: /usr/local/lib/libboost_thread-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
-- Boost definitions:
-- USING BOOST_VERSION = '1.55.0'
== 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
Configuring libCGAL_ImageIO
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries: /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.5'
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_ImageIO is configured
-- Sources for CGAL component library 'CGAL_Qt3' detected
Configuring libCGAL_Qt3
-- libCGAL_Qt3 needs Qt3, cannot be configured.
-- Sources for CGAL component library 'CGAL_Qt4' detected
Configuring libCGAL_Qt4
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- USING OPENGL_VERSION = '2.1'
-- WARNING: QT4 found but could not compile print_QT4_version.cpp:
-- QT_INCLUDE_DIR=/usr/local/Cellar/qt/4.8.5/include;/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework
-- QT_LIBRARIES=/usr/local/Cellar/qt/4.8.5/lib/QtOpenGL.framework;/usr/local/Cellar/qt/4.8.5/lib/QtGui.framework;/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework
-- QT_LIBRARIES_DIR=
-- Change Dir: /tmp/cgal-oZTD/CGAL-4.4/CMakeFiles/CMakeTmp
Run Build Command:/usr/local/Library/ENV/4.3/gmake "cmTryCompileExec3292284228/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTryCompileExec3292284228.dir/build.make CMakeFiles/cmTryCompileExec3292284228.dir/build
/usr/local/Cellar/cmake/2.8.12.2/bin/cmake -E cmake_progress_report /tmp/cgal-oZTD/CGAL-4.4/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3292284228.dir/print_QT4_version.cpp.o
/usr/local/Library/ENV/4.3/clang++ -I/usr/local/Cellar/qt/4.8.5/include -F/usr/local/Cellar/qt/4.8.5/lib -o CMakeFiles/cmTryCompileExec3292284228.dir/print_QT4_version.cpp.o -c /tmp/cgal-oZTD/CGAL-4.4/config/support/print_QT4_version.cpp
Linking CXX executable cmTryCompileExec3292284228
/usr/local/Cellar/cmake/2.8.12.2/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3292284228.dir/link.txt --verbose=1
/usr/local/Library/ENV/4.3/clang++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTryCompileExec3292284228.dir/print_QT4_version.cpp.o -o cmTryCompileExec3292284228 -F/usr/local/Cellar/qt/4.8.5/lib -framework QtOpenGL -framework QtGui -framework QtCore
ld: file not found: /usr/local/lib/libpng15.15.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTryCompileExec3292284228] Error 1
make: *** [cmTryCompileExec3292284228/fast] Error 2
-- USING QT4_VERSION = 'unknown'
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries: /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- OpenGL definitions:
-- Qt4 include: /usr/local/Cellar/qt/4.8.5/include;/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework
-- Qt4 libraries: /usr/local/Cellar/qt/4.8.5/lib/QtOpenGL.framework;/usr/local/Cellar/qt/4.8.5/lib/QtGui.framework;/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework
-- Qt4 definitions:
-- moc executable: /usr/local/Cellar/qt/4.8.5/bin/moc
-- uic executable: /usr/local/Cellar/qt/4.8.5/bin/uic
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Qt4 is configured
-- Sources for CGAL component libraries 'CGAL_Core;CGAL_ImageIO;CGAL_Qt3;CGAL_Qt4' detected
== Generating build files (DONE) ==
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cgal-oZTD/CGAL-4.4
==> make install
Scanning dependencies of target CGAL
[ 5%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL.dylib
[ 5%] Built target CGAL
[ 10%] [ 15%] [ 20%] [ 25%] [ 30%] [ 35%] Generating qrc_Triangulation_2.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsViewNavigation.cxx
Generating __/__/include/CGAL/Qt/moc_DemosMainWindow.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsItem.cxx
Generating __/__/include/CGAL/Qt/moc_GraphicsViewInput.cxx
Generating qrc_CGAL.cxx
[ 40%] Generating qrc_Input.cxx
[ 45%] Generating qrc_File.cxx
Scanning dependencies of target CGAL_Core
[ 50%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
Scanning dependencies of target CGAL_ImageIO
[ 55%] Building CXX object src/CGAL_ImageIO/CMakeFiles/CGAL_ImageIO.dir/all_files.cpp.o
Scanning dependencies of target CGAL_Qt4
[ 65%] [ 65%] [ 70%] [ 75%] [ 80%] [ 85%] Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/all_files.cpp.o
Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsViewNavigation.cxx.o
Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_DemosMainWindow.cxx.o
Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsItem.cxx.o
Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/__/__/include/CGAL/Qt/moc_GraphicsViewInput.cxx.o
Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_CGAL.cxx.o
[ 90%] Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_Input.cxx.o
[ 95%] Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_File.cxx.o
[100%] Building CXX object src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/qrc_Triangulation_2.cxx.o
Linking CXX shared library ../../lib/libCGAL_Core.dylib
[100%] Built target CGAL_Core
Linking CXX shared library ../../lib/libCGAL_ImageIO.dylib
[100%] Built target CGAL_ImageIO
Linking CXX shared library ../../lib/libCGAL_Qt4.dylib
ld: file not found: /usr/local/lib/libpng15.15.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libCGAL_Qt4.10.0.3.dylib] Error 1
make[1]: *** [src/CGAL_Qt4/CMakeFiles/CGAL_Qt4.dir/all] Error 2
make: *** [all] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: f8236b59f79fd0334f8a1e239dd6538a9f738ff1
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
X11: 2.7.5 => /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
CMAKE_FRAMEWORK_PATH: /usr/local/opt/qt/Frameworks:/usr/local/opt/python/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/qt/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/opt/python/bin:/usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/qt/bin:/usr/local/opt/python/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: cgal 4.4 did not build
Logs:
/Users/getchell/Library/Logs/Homebrew/cgal/01.cmake
/Users/getchell/Library/Logs/Homebrew/cgal/01.cmake.cc
/Users/getchell/Library/Logs/Homebrew/cgal/02.make
/Users/getchell/Library/Logs/Homebrew/cgal/02.make.cc
/Users/getchell/Library/Logs/Homebrew/cgal/CMakeCache.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment