forked from ltfat/ltfat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL-Octave
115 lines (77 loc) · 4.6 KB
/
INSTALL-Octave
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
-------- Compatibility ----------------------------------
The toolbox should work and compile on all versions of Octave later
than version 3.4, but it is generally recommended to upgrade Octave to
the latest stable release. For demos etc. to work, you will need
to install some of the Octave-forge packages.
All versions of LTFAT from 1.4.2 are also itself an Octave-forge package
and the easiest way to install the toolbox is by typing the command
pkg install -forge ltfat
on the Octave prompt, which downloads LTFAT directly from the
Octave-forge and compiles everything. This was tested on Linux, on
Windows with MXE-Octave and Mac X unsing Octave from Homebrew.
Since you are reading this, you have probably downloaded LTFAT from
elsewhere and you want to compile sources by yourself.
-------- What can be compiled -------------------------------
- Static backend libraries libltfat.a, libltfatf.a
- Fast Oct-interfaces linking to the backend libraries and some
additional MEX files.
Block processing framework (optional, experimental)
- Mex-interface playrec
- Java classes for blockproc GUI
------------------------------------------------------------------------
-------- Compiling backend libs and the Octave interfaces -------------
------------------------------------------------------------------------
LTFAT comes with C++ Octave interfaces to replace (shadow) all
computationally intensitive functions in the toolbox.
To compile the Octave interfaces, type "ltfatmex" on the Octave
command prompt. This will compile the LTFAT C library and all the
available oct-functions.
LTFAT backend lib and Oct-interfaces depends on the following
libraries: FFTW3, BLAS, LAPACK, which are usually distributed with
Octave itself, so there is no need for installing them separately.
--------- Compiling on MacOS ------------------------------------------
The GCC compiler is needed to compile the LTFAT on Mac OS X. When the
Xcode Command Line Tools are installed the compilation of the LTFAT should
work without any problem. Alternatively, Clang could be used to compile
the LTFAT. The BLAS, LAPACK and FFTW libraries are taken directly from
the Octave installation and doesn’t have to be installed separately.
--------- Compiling on Microsoft Windows ------------------------------
Currently, there is no direct way of compiling ltfat on MXE-Octave.
Please use the Octave-forge package.
--------- Compiling on Linux ----------------------------------------
To compile, you must have installed the Octave development package and
all its dependencies (the 'mkoctfile' script must be available).
This will also install all necessary libraries and header files needed
for compilation.
* On Fedora / Redhat this package is called "octave-devel"
* On Debian / Ubuntu this package is called "octave-headers"
Install the octave-forge packages to add extra toolboxes available for
Octave.
---------------------------------------------------------------------------
-------- Compiling parts for the block processing framework ———------------
---------------------------------------------------------------------------
Everything should be already compiled if you have downloaded the binary release.
In order to get the block processing framework working from the source, one
has to compile the MEX-interface playrec and the JAVA GUI classes. This can be
done by typing
"ltfatmex playrec" and "ltfatmex java".
Playrec MEX depends on the PORTAUDIO library, which has to be installed on your
system prior running the commands. Compiling JAVA classes requires Java Development
Kit to be installed. From Octave 3.8.0 the JAVA package is part of core Octave, so it
doesn’t have to be installed separately.
NOTE: Compiled Java classes (packed in blockproc.jar) are platform independent
so compiling it and installing JDK can be avoided by taking the archive from any
binary LTFAT package (from ltfat/blockproc/java).
--------- Compiling on Mac ------------
It is recommended to compile PortAudio v19 to use with the block
processing framework. PortAudio v19 only compiles on OS X version 10.4 or
later. For any version of Octave older than 3.8.0 the JAVA package should
be installed which requires the Java Development Kit to be installed.
The Java Development Kit could be downloaded through the Apple Developer
Downloads.
--------- Compiling on Microsoft Windows --------------------------
Currently, there is no direct way of compiling ltfat on MXE-Octave.
Please use the Octave-forge package.
--------- Compiling on Linux ------------------------------------
- On Redhat / Fedora, TBD
- On Debian / Ubuntu, install the packages 'portaudio19-dev', 'openjdk-7-jdk'