-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
If anyone needs OSX silicon support.
brew install vamp-plugin-sdk
Which will give you something like /opt/homebrew/Cellar/vamp-plugin-sdk/2.10.0_1 for Makefile.inc
VAMP_SDK_DIR := /opt/homebrew/Cellar/vamp-plugin-sdk/2.10.0_1
Then
git clone https://github.com/bbc/bbc-vamp-plugins.git
nano Makefile.silicon.osx
include Makefile.inc
# Apple Silicon (ARM64) configuration
CFLAGS := -O3 -arch arm64 -I$(VAMP_SDK_DIR)/include
CXXFLAGS := $(CFLAGS)
PLUGIN_EXT := .dylib
LDFLAGS := -arch arm64 -dynamiclib $(VAMP_SDK_DIR)/lib/libvamp-sdk.a -exported_symbols_list src/vamp-plugin.list -install_name $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
PLUGIN := $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
CXX := clang++
CC := clang
OBJECTS := $(SOURCES:.cpp=.o)
OBJECTS := $(OBJECTS:.c=.o)
$(PLUGIN): $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS)
clean:
rm -f $(OBJECTS)
distclean: clean
rm -f $(PLUGIN)
And then just build with make -f Makefile.silicon.osx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels