Skip to content

OSX silicon #7

@ScottEAdams

Description

@ScottEAdams

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions