Skip to content

Instantly share code, notes, and snippets.

@NikolausDemmel
NikolausDemmel / link_to_cv_bridge.patch
Created December 7, 2013 12:10
Patch fixing compilation of stereo_image_proc hydro release 1.11.4
@NikolausDemmel
NikolausDemmel / $ brew --config
Created December 10, 2013 16:39
Homebrew config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 0ef2bf924f24484565b9b088fc312a50767e1d6a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
Clang: 5.0 build 500
@NikolausDemmel
NikolausDemmel / compilation
Created December 10, 2013 17:24
openni2 compilation
$ brew install openni2 -v
==> Downloading https://launchpad.net/~v-launchpad-jochen-sprickerhof-de/+archive/pcl/+files/openni2_2.1.0.4.orig.tar.gz
Already downloaded: /Library/Caches/Homebrew/openni2-2.1.0.4.tar.gz
==> Verifying openni2-2.1.0.4.tar.gz checksum
tar xf /Library/Caches/Homebrew/openni2-2.1.0.4.tar.gz
==> make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ThirdParty/PSCommon/XnLib/Source
mkdir -p ../Bin/Intermediate/x64-Release/libXnLib.a
mkdir -p ../Bin/x64-Release
clang++ -c -arch i386 -arch x86_64 -msse3 -Wall -O2 -DNDEBUG -I../Include -I/opt/local/include -fPIC -fvisibility=hidden -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnDump.o XnDump.cpp
--- OpenNI2-2.2.0.30/ThirdParty/GL/glh/glh_linear.h.orig 2013-10-09 15:29:17.000000000 -0700
+++ OpenNI2-2.2.0.30/ThirdParty/GL/glh/glh_linear.h 2013-10-09 15:29:38.000000000 -0700
@@ -77,7 +77,7 @@
#define GLH_EPSILON GLH_REAL(10e-6)
#define GLH_PI GLH_REAL(3.1415926535897932384626433832795)
-#define equivalent(a,b) (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false)
+#define glh_equiv(a,b) (((a < b + GLH_EPSILON) && (a > b - GLH_EPSILON)) ? true : false)
namespace glh
@NikolausDemmel
NikolausDemmel / gist:7929549
Created December 12, 2013 15:13
Mongodb-dev fails to compile on OS X 10.9
$ brew install mongodb-dev -v
==> Downloading https://github.com/mongodb/mongo/archive/r2.4.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/mongodb-dev-2.4.4.tar.gz
==> Verifying mongodb-dev-2.4.4.tar.gz checksum
tar xf /Library/Caches/Homebrew/mongodb-dev-2.4.4.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file SConstruct
==> scons --use-system-boost --prefix=/usr/local/Cellar/mongodb-dev/2.4.4 install
scons: Reading SConscript files ...
# BSD 2-Clause License
#
# Copyright (c) 2014-2019, Nikolaus Demmel
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
@NikolausDemmel
NikolausDemmel / FindPythonLibs 2.8.12.1
Last active August 29, 2015 13:57
Testing cmake FindPythonLibs module on Mac OS X 10.9 with brewed python installed
-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-- %%%%%%%% CONFIGURATION VERSION FIND_INTERP NO
-- % CMAKE_MODULE_PATH = ~/work/CMake/Modules
-- % PYTHON_LIBRARY =
-- % PYTHON_INCLUDE_DIR =
-- % Not looking for PythonInterp
-- % Looking for latest version
-- %
-- %%%%%%%% FIND
-- %%% Not Finding PythonInterp
@NikolausDemmel
NikolausDemmel / gist:9411617
Created March 7, 2014 13:37
rviz crash on exit
Process: rviz [70508]
Path: /opt/ros/*/rviz
Identifier: rviz
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [55091]
Responsible: iTerm [1177]
User ID: 501
Date/Time: 2014-03-07 14:35:10.177 +0100
@NikolausDemmel
NikolausDemmel / test-pip-deps.rb
Last active August 29, 2015 13:57
Test case for pip dependecies in homebrew.
require "formula"
class TestPipDeps < Formula
homepage "http://www.ros.org/wiki/catkin"
url "https://github.com/ros-gbp/catkin-release/archive/release/hydro/catkin/0.5.86-0.tar.gz"
version "0.5.86-0"
sha1 "a5cf127b78d54c665586be2434aece917bae064e"
depends_on "empy" => :python
depends_on "catkin-pkg" => :python
@NikolausDemmel
NikolausDemmel / ros-hydro-opencv2-disable-cuda.patch
Created March 18, 2014 17:18
Patch to disable cuda for opencv2 to build ros hydro on OS X.
--- CMakeLists.txt-orig 2014-03-18 18:10:39.000000000 +0100
+++ CMakeLists.txt 2014-03-18 18:10:58.000000000 +0100
@@ -126,7 +126,7 @@
OCV_OPTION(WITH_1394 "Include IEEE1394 support" ON IF (NOT ANDROID AND NOT IOS) )
OCV_OPTION(WITH_AVFOUNDATION "Use AVFoundation for Video I/O" ON IF IOS)
OCV_OPTION(WITH_CARBON "Use Carbon for UI instead of Cocoa" OFF IF APPLE )
-OCV_OPTION(WITH_CUDA "Include NVidia Cuda Runtime support" ON IF (CMAKE_VERSION VERSION_GREATER "2.8" AND NOT ANDROID AND NOT IOS) )
+OCV_OPTION(WITH_CUDA "Include NVidia Cuda Runtime support" OFF IF (CMAKE_VERSION VERSION_GREATER "2.8" AND NOT ANDROID AND NOT IOS) )
OCV_OPTION(WITH_CUFFT "Include NVidia Cuda Fast Fourier Transform (FFT) library support" ON IF (CMAKE_VERSION VERSION_GREATER "2.8" AND NOT ANDROID AND NOT IOS) )
OCV_OPTION(WITH_CUBLAS "Include NVidia Cuda Basic Linear Algebra Subprograms (BLAS) libr