From: Paul Brossier Date: Fri, 24 Mar 2017 19:02:34 +0000 (+0100) Subject: README.md: simplify, move detailed instructions to manual X-Git-Tag: 0.4.5~37 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=4e2173e742478d46b11dbec9d2cdf30e505b5d5d;p=aubio.git README.md: simplify, move detailed instructions to manual --- diff --git a/README.md b/README.md index 7055c1b8..8ecd146d 100644 --- a/README.md +++ b/README.md @@ -63,49 +63,19 @@ The latest version of the documentation can be found at: Build Instructions ------------------ -A number of distributions already include aubio. Check your favorite package -management system, or have a look at the [download -page](https://aubio.org/download). - -aubio uses [waf](https://waf.io/) to configure, compile, and test the source: - - ./waf configure - ./waf build - -If waf is not found in the directory, you can download and install it with: - - make getwaf - aubio compiles on Linux, Mac OS X, Windows, Cygwin, and iOS. -Installation ------------- - -To install aubio library and headers on your system, use: - - sudo ./waf install - -To uninstall: - - sudo ./waf uninstall - -If you don't have root access to install libaubio on your system, you can use -libaubio without installing libaubio either by setting `LD_LIBRARY_PATH`, or by -copying it to `~/lib`. - -On Linux, you should be able to set `LD_LIBRARY_PATH` with: - - $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/src +To compile aubio, you should be able to simply run: -On Mac OS X, a copy or a symlink can be made in `~/lib`: + make - $ mkdir -p ~/lib - $ ln -sf $PWD/build/src/libaubio*.dylib ~/lib/ +To compile the python module: -Note on Mac OS X systems older than El Capitan (10.11), the `DYLD_LIBRARY_PATH` -variable can be set as follows: + ./setup.py build - $ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/build/src +See also the [manual](https://aubio.org/manual/latest/) for more information +about [compiling](https://aubio.org/manual/latest/building.html) and +[installing](https://aubio.org/manual/latest/installing.html). Credits and Publications ------------------------ diff --git a/doc/building.rst b/doc/building.rst index 5c52a309..cdb928d5 100644 --- a/doc/building.rst +++ b/doc/building.rst @@ -73,6 +73,34 @@ command:: $ waf configure build + +Running as a user +----------------- + +To use aubio without actually installing, for instance if you don't have root +access to install libaubio on your system, + +On Linux or macOS, sourcing the script ``scripts/setenv_local.sh`` should help:: + + $ source ./scripts/setenv_local.sh + +This script sets ``LD_LIBRARY_PATH``, for libaubio, and ``PYTHONPATH`` for the +python module. + +On Linux, you should be able to set ``LD_LIBRARY_PATH`` with:: + + $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/src + +On Mac OS X, a copy or a symlink can be made in ``~/lib``:: + + $ mkdir -p ~/lib + $ ln -sf $PWD/build/src/libaubio*.dylib ~/lib/ + +Note on Mac OS X systems older than El Capitan (10.11), the ``DYLD_LIBRARY_PATH`` +variable can be set as follows:: + + $ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/build/src + Cleaning -------- @@ -94,5 +122,8 @@ invocation, use the ``distclean`` command:: .. _Git Bash: https://git-for-windows.github.io/ -.. toctree:: - :maxdepth: 2 +.. _xcode-frameworks-label: + +.. include:: xcode_frameworks.rst + +.. include:: android.rst diff --git a/doc/xcode_frameworks.rst b/doc/xcode_frameworks.rst index e665cfeb..2d7563dc 100644 --- a/doc/xcode_frameworks.rst +++ b/doc/xcode_frameworks.rst @@ -1,7 +1,5 @@ -.. _xcode-frameworks-label: - -Using aubio frameworks in Xcode -------------------------------- +Frameworks for Xcode +-------------------- `Binary frameworks`_ are available and ready to use in your XCode project, for `iOS`_ and `macOS`_. @@ -35,7 +33,12 @@ Using aubio frameworks in Xcode import aubio Using aubio from swift -...................... +---------------------- + +Once you have downloaded and installed :ref:`aubio.framework +`, you sould be able to use aubio from C, Obj-C, and +Swift source files. + Here is a short example showing how to read a sound file in swift: