You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-configurable install location prevents packaging on Homebrew #12
At commit 028c6e8, the value of PLUGIN_INSTALL_DIR (which determines where plug-ins are installed) was hard-coded to $HOME/Library/csound/<csound_version>/plugins64 on macOS when Csound uses double-precision samples. This means that plug-ins can’t be installed on macOS using Homebrew, as Homebrew does not permit installing files at that location. Not building Csound plug-ins using Homebrew isn’t really an option, as some Homebrew users rely on these plug-ins being there: https://listserv.heanet.ie/cgi-bin/wa?A1=ind2107&L=CSOUND-DEV#18. Please support a configurable PLUGIN_INSTALL_DIR.
There is no current maintainer for this repository, but we are happy to take a PR on this. In any case, the default location should be $HOME/Library/csound/<csound_version>/plugins64, because that is the default CS_PLUGIN_DIR that Csound uses.
@dvzrv I’ll leave reopening this issue to the repository owners; as far as Homebrew is concerned, this issue is resolved. Csound plugins are managed using a resource block (here), for which no release is necessary.
Root Cause of Regression (PR MSVC fixes and VCPKG integration #10 rebase): Commit 76e5d49 (Fix PLUGIN_INSTALL_DIR for windows) was originally authored on Sep 13, 2021—before PR Set PLUGIN_INSTALL_DIR as cache entry and fix building FluidSynth opcodes on macOS #13 existed—as part of the long-lived feature/vcpkgBuild branch (PR MSVC fixes and VCPKG integration #10). When that branch was rebased onto develop on June 21, 2023 and merged on July 2, 2023 (4cbd806), the rebase conflict resolution replaced the entire if(USE_DOUBLE) ... else() ... endif() block in CMakeLists.txt with the Sep 2021 version, dropping CACHE PATH "Plugin install path" and reverting set(PLUGIN_INSTALL_DIR ...) back to a normal (non-cache) variable that overrides command-line -DPLUGIN_INSTALL_DIR=... definitions.
Propagation to 7.x / Root: When the 7.x directory was created from 6.x (d31b575) and later flattened to the repository root (cb0005e), it inherited the regressed non-cache set(PLUGIN_INSTALL_DIR ...) statements.
Activity
vlazzarini commentedon Feb 2, 2022
There is no current maintainer for this repository, but we are happy to take a PR on this. In any case, the default location should be $HOME/Library/csound/<csound_version>/plugins64, because that is the default CS_PLUGIN_DIR that Csound uses.
dvzrv commentedon Feb 4, 2022
@nwhetsell this is not really fixed, as there is no new release yet and downstreams can not package this software.
@vlazzarini A patch level release would be awesome! Thanks! :)
nwhetsell commentedon Feb 4, 2022
@dvzrv I’ll leave reopening this issue to the repository owners; as far as Homebrew is concerned, this issue is resolved. Csound plugins are managed using a
resourceblock (here), for which no release is necessary.vlazzarini commentedon Feb 4, 2022
@dvzrv there's an open issue with hdr5 opcodes, which is been looked at by John. I can do a source code release once that's cleared.
vlazzarini commentedon Feb 8, 2022
@dvzrv release is done now that the hdrf5 opcodes were fixed
https://github.com/csound/plugins/releases/tag/1.0.2
nwhetsell commentedon Oct 29, 2026
PLUGIN_INSTALL_DIRregressed to being non-configurable again at 76e5d49. I previously fixed this in PR #13.PLUGIN_INSTALL_DIRshould be set as a cache entry so that packagers can package these plug-ins.vlazzarini commentedon Oct 29, 2026
Can you make a PR against develop with what you need?
kunstmusik commentedon Oct 29, 2026
I've got a fix, setting up PR now.
kunstmusik commentedon Oct 29, 2026
@nwhetsell Could you check #66 and verify it's the right fix for the issue?
For reference, AI diagnosis as to what happened is as follows:
Diagnosis
PLUGIN_INSTALL_DIRas cache entry and fix building FluidSynth opcodes on macOS #13): On Feb 2, 2022, commit33c7db3(merged in9b9911bvia PR SetPLUGIN_INSTALL_DIRas cache entry and fix building FluidSynth opcodes on macOS #13) updatedCMakeLists.txtto setPLUGIN_INSTALL_DIRon macOS (APPLE) as a CMake cache entry (CACHE PATH "Plugin install path"), allowing packagers such as Homebrew to override-DPLUGIN_INSTALL_DIR=....76e5d49(Fix PLUGIN_INSTALL_DIR for windows) was originally authored on Sep 13, 2021—before PR SetPLUGIN_INSTALL_DIRas cache entry and fix building FluidSynth opcodes on macOS #13 existed—as part of the long-livedfeature/vcpkgBuildbranch (PR MSVC fixes and VCPKG integration #10). When that branch was rebased ontodevelopon June 21, 2023 and merged on July 2, 2023 (4cbd806), the rebase conflict resolution replaced the entireif(USE_DOUBLE) ... else() ... endif()block inCMakeLists.txtwith the Sep 2021 version, droppingCACHE PATH "Plugin install path"and revertingset(PLUGIN_INSTALL_DIR ...)back to a normal (non-cache) variable that overrides command-line-DPLUGIN_INSTALL_DIR=...definitions.7.xdirectory was created from6.x(d31b575) and later flattened to the repository root (cb0005e), it inherited the regressed non-cacheset(PLUGIN_INSTALL_DIR ...)statements.nwhetsell commentedon Oct 29, 2026
@kunstmusik Looks good to me.
kunstmusik commentedon Oct 29, 2026
@nwhetsell Thanks for reporting and verifying! WIll merge that PR and close this issue.
fix(cmake): set PLUGIN_INSTALL_DIR as a cache entry