From: Paul Brossier Date: Fri, 24 Mar 2017 19:35:19 +0000 (+0100) Subject: doc/: add cheat sheet, clean up X-Git-Tag: 0.4.5~34 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6f6c336d8c1251e41c81e0c7a0eb3d65fa0dc45b;p=aubio.git doc/: add cheat sheet, clean up --- diff --git a/doc/binaries.rst b/doc/binaries.rst new file mode 100644 index 00000000..28ae31e8 --- /dev/null +++ b/doc/binaries.rst @@ -0,0 +1,12 @@ +Pre-compiled binaries +--------------------- + +`Pre-compiled binaries `_ +are available for +`macOS `_, +`iOS `_, +and +`windows `_ + +To use aubio in a macOS or iOS application, see :ref:`xcode-frameworks-label`. + diff --git a/doc/building.rst b/doc/building.rst index cdb928d5..3a11e4e1 100644 --- a/doc/building.rst +++ b/doc/building.rst @@ -20,9 +20,9 @@ Latest release The **latest stable release** can be downloaded from https://aubio.org/download:: - $ curl -O http://aubio.org/pub/aubio-0.4.3.tar.bz2 - $ tar xf aubio-0.4.3.tar.bz2 - $ cd aubio-0.4.3 + $ curl -O http://aubio.org/pub/aubio-.tar.bz2 + $ tar xf aubio-.tar.bz2 + $ cd aubio-/ Git repository -------------- @@ -30,7 +30,7 @@ Git repository The **latest git branch** can be obtained with:: $ git clone git://git.aubio.org/git/aubio - $ cd aubio + $ cd aubio/ The following command will fetch the correct `waf`_ version (not included in aubio's git):: diff --git a/doc/download.rst b/doc/download.rst index a80cf2d8..ceb33771 100644 --- a/doc/download.rst +++ b/doc/download.rst @@ -7,14 +7,10 @@ A number of distributions already include aubio. Check your favorite package management system, or have a look at the `aubio download page `_ for more options. -To use aubio in a macOS or iOS application, see :ref:`xcode-frameworks-label`. - To use aubio in an android project, see :ref:`android`. -.. toctree:: +To compile aubio from source, read :ref:`building`. - debian_packages - xcode_frameworks - android +.. include:: binaries.rst -To compile aubio from source, read :ref:`building`. +.. include:: debian_packages.rst diff --git a/doc/installing.rst b/doc/installing.rst index defbcc32..f16588e7 100644 --- a/doc/installing.rst +++ b/doc/installing.rst @@ -4,16 +4,75 @@ Installing aubio aubio runs on Linux, Windows, macOS, iOS, Android, and probably a few others operating systems. -To download a pre-compiled version of the library, head to :ref:`download`. +Aubio is available as a C library and as a python module. -To install the python extension, head to :ref:`python`. +Cheat sheet +----------- -To compile aubio form source, first check the :ref:`requirements`, then read -:ref:`building`. +- :ref:`get aubio latest source code `:: -.. toctree:: - :maxdepth: 2 + # official repo + git clone https://git.aubio.org/aubio/aubio + # mirror + git clone https://github.com/aubio/aubio + # latest release + wget https://aubio.org/pub/aubio-.tar.gz - download - building - requirements + +- :ref:`build aubio from source `:: + + # 1. simple + cd aubio + make + + # 2. step by step + ./scripts/get_waf.sh + ./waf configure + ./waf build + sudo ./waf install + +- :ref:`install python-aubio from source `:: + + # from git + pip install https://git.aubio.org/aubio/aubio/ + # mirror + pip install https://github.com/aubio/aubio/ + # from latest release + pip install https://aubio.org/pub/aubio-0.4.4.tar.gz + # from pypi + pip install aubio + # from source directory + cd aubio + pip install -v . + +- :ref:`install python-aubio from a pre-compiled binary `:: + + # conda [osx, linux, win] + conda install -c conda-forge aubio + # .deb (debian, ubuntu) linux + sudo apt-get install python-aubio aubio-tools + # brew (osx) + brew install aubio --with-python + +- :ref:`get a pre-compiled version of libaubio `:: + + # .deb (linux) WARNING: old version + sudo apt-get install aubio-tools + + # python module + ./setup.py install + # using pip + pip install . + +- :ref:`check the list of optional dependencies `:: + + # debian / ubuntu + dpkg -l libavcodec-dev libavutil-dev libavformat-dev \ + libswresample-dev libavresample-dev + dpkg -l libsamplerate-dev libsndfile-dev + +.. include:: download.rst + +.. include:: building.rst + +.. include:: requirements