diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2007-08-07 14:52:05 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:19:40 +0200 |
| commit | b0080e69d64ce69e21c8ce1b22b1bb7f888f1e58 (patch) | |
| tree | b51ebcd31a5280b4f4e9e45484f07d9b35723743 /doc/doxygen/compiling.txt | |
| parent | 0fbcd74a04713a4725d2f346a493121b623d60ab (diff) | |
Check in of new version 4.0.0 distribution (GS).
Diffstat (limited to 'doc/doxygen/compiling.txt')
| -rw-r--r-- | doc/doxygen/compiling.txt | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/doc/doxygen/compiling.txt b/doc/doxygen/compiling.txt new file mode 100644 index 0000000..4cc769f --- /dev/null +++ b/doc/doxygen/compiling.txt @@ -0,0 +1,76 @@ +/*! \page compiling Debugging & Compiling + +\section debug Debugging + +If you are having problems getting RtAudio to run on your system, make sure to pass a value of \e true to the RtAudio::showWarnings() function (this is the default setting). A variety of warning messages will be displayed which may help in determining the problem. Also, try using the programs included in the <tt>tests</tt> directory. The program <tt>probe</tt> displays the queried capabilities of all hardware devices found for all APIs compiled. When using the ALSA API, further information can be displayed by defining the preprocessor definition __RTAUDIO_DEBUG__. + +\section compile Compiling + +In order to compile RtAudio for a specific OS and audio API, it is necessary to supply the appropriate preprocessor definition and library within the compiler statement: +<P> + +<TABLE BORDER=2 COLS=5 WIDTH="100%"> +<TR BGCOLOR="beige"> + <TD WIDTH="5%"><B>OS:</B></TD> + <TD WIDTH="5%"><B>Audio API:</B></TD> + <TD WIDTH="5%"><B>C++ Class:</B></TD> + <TD WIDTH="5%"><B>Preprocessor Definition:</B></TD> + <TD WIDTH="5%"><B>Library or Framework:</B></TD> + <TD><B>Example Compiler Statement:</B></TD> +</TR> +<TR> + <TD>Linux</TD> + <TD>ALSA</TD> + <TD>RtApiAlsa</TD> + <TD>__LINUX_ALSA__</TD> + <TD><TT>asound, pthread</TT></TD> + <TD><TT>g++ -Wall -D__LINUX_ALSA__ -o probe probe.cpp RtAudio.cpp -lasound -lpthread</TT></TD> +</TR> +<TR> + <TD>Linux</TD> + <TD>OSS</TD> + <TD>RtApiOss</TD> + <TD>__LINUX_OSS__</TD> + <TD><TT>pthread</TT></TD> + <TD><TT>g++ -Wall -D__LINUX_OSS__ -o probe probe.cpp RtAudio.cpp -lpthread</TT></TD> +</TR> +<TR> + <TD>Linux or Macintosh OS-X</TD> + <TD>Jack Audio Server</TD> + <TD>RtApiJack</TD> + <TD>__UNIX_JACK__</TD> + <TD><TT>jack, pthread</TT></TD> + <TD><TT>g++ -Wall -D__UNIX_JACK__ -o probe probe.cpp RtAudio.cpp `pkg-config --cflags --libs jack` -lpthread</TT></TD> +</TR> + +<TR> + <TD>Macintosh OS-X</TD> + <TD>CoreAudio</TD> + <TD>RtApiCore</TD> + <TD>__MACOSX_CORE__</TD> + <TD><TT>pthread, CoreAudio</TT></TD> + <TD><TT>g++ -Wall -D__MACOSX_CORE__ -o probe probe.cpp RtAudio.cpp -framework CoreAudio -lpthread</TT></TD> +</TR> +<TR> + <TD>Windows</TD> + <TD>Direct Sound</TD> + <TD>RtApiDs</TD> + <TD>__WINDOWS_DS__</TD> + <TD><TT>dsound.lib (ver. 5.0 or higher), multithreaded</TT></TD> + <TD><I>compiler specific</I></TD> +</TR> +<TR> + <TD>Windows</TD> + <TD>ASIO</TD> + <TD>RtApiAsio</TD> + <TD>__WINDOWS_ASIO__</TD> + <TD><I>various ASIO header and source files</I></TD> + <TD><I>compiler specific</I></TD> +</TR> +</TABLE> +<P> + +The example compiler statements above could be used to compile the <TT>probe.cpp</TT> example file, assuming that <TT>probe.cpp</TT>, <TT>RtAudio.h</TT>, <tt>RtError.h</tt>, and <TT>RtAudio.cpp</TT> all exist in the same directory. + + +*/ |
