Skip to content

Instantly share code, notes, and snippets.

View tcgeophysics's full-sized avatar

Thomas Campagne tcgeophysics

View GitHub Profile
@tcgeophysics
tcgeophysics / bob.rb
Created January 14, 2014 20:31
Bob 1.2.2 revised homebrew formula. Bundeled python dependencies. Removed unecessary comments. Removed "-DCMAKE_BUILD_TYPE=Release". Revised tests.
require "formula"
class Bob < Formula
homepage "http://www.idiap.ch/software/bob/docs/releases/last/sphinx/html/index.html"
url "http://www.idiap.ch/software/bob/packages/bob-1.2.2.tar.gz"
sha1 "c557712996ae8a6a1e161026f539d1f1fd108fb0"
depends_on "blitz"
depends_on "lapack"
@tcgeophysics
tcgeophysics / bob_nosetests_fail.txt
Created January 6, 2014 17:46
Failed make nosetest output on Mac OS Mountain Lion 10.8.5
==> make nosetests
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -H/tmp/bob-OifB/bob-1.2.2 -B/tmp/bob-OifB/bob-1.2.2/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 nosetests
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -H/tmp/bob-OifB/bob-1.2.2 -B/tmp/bob-OifB/bob-1.2.2/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_progress_start /tmp/bob-OifB/bob-1.2.2/build/CMakeFiles 72
/usr/bin/make -f CMakeFiles/Makefile2 python/CMakeFiles/nosetests.dir/all
/usr/bin/make -f src/core/cxx/CMakeFiles/bob_core.dir/build.make src/core/cxx/CMakeFiles/bob_core.dir/depend
/usr/bin/make -f src/lbfgs/cxx/CMakeFiles/bob_lbfgs.dir/build.make src/lbfgs/cxx/CMakeFiles/bob_lbfgs.dir/depend
cd /tmp/bob-OifB/bob-1.2.2/build && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/bob-OifB/bob-1.2.2 /tmp/bob-OifB/bob-1.2.2/src/lbfgs/cxx /tmp/bob-OifB/bob-1.2.2/build /tmp/bob-OifB/bob-1.2.2/build/src/lbfgs/cxx /
@tcgeophysics
tcgeophysics / Terminal_outdec28_envstd.txt
Created December 28, 2013 18:38
No errors returned in terminal when using brew install -v --env=std bob
~$ brew install -v --env=std bob
/usr/local/opt/python/bin/python2 -c import nose
/usr/local/opt/python/bin/python2 -c import matplotlib
/usr/local/opt/python/bin/python2 -c import numpy
/usr/local/opt/python/bin/python2 -c import sqlalchemy
/usr/local/opt/python/bin/python2 -c import argparse
/usr/local/opt/python/bin/python2 -c import scipy
/usr/local/opt/python/bin/python2 -c import matplotlib
/usr/local/opt/python/bin/python2 -c import scipy
/usr/local/opt/python/bin/python2 -c import argparse
@tcgeophysics
tcgeophysics / 01.cmake
Created December 28, 2013 12:23
Homebrew log files from failed bob build.
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- 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
-- 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
@tcgeophysics
tcgeophysics / Terminal_outdec28.txt
Last active January 1, 2016 14:19
Terminal output of a failed build of bob using homebrew
Last login: Sat Dec 28 11:03:25 on ttys000
~$ brew update
Already up-to-date.
~$ brew doctor
Your system is ready to brew.
~$ HOMEBREW_MAKE_JOBS=1 brew install -v bob 2>&1
/usr/local/opt/python/bin/python2 -c import nose
/usr/local/opt/python/bin/python2 -c import scipy
/usr/local/opt/python/bin/python2 -c import argparse
/usr/local/opt/python/bin/python2 -c import matplotlib
# the VTK formula. It uses the output from `python-config`.
which_python = "python" + `python -c 'import sys;print(sys.version[:3])'`.strip
python_prefix = `python-config --prefix`.strip
# Python is actually a library. The libpythonX.Y.dylib points to this lib, too.
if File.exist? "#{python_prefix}/Python"
# Python was compiled with --framework:
args << "-DPYTHON_LIBRARY='#{python_prefix}/Python'"
args << "-DPYTHON_INCLUDE_DIR='#{python_prefix}/Headers'"
else
python_lib = "#{python_prefix}/lib/lib#{which_python}"