faudio v2.16.0
|
The following tools and libraries are required to build faudio.
Supported platforms are:
Porting to Linux should be relatively easy but has not been done yet.
A compiler supporting the C99 standard is required. Currently tested are:
The default Windows compiler (Visual C/C++) is not well supported, the MinGW version of GCC is recommended.
The following tools are required to build faudio.
Required for building the libraries and binaries.
At present the only supported generators are Makefiles on Linux OS X, and MSYS Makefiles on Windows. Cygwin Makefiles might work, but is not well tested, and not recommended as the Cygwin compiler might not generate standard Windows binaries.
https://github.com/hanshoglund/modulo
Required for generating headers and low-level language bindings.
http://www.stack.nl/~dimitri/doxygen
Required for generating the documentation.
Optionally used for generating graphs.
http://www.imagemagick.org/script/index.php
Optionally used for converting graphs.
Required for building language bindings and documentation.
These are typically handled by the package mangager, see build and install.
Required for real-time audio streams on all systems.
http://portmedia.sourceforge.net
Required for real-time midi streams on all systems.
http://www.mega-nerd.com/libsndfile
Required for non-real-time audio streams on all systems.
http://sourceforge.net/apps/trac/fluidsynth
Required for using the Fluidsynth audio processor.
TODO get source code
TODO run setup script with correct options
$ ./setup.sh -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=1
or
$ ./setup.sh -G "MSYS Makefiles"
This will download and build dependencies.
TODO if you have another version of a dependency (such as a 32-bit version while building for 64 bits or vice versa) installed (in /usr/local etc) you may need to temporarily uninstall it before running the setup script (you may install again after configuring though, building does not requiring uninstall).
The build commands should always be run from the top directory. They will delegate to the build
directory by default. You can use the BUILD_DIRECTORY
flag to override.
make test
This command builds and runs the standard test suite. This may take several minutes to complete.
make modules
This command builds most of the headers in the include/
subdirectory.
make bindings
This command builds the external language bindings in the bindings/
subdirectory.
make doc
Build options can be changed using any CMake tool, such as cmake-gui
or ccmake
.
You can also change a build setting on the command line. These changes will persist until you change them again, or regenerate the build directory.
$ cmake build -DMY_SETTING=0