Skip to content

Instantly share code, notes, and snippets.

@scpeters
scpeters / disable_gdal.patch
Last active August 29, 2015 13:56
patch to disable GDAL on osx
diff -r d6781bae8772 cmake/SearchForStuff.cmake
--- a/cmake/SearchForStuff.cmake Mon Feb 24 09:56:33 2014 -0800
+++ b/cmake/SearchForStuff.cmake Mon Feb 24 10:24:48 2014 -0800
@@ -476,15 +476,15 @@
########################################
# Find gdal
-include (FindGDAL)
-if (NOT GDAL_FOUND)
- message (STATUS "Looking for libgdal - not found")
@scpeters
scpeters / brew_python_fix.patch
Last active August 29, 2015 13:56
patch to fix building gazebo on osx when homebrew python is installed
diff -r 47c945888fb3 deps/opende/CMakeLists.txt
--- a/deps/opende/CMakeLists.txt Fri Feb 21 13:04:10 2014 -0700
+++ b/deps/opende/CMakeLists.txt Mon Feb 24 15:35:17 2014 -0800
@@ -3,7 +3,7 @@
include (CheckFunctionExists)
include (CheckLibraryExists)
-include_directories(SYSTEM
+include_directories(
${CMAKE_CURRENT_BINARY_DIR}
@scpeters
scpeters / gist:9240372
Created February 26, 2014 22:45
open splice failure part 2
brew install opensplice --verbose
==> Downloading https://github.com/osrf/opensplice/releases/download/6.3.3/opensplice.tar.gz
Already downloaded: /Library/Caches/Homebrew/opensplice-6.3.3.tar.gz
==> Verifying opensplice-6.3.3.tar.gz checksum
tar xf /Library/Caches/Homebrew/opensplice-6.3.3.tar.gz
==> Patching
/usr/bin/patch -g 0 -f -p1 -i 000-homebrew.diff
patching file src/api/dcps/isocpp/include/dds/core/detail/ref_traits.hpp
patching file CMakeLists.txt
patching file minimal_build.sh
@scpeters
scpeters / gist:9239969
Created February 26, 2014 22:23
open splice mountain lion
brew install opensplice --verbose
==> Downloading https://github.com/osrf/opensplice/releases/download/6.3.3/opensplice.tar.gz
Already downloaded: /Library/Caches/Homebrew/opensplice-6.3.3.tar.gz
==> Verifying opensplice-6.3.3.tar.gz checksum
tar xf /Library/Caches/Homebrew/opensplice-6.3.3.tar.gz
==> cmake .. -DOSPL_BUILD_CONFIG=x86_64.darwin10_clang-dev -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opensplice/6.3.3 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-- 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
@scpeters
scpeters / gist:9394855
Created March 6, 2014 17:26
hidden_symbols osx backtrace
$ lldb test/integration/INTEGRATION_physics
Current executable set to 'test/integration/INTEGRATION_physics' (x86_64).
(lldb) r --gtest_filter="*Empty*"
Process 44706 launched: '/Users/osrf/ws/gazebo/build_isolated/gazebo/devel/test/integration/INTEGRATION_physics' (x86_64)
Note: Google Test filter = *Empty*
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from PhysicsEngines/PhysicsTest
[ RUN ] PhysicsEngines/PhysicsTest.EmptyWorld/0
[Msg] Waiting for master.
@scpeters
scpeters / gist:9812058
Created March 27, 2014 16:43
transport shutdown heisenbug
$ cat ~/bin/gz_build_test_scpeters.patch
diff -r 9410f80cf7a7 gazebo/transport/Connection.hh
--- a/gazebo/transport/Connection.hh Wed Dec 18 16:33:56 2013 -0800
+++ b/gazebo/transport/Connection.hh Thu Dec 19 11:01:23 2013 -0800
@@ -261,7 +261,16 @@
}
else
{
- gzerr << "Header is empty\n";
+ gzerr << "Header is empty:"
@scpeters
scpeters / gist:9846432
Created March 29, 2014 01:13
SensorManager_TEST seg-fault removing projectors
$ while gazebo/sensors/UNIT_SensorManager_TEST ; do date; done
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from SensorManager_TEST
[ RUN ] SensorManager_TEST.InitEmpty
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.191
[Dbg] [ServerFixture.cc:144] ServerFixture load in 0.9 seconds, timeout after 600 seconds
[Dbg] [ServerFixture.cc:95] ServerFixture::Unload
@scpeters
scpeters / ogre_find_freetype.diff
Last active August 29, 2015 14:01
ogre_find_freetype
diff -r 3467d92e149c CMake/Packages/FindFreetype.cmake
--- a/CMake/Packages/FindFreetype.cmake Sat Jan 14 18:28:46 2012 +0100
+++ b/CMake/Packages/FindFreetype.cmake Wed May 28 15:29:39 2014 -0700
@@ -42,7 +42,7 @@
findpkg_framework(FREETYPE)
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
-find_path(FREETYPE_INCLUDE_DIR NAMES freetype/freetype.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS} PATH_SUFFIXES freetype2)
+find_path(FREETYPE_INCLUDE_DIR NAMES freetype.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS} PATH_SUFFIXES freetype2)
find_path(FREETYPE_FT2BUILD_INCLUDE_DIR NAMES ft2build.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS})
@scpeters
scpeters / gist:1118d601dbb5b1b6555c
Created June 10, 2014 00:51
Backtrace 2 from RemoveModelUnPaused

Console output:

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from WorldTest
[ RUN      ] WorldTest.RemoveModelUnPaused
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.182
[Dbg] [ServerFixture.cc:144] ServerFixture load in 0.9 seconds, timeout after 600 seconds
@scpeters
scpeters / gist:c1afdbeaaa5f7068bdfb
Created June 10, 2014 00:48
Backtrace 1 from RemoveModelUnPaused

Console output

[ RUN      ] WorldTest.RemoveModelUnPaused
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.182
[Dbg] [ServerFixture.cc:144] ServerFixture load in 1 seconds, timeout after 600 seconds
Segmentation fault (core dumped)