Skip to content

Instantly share code, notes, and snippets.

View dakcarto's full-sized avatar

Larry Shaffer dakcarto

  • Black Hills, South Dakota
View GitHub Profile
@dakcarto
dakcarto / pdal-unit-boost-error.txt
Created January 30, 2014 22:15
pdal unit tests, boost error
Thu Jan 30 14:08:30 | MacBook Pro @ /Volumes/Scratch/osgeo4mac-tmp/pdal-WGI0/PDAL-0.9.8/build
$ ctest -VV .
UpdateCTestConfiguration from :/Volumes/Scratch/osgeo4mac-tmp/pdal-WGI0/PDAL-0.9.8/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/Volumes/Scratch/osgeo4mac-tmp/pdal-WGI0/PDAL-0.9.8/build/DartConfiguration.tcl
Test project /Volumes/Scratch/osgeo4mac-tmp/pdal-WGI0/PDAL-0.9.8/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
@dakcarto
dakcarto / pdal-swig.diff
Last active August 29, 2015 13:55
pdal swig build fixes
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index efdc796..4f19010 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -1,11 +1,12 @@
if (SWIG_FOUND)
find_package(PythonLibs)
include_directories(${PYTHON_INCLUDE_PATH})
+ include_directories("${PDAL_SOURCE_DIR}/include")
set_source_files_properties(pdal.i PROPERTIES CPLUSPLUS ON)
@dakcarto
dakcarto / pdal-mrsid-9.0_Mac.txt
Last active August 29, 2015 13:55
MrSID 9.0.0 build error with PDAL-master
[ 59%] Building CXX object src/CMakeFiles/pdalcpp.dir/drivers/mrsid/Reader.cpp.o
cd /Volumes/Scratch/osgeo4mac-tmp/pdal-sAvV/build/src && /usr/local/Library/ENV/4.3/clang++
-DBOOST_ALL_NO_LIB -DHAVE_HEXER=1 -DHAVE_MRSID=1 -DHAVE_P2G=1 -DHAVE_PYTHON=1 -Dpdalcpp_EXPORTS
-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual
-Wfloat-equal -Wredundant-decls -Wno-long-long -fPIC -I/Volumes/Scratch/osgeo4mac-tmp/pdal-sAvV/boost
-I/Volumes/Scratch/osgeo4mac-tmp/pdal-sAvV/build/include -I/Volumes/Scratch/osgeo4mac-tmp/pdal-sAvV/src/../include
-I/usr/local/include -I/usr/local/include/soci -I/usr/local/opt/sqlite/include -I/usr/local/opt/libxml2/include/libxml2
-I/usr/local/opt/mrsid-sdk/include -isystem /usr/local/Frameworks/Python.framework/Headers
-isystem /Library/Python/2.7/site-packages/numpy-override/numpy/core/include -F/usr/local/Frameworks
-o CMakeFiles/pdalcpp.dir/drivers/mrsid/Reader.cpp.o
@dakcarto
dakcarto / points2grid.rb
Created February 2, 2014 19:36
Temporary points2grid Homebrew formula
require 'formula'
class Points2grid < Formula
homepage 'https://github.com/CRREL/points2grid'
url 'https://github.com/CRREL/points2grid/archive/1.1.0.tar.gz'
sha1 'aef7e124b47022bee85bb3585f5996af5cb132e3'
depends_on 'cmake' => :build
depends_on 'boost'
@dakcarto
dakcarto / FindJNI-patch.diff
Last active August 29, 2015 13:55
CMake FindJNI module patch
diff --git a/Modules/CMakeFindJavaCommon.cmake b/Modules/CMakeFindJavaCommon.cmake
index fcf0389..bd515bd 100644
--- a/Modules/CMakeFindJavaCommon.cmake
+++ b/Modules/CMakeFindJavaCommon.cmake
@@ -39,3 +39,13 @@ else()
endif()
unset(_ENV_JAVA_HOME)
endif()
+
+set(_JAVA_HOME_FW 0)
@dakcarto
dakcarto / pdal_cmake-config-output.txt
Created February 3, 2014 22:52
PDAL CMake config files for upcoming Homebrew formula
==> Checking out revision bfdf976445582ccdc27a1a6ab1ee5ccd68988759
git checkout-index -a -f --prefix=/Volumes/Scratch/osgeo4mac-tmp/pdal-DFeu/
/usr/local/Library/Taps/dakcarto-osgeo4mac/Formula/pdal.rb: loading /usr/local/Library/Formula/python.rb
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pdal/1.0.0-bfdf976 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DPDAL_EMBED_BOOST=FALSE -DWITH_PKGCONFIG=TRUE -DWITH_NITRO=FALSE -DPYTHON_INCLUDE_DIR=/usr/local/Frameworks/Python.framework/Headers -DPYTHON_LIBRARY=/usr/local/Frameworks/Python.framework/Python -DWITH_SWIG_PYTHON=TRUE -DWITH_P2G=TRUE -DWITH_HEXER=TRUE -DWITH_SQLITE=TRUE -DWITH_MRSID=TRUE -DMRSID_ROOT=/usr/local/opt/mrsid-sdk -DWITH_ORACLE=FALSE
-- 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 A
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c705ab..1c1bdfb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -233,6 +233,7 @@ endif(WIN32)
set(PDAL_EMBED_BOOST TRUE CACHE BOOL "use embedded rather than system boost")
if (NOT PDAL_EMBED_BOOST)
+ set(BOOST_LINKAGE "LINK_PUBLIC;general")
find_package(Boost 1.53 COMPONENTS program_options thread iostreams filesystem system unit_test_framework random)
diff --git a/CMake/FindLibLAS.cmake b/CMake/FindLibLAS.cmake
index 4a1ba35..4b7fdc7 100644
--- a/CMake/FindLibLAS.cmake
+++ b/CMake/FindLibLAS.cmake
@@ -14,7 +14,7 @@ ENDIF( LIBLAS_INCLUDE_DIR )
FIND_PATH( LIBLAS_INCLUDE_DIR liblas/capi/liblas.h )
FIND_LIBRARY( LIBLAS_LIBRARY
- NAMES liblas_c liblas )
+ NAMES liblas_c liblas las_c las )
diff --git a/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h b/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h
--- a/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h
+++ b/Code/UtilitiesAdapters/boost/type_traits/is_contiguous.h
@@ -38,12 +38,15 @@
// forward declarations
namespace std {
-template <typename T, std::size_t N> class array;
-template <typename T, typename TAllocator> class vector;
+// template <typename T, std::size_t N> class array;