# HG changeset patch # User cannam # Date 1190210652 0 # Node ID c8b48bc6db3d8e57599a0e138a8b48b7da600e08 # Parent e4826d5365b83ce0978b5ff05a47c6d98f1aa862 * Add sdkstatic target diff -r e4826d5365b8 -r c8b48bc6db3d Makefile --- a/Makefile Tue Sep 18 14:57:08 2007 +0000 +++ b/Makefile Wed Sep 19 14:04:12 2007 +0000 @@ -17,6 +17,7 @@ # Targets are: # all -- build everything # sdk -- build all the Vamp SDK libraries for plugins and hosts +# sdkstatic -- build only the static versions of the SDK libraries # plugins -- build the example plugins (and the SDK if required) # host -- build the simple Vamp plugin host (and the SDK if required) # test -- build the host and example plugins, and run a quick test @@ -159,6 +160,8 @@ sdk: $(SDK_STATIC) $(SDK_DYNAMIC) $(HOSTSDK_STATIC) $(HOSTSDK_DYNAMIC) +sdkstatic: $(SDK_STATIC) $(HOSTSDK_STATIC) + plugins: $(PLUGIN_TARGET) host: $(HOST_TARGET) diff -r e4826d5365b8 -r c8b48bc6db3d examples/PercussionOnsetDetector.cpp --- a/examples/PercussionOnsetDetector.cpp Tue Sep 18 14:57:08 2007 +0000 +++ b/examples/PercussionOnsetDetector.cpp Wed Sep 19 14:04:12 2007 +0000 @@ -239,6 +239,7 @@ float real = inputBuffers[0][i*2]; float imag = inputBuffers[0][i*2 + 1]; + float sqrmag = real * real + imag * imag; if (m_priorMagnitudes[i] > 0.f) { diff -r e4826d5365b8 -r c8b48bc6db3d vamp-sdk/RealTime.cpp --- a/vamp-sdk/RealTime.cpp Tue Sep 18 14:57:08 2007 +0000 +++ b/vamp-sdk/RealTime.cpp Wed Sep 19 14:04:12 2007 +0000 @@ -56,7 +56,7 @@ #include "RealTime.h" #ifndef _WIN32 -#include "sys/time.h" +#include #endif namespace Vamp {