Prerequisites
Before building Csound on Linux, ensure you have:- CMake
- GCC or Clang compiler toolchain
- Bison and Flex
Method 1: Ubuntu/Debian with apt-get
This is the recommended approach for Ubuntu and Debian-based distributions.Method 2: Using vcpkg for dependencies
Use vcpkg to manage dependencies automatically:Other distributions
For other Linux distributions, adapt the package installation commands to your package manager:Customizing the build
You can customize the build by:- Using CMake options (see Build requirements)
- Creating a custom CMake file:
cmake -DCUSTOM_CMAKE=./platform/linux/custom.cmake - Setting
CMAKE_INSTALL_PREFIXto install in a custom location
Common build configurations
Minimal build
Build with minimal dependencies:Build with all plugins
Build all external opcodes as plugin libraries:Debug build
Build with debug symbols:Static library build
Build Csound as a static library:Troubleshooting
Missing dependencies
If you get errors about missing headers or libraries, ensure all development packages are installed. Look for packages ending in-dev (Debian/Ubuntu) or -devel (Fedora/RHEL).