зеркало из https://github.com/mozilla/cubeb.git
1.5 KiB
1.5 KiB
Build instructions for libcubeb
Note Also:Cubeb does not currently build under Cygwin, but this is being worked on.
- Change directory into the source directory.
- Run |autoreconf --install| to generate configure.
- Run |./configure| to configure the build.
- Run |make| to build.
- 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 inC:\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 havemingw
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 runC:\msys32\autorebase.bat
(double clicking works). - Open an
msys2
shell and follow the build instructions.