From: Andrew Gundersen Date: Thu, 10 Mar 2022 13:22:02 +0000 (-0600) Subject: Updated README.md X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=aaf62b6f51ce7f044ca90a198448ee31f35d0a02;p=portaudio Updated README.md --- diff --git a/README.md b/README.md index ff50bfb..0227dca 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,25 @@ Please feel free to join. See http://www.portaudio.com for details. ## Crimata NodeAudio -The default build of PortAudio sets an absolute install path (rpath?) which causes issues if you want to package the .dylib in a project. To fix this, use install_name_tool to rename the binary: +Build portaudio: - install_name_tool -id "@loader_path/libportaudio.dylib" libportaudio.dylib + ./configure and make -Ideally, this would be set in the build config settings of PortAudio, but I haven't figured out how to do that yet. +At the time of writing (MacOS 12.1) I initially received build errors (-WError) about unused variables, so I had to remove -WError flag from the build rules. + +Anytime the build configuration changes, make sure to run (see PortAudio docs): + + autoreconf -if + +Use find command in usr/local/lib to see install state: + find /usr/local/lib -name "libport*" -maxdepth 1 +The default build of PortAudio sets an absolute install path (usr/local/lib) which causes issues if you want to package the .dylib in a project. To fix this, use install_name_tool to rename the binary using a relative @loader_path: + + install_name_tool -id "@loader_path/libportaudio.dylib" libportaudio.dylib + +Ideally, this would be set in the build config settings of PortAudio, but I haven't figured out how to do that yet. +TODO: Sign on build +Of course, any binary (e.g. libportaudio.dylib) must be signed before distribution.