]> Repos - portaudio/commitdiff
Update docs for building on Linux
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 15 Feb 2016 17:06:54 +0000 (17:06 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 15 Feb 2016 17:06:54 +0000 (17:06 +0000)
doc/src/tutorial/compile_linux.dox

index fc5c2e69934f771868572c97b94b34cee0903d2b..649a3fe7918d133dbbfc7fb69de7aaf424f30f71 100644 (file)
@@ -32,7 +32,7 @@ That will build PortAudio using Jack, ALSA and OSS in whatever combination they
 To use PortAudio in your apps, you can simply install the .so files:\r
 \r
 @code\r
-make install\r
+sudo make install\r
 @endcode\r
 \r
 Projects built this way will expect PortAudio to be installed on target systems in order to run. If you want to build a more self-contained binary, you may use the libportaudio.a file:\r
@@ -41,10 +41,16 @@ Projects built this way will expect PortAudio to be installed on target systems
 cp lib/.libs/libportaudio.a /YOUR/PROJECT/DIR\r
 @endcode\r
 \r
+On some systems you may need to use:\r
+\r
+@code\r
+cp /usr/local/lib/libportaudio.a /YOUR/PROJECT/DIR\r
+@endcode\r
+\r
 You may also need to copy portaudio.h, located in the include/ directory of PortAudio into your project. Note that you will usually need to link with the approriate libraries that you used, such as ALSA and JACK, as well as with librt and libpthread. For example:\r
 \r
 @code\r
-gcc -lrt -lasound -ljack -lpthread -o YOUR_BINARY main.c libportaudio.a\r
+gcc main.c libportaudio.a -lrt -lm -lasound -ljack -pthread -o YOUR_BINARY\r
 @endcode\r
 \r
 @section comp_linux4 Linux Extensions\r