VBAP for Apple ARM

i.stevenson's icon

Hi Folks, is there a simple VBAP, like the old Ville Pulkki object, for Apple ARM?
It used to be built by Nathan Wolek: https://github.com/nwolek/vbap
Is it lurking in any packages (apart from spat)?
Thanks, Ian

Shakeeb Alireza's icon

It's straightforward to build vbap on a Mac arm-based computer.. I have forked the original vbap repo and updated it for Max 8

You will need Xcode and cmake to be installed, and then do the following

git clone --recursive https://github.com/shakfu/vbap.git
cd vbap
./build_macos.sh

This should solve your problems.

i.stevenson's icon

Thanks for providing that Shakeeb, greatly appreciated!

I haven't built a Max external for many years, so this a good opportunity to refresh. The build ran successfully but unfortunately I got stuck on vbap: cannot be loaded due to system security policy

I ran :xattr -d com.apple.quarantine /Users/128552/Documents/Max\ 8/Packages/VBAP/externals/vbap.mxo

but no luck, I still get: vbap: cannot be loaded due to system security policy

I also not that your zip did not include define_loudspeakers.mxo

Shakeeb Alireza's icon

Hi Ian,

I've updated my prior post with a more permanent solution and removed the older version. I've slightly changed the build script to solve your quarantine issues, and the build now also provides define_loudspeakers.mxo as well.

Please follow the instructions in that post and let me know if you have any issues.

S

i.stevenson's icon

Splendid! Thank you so much Shakeeb, it works perfectly.

Shakeeb Alireza's icon

Sure. Glad it worked for you.

Naoki's icon

i'm trying to build but getting an error:

vbap % ./build_macos.sh

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:4 (project):

No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:4 (project):

No CMAKE_CXX_COMPILER could be found.

I've tried various solutions from the web without any luck. May be you can help?

i.stevenson's icon

Sorry, not sure I can help. I did the following:

1. install xcode commandline tools
2. install cmake
3. check that git is installed, and if not, install
4. run the commands detailed in Shakeeb's post

smk's icon

I'm not sure if I understand the instructions, since I'm not very familiar with building externals, but I get the following error:

vbap % ./build_macos.sh

./build_macos.sh: line 1: cmake: command not found

I did install cmake though.

Any help is much appreciated.

pdelges's icon

There used to be a build for ARM available here.

Shakeeb Alireza's icon

You can download a package for macOS arm64 here: https://github.com/shakfu/vbap/releases/tag/0.0.1pre

Note this is not notarized, so Max will bring up a dialogue to ask to make it work for you.