macOS
Requirements
- Xcode command line tools
- CMake
- Bison 3.8+ (macOS includes older version)
- libsndfile (optional)
Build with dependencies installed
If you have libsndfile and other dependencies installed:$HOME/Library/Frameworks.
Build without dependencies (vanilla)
Build Csound with minimal dependencies on a clean macOS system:csound_install directory with CoreAudio, CoreMIDI, and statically linked libsndfile.
Build using Homebrew
Use Homebrew to install all dependencies:macOS audio and MIDI backends
- CoreAudio: Native macOS audio
- CoreMIDI: Native macOS MIDI
- JACK: Professional audio routing (optional)
Linux
Ubuntu/Debian
Install dependencies:Linux audio and MIDI backends
- ALSA: Linux native audio and MIDI
- JACK: Professional audio routing
- PulseAudio: Consumer audio system
- PortAudio: Cross-platform audio I/O
- PortMIDI: Cross-platform MIDI I/O
Windows
Requirements
- Visual Studio 2022 (or later)
- CMake
- Chocolatey (for dependencies)
- Flex and Bison
- Git (optional)
- InnoSetup (optional, for installer)
Install dependencies
Open PowerShell as administrator:Clone source
Setup vcpkg
The vcpkg package manager handles dependencies like libsndfile, portaudio, and portmidi:Build Csound
-DINSTALL_PYTHON_INTERFACE=OFF option.
Build installer
Set up Visual Studio runtime paths:Windows audio and MIDI backends
- PortAudio: Cross-platform audio I/O (WASAPI, DirectSound, ASIO)
- PortMIDI: Cross-platform MIDI I/O
Customizing the build
Create aCustom.cmake file for platform-specific options: