Skip to content

Instantly share code, notes, and snippets.

@dankegel
dankegel / # guile - 2019-10-19_21-35-43.txt
Created October 20, 2019 04:43
guile on macOS 10.15 - Homebrew build logs
Homebrew build logs for guile on macOS 10.15
Build date: 2019-10-19 21:35:43
12:31:51: Creating resource group General
12:31:51: Creating resource group Internal
12:31:51: Creating resource group Autodetect
12:31:51: SceneManagerFactory for type 'DefaultSceneManager' registered.
12:31:51: Registering ResourceManager for type Material
12:31:51: Registering ResourceManager for type Mesh
12:31:51: Registering ResourceManager for type Skeleton
12:31:51: MovableObjectFactory for type 'ParticleSystem' registered.
12:31:51: ArchiveFactory for archive type FileSystem registered.
12:31:51: ArchiveFactory for archive type Zip registered.
@dankegel
dankegel / gist:7125867
Created October 23, 2013 20:12
Patch to set libassimp.dylib's install_name on MacOSX to the final installed path of the library. This prevents runtime linking problems for apps that link against this library.
--- assimp--3.0.1270-source-only/code/CMakeLists.txt.xyz 2013-10-22 16:37:58.000000000 -0700
+++ assimp--3.0.1270-source-only/code/CMakeLists.txt 2013-10-22 16:40:54.000000000 -0700
@@ -663,6 +663,11 @@
OUTPUT_NAME assimp${ASSIMP_LIBRARY_SUFFIX}
CLEAN_DIRECT_OUTPUT 1
)
+if (APPLE)
+ SET_TARGET_PROPERTIES( assimp PROPERTIES
+ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}"
+ )
@dankegel
dankegel / gist:6788802
Created October 2, 2013 03:31
Also install pkg-config
--- pkgconf-0.9.3/Makefile.in.old 2013-10-01 20:09:58.000000000 -0700
+++ pkgconf-0.9.3/Makefile.in 2013-10-01 20:09:40.000000000 -0700
@@ -30,6 +30,7 @@
install:
mkdir -p $(DESTDIR)$(bindir)
install -c -m755 $(PROG) $(DESTDIR)$(bindir)/$(PROG)
+ ln -s $(PROG) $(DESTDIR)$(bindir)/pkg-config
mkdir -p $(DESTDIR)$(datarootdir)/aclocal
install -c -m644 $(srcdir)/pkg.m4 $(DESTDIR)$(datarootdir)/aclocal/pkg.m4
@dankegel
dankegel / gist:6788768
Created October 2, 2013 03:28
Hacky patch to make --keep-system-cflags and --keep-system-libs the default, for when you install pkgconf to a different prefix than the compiler, and you have a library in the same nonstandard prefix.
--- pkgconf-0.9.3/main.c.old 2013-10-01 19:48:42.000000000 -0700
+++ pkgconf-0.9.3/main.c 2013-10-01 19:51:24.000000000 -0700
@@ -1,3 +1,5 @@
+#define ALWAYS_KEEP 1
+
/*
* main.c
* main() routine, printer functions
@@ -535,6 +537,9 @@
char *required_module_version = NULL;
@dankegel
dankegel / openni2-diagnostic-push.patch
Created September 26, 2013 03:02
Suppress warning from pragma not supported before gcc-4.6.
--- OpenNI2-2.0.0.30/Include/OpenNI.h.old 2013-09-25 09:13:08.000000000 -0700
+++ OpenNI2-2.0.0.30/Include/OpenNI.h 2013-09-25 09:14:42.000000000 -0700
@@ -83,12 +83,12 @@
} YUV422DoublePixel;
/** This special URI can be passed to @ref Device::open() when the application has no concern for a specific device. */
-#if ONI_PLATFORM != ONI_PLATFORM_WIN32
+#if (ONI_PLATFORM != ONI_PLATFORM_WIN32) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 406)
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic push
@dankegel
dankegel / openni2-gcc44.patch
Created September 26, 2013 02:48
I needed this to compile OpenNI2-2.0.0.30 with XCode's g++.
# possible workaround for https://github.com/OpenNI/OpenNI2/issues/11
# as of OpenNI2-2.0.0.30
diff --git a/Source/Drivers/PS1080/DDK/XnDeviceBase.h b/Source/Drivers/PS1080/DDK/XnDeviceBase.h
index c9e740b..5d7cc79 100644
--- a/Source/Drivers/PS1080/DDK/XnDeviceBase.h
+++ b/Source/Drivers/PS1080/DDK/XnDeviceBase.h
@@ -101,7 +101,9 @@ public:
virtual XnStatus UnregisterFromPropertyChange(const XnChar* Module, XnUInt32 propertyId, XnCallbackHandle hCallback);
--- OpenNI2-2.0.0.30/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp.old 2013-09-25 11:35:17.000000000 -0700
+++ OpenNI2-2.0.0.30/Source/Drivers/PS1080/PS1080Console/PS1080Console.cpp 2013-09-25 11:35:49.000000000 -0700
@@ -137,7 +137,7 @@
return false;
}
-bool Version(openni::Device& Device, vector<string>& /*Command*/)
+bool PrintVersion(openni::Device& Device, vector<string>& /*Command*/)
{
openni::Status rc = Device.getProperty(XN_MODULE_PROPERTY_VERSION, &g_DeviceVersion);