Core requirements
The following requirements apply to all platforms:CMake
Csound uses the CMake build system. Download and install from cmake.org.C compiler toolchain
Csound is mostly written in the C language and requires a complete installation of C development tools:- macOS: Xcode Command Line Tools or full Xcode
- Linux: GCC or Clang (typically via
build-essentialpackage) - Windows: Visual Studio 2022 or MinGW-w64
Flex and Bison
The Csound parser requires Bison and Flex to be installed. Recent versions are recommended:- Bison 3.8 or later
- Flex 2.6 or later
macOS includes older versions of Bison and Flex. You’ll need to install newer versions via Homebrew or build from source.
Optional components
Git
A distributed version control system to clone and acquire the Csound sources. While you can download the source as a zip from GitHub, having Git installed makes it easier to interact with the Csound source and sync with the latest changes.C++ compiler toolchain
A few components are written in C++. For these to be built, a complete installation of C++ development tools is necessary. Most modern systems include C++ compilers alongside C compilers.Libsndfile
For soundfile I/O, Csound uses libsndfile. For this functionality to be present, this library needs to be installed in the system.This requirement can be disabled in the CMake build with the
USE_LIBSNDFILE=0 option.Libsamplerate
Libsamplerate (Secret Rabbit Code) is used for high-quality sample rate conversion. When disabled, Csound will use linear interpolation for sample rate conversion.Platform-specific dependencies
macOS
Linux (Ubuntu/Debian)
Windows
Useful CMake options
The following options may be useful to configure the build according to the local platform conditions.CMAKE_INSTALL_PREFIX
This allows the installation to be placed in a custom location (defaults to/usr/local). The option takes the top-level installation directory.