Preface
This is a small guide of how to compile and enable portaudio in beatoraja on osx, the guide includes some manual modifications, so it assumes that readers have the basic knowledge of computer and git.
This guide’s target is building the jportaudio.dylib on macos and make beatoraja reads it.
Process
- Download
portaudiolibrary bybrew install portaudio - Copy
portaudio.hfile to an library path like/usr/local/inlcude, you can find the file under/opt/homebrew/Cellar/portaudio[version]/include git clone https://github.com/philburk/portaudio-java- Edit
CMakeLists.txt
1 | cmake_minimum_required(VERSION 3.2) |
-
mkdir build cmake -B build cd build