cubeb/INSTALL.md

1.5 KiB

Build instructions for libcubeb

Note Also:Cubeb does not currently build under Cygwin, but this is being worked on.

  1. Change directory into the source directory.
  2. Run |autoreconf --install| to generate configure.
  3. Run |./configure| to configure the build.
  4. Run |make| to build.
  5. Run |make check| to run the test suite.

Debugging

Debugging tests can be done like so:

libtool --mode=execute gdb test/test_tone

Windows build prerequisite, using msys2

Cubeb for Windows uses win32 threads

  • Download and install msys2 32-bits from https://msys2.github.io. Let it install in C:\msys32.
  • Download and install 7z from http://www.7-zip.org/.
  • Run msys2 (a shortcut has been added to the start menu, or use the .bat script: C:\msys32\mingw32_shell.bat), and issue the following commands to install the dependencies:
pacman -S git automake autoconf libtool m4 make pkg-config gdb
  • Download a mingw compiler with the WIN32 thread model here. msys2 does not have mingw builds with win32 threads, so we have to install another compiler.
  • Unzip the compiler, and copy all folders in C:\msys32\opt
  • Exit the msys2 shell, and run C:\msys32\autorebase.bat (double clicking works).
  • Open an msys2 shell and follow the build instructions.