Skip to content

Instantly share code, notes, and snippets.

@chambbj
chambbj / libusb-devel.rb
Created March 28, 2012 18:24
My libusb-devel formula for Homebrew (for PCL installation on OS X Lion)
require 'formula'
class LibusbDevel < Formula
url 'https://github.com/OpenNI/OpenNI/blob/4dbf64bc45b880bfda6aa6bb2a30d1ddd03a8c65/Platform/Linux/Build/Prerequisites/libusb-1.0.8-osx.tar.bz2?raw=true'
homepage 'http://www.libusb.org/'
md5 '8ad20ec24b7612caf75a059a03f21dd8'
depends_on "automake" => :build
depends_on "libtool" => :build
@chambbj
chambbj / pdal.rb
Created March 28, 2012 18:26
My pdal formula for Homebrew (untested)
require 'formula'
class Pdal < Formula
homepage 'http://pointcloud.org'
url 'https://github.com/PDAL/PDAL/zipball/0.6.0'
md5 'e21c2227a9302f033f8ecf513baedf51'
version '0.6.0'
def options
[
@chambbj
chambbj / gist:2229405
Created March 28, 2012 18:53
GeoTIFF / GDAL issues
Bradleys-MacBook-Pro:make bchambers$ make
[ 29%] Built target pdalboost
[ 29%] Building CXX object src/CMakeFiles/pdal.dir/drivers/las/GeotiffSupport.cpp.o
In file included from /usr/local/include/cpl_conv.h:35,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.cpp:35:
/usr/local/include/cpl_vsi.h:173: error: declaration of C function ‘void* _GTIFcalloc(size_t)’ conflicts with
/usr/local/include/cpl_vsi.h:172: error: previous declaration ‘void* _GTIFcalloc(size_t*)’ here
In file included from /usr/local/include/cpl_conv.h:36,
from /Users/bchambers/Documents/dev/PDAL/src/drivers/las/GeotiffSupport.hpp:42,
@chambbj
chambbj / gist:2252331
Created March 30, 2012 15:37
Missing 3rd party lib Homebrew formulae (URGENT)
@chambbj
chambbj / loki.rb
Created March 30, 2012 15:39
Loki Homebrew issues
require 'formula'
class Loki < Formula
url 'http://downloads.sourceforge.net/project/loki-lib/Loki/Loki%200.1.7/loki-0.1.7.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Floki-lib%2Ffiles%2FLoki%2FLoki%25200.1.7%2F&ts=1333050366&use_mirror=softlayer'
homepage 'http://loki-lib.sourceforge.net/index.php?n=Main.HomePage'
md5 '8261e83cf2c904fd915823336e7116bd'
version '0.1.7'
def install
system "make" # Separate steps or install fails
@chambbj
chambbj / tvmet.rb
Created March 30, 2012 16:06
My tvmet formula for Homebrew
require 'formula'
class Tvmet < Formula
url 'http://downloads.sourceforge.net/project/tvmet/Tar.Gz_Bz2%20Archive/1.7.2/tvmet-1.7.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftvmet%2Ffiles%2F&ts=1333123044&use_mirror=softlayer'
homepage 'http://tvmet.sourceforge.net'
md5 '8e1b2ec67ebec65f680a8bd3ea38a656'
version '1.7.2'
def install
system "./configure", "--prefix=#{prefix}", "--disable-cppunit"
@chambbj
chambbj / liblas.rb
Created March 30, 2012 16:11
My updated libLAS formula for Homebrew
require 'formula'
class Liblas < Formula
homepage 'http://liblas.org'
url 'http://download.osgeo.org/liblas/libLAS-1.7.0.tar.gz'
md5 '03de7a61132902846c12f3b28c38eb37'
depends_on 'cmake' => :build
depends_on 'libgeotiff'
depends_on 'gdal'
@chambbj
chambbj / gist:2253610
Created March 30, 2012 18:12
OCI on Mac OS X
export ORACLE_HOME=[your installation path]/instantclient_10_2
export LD_LIBRARY_PATH=$ORACLE_HOME
export DYLD_LIBRARY_PATH=$ORACLE_HOME
@chambbj
chambbj / gist:2638789
Created May 8, 2012 19:44
libLAS SRS example
std::string proj_str ("+proj=utm +zone=19 +datum=WGS84");
liblas::SpatialReference srs;
srs.SetProj4(proj_str);
liblas::Header header;
header.SetSRS(srs);
liblas::Writer* writer = new liblas::Writer(ofs, header);
@chambbj
chambbj / gist:2711166
Created May 16, 2012 15:20
PDAL tests failing
$ mkdir build && cd build
$ mkdir osx && cd osx
$ cmake ../.. \
-DWITH_GDAL=ON \
-DWITH_GEOTIFF=ON \
-DWITH_LASZIP=ON \
-DWITH_TESTS=ON \
-DWITH_ORACLE=ON