forked from julius-speech/julius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
118 lines (81 loc) · 3.2 KB
/
INSTALL.txt
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
115
116
117
118
How to build Julius
=====================
This document describes how to build Julius on several platform.
See each section for details.
Performance-optimized compiler flags will be set for several platforms
by default. If the build fails or the compiled binaries would not run,
or you want to set your own compile flags, give the configure script
your own compiler flags via "CFLAGS" environment value like this
(change "-O3" below as you like)
% make distclean
% CFLAGS='-O3' ./configure --host=arm-linux-gnueabihf
% make
After build, compiled binaries of Julius and tools will be placed in
their respective directories. You can run "make install" will install
binaries into system directries:
${prefix}/bin executables
${prefix}/lib libraries
${prefix}/include headers
"${prefix}" will be "/usr/local" by default. You can change it by
specifying "--prefix=..." to configure script.
% ./configure --prefix=/opt
-----------------------------------------------
Linux (tested on Ubuntu-14.04)
% sudo apt-get install build-essential zlib1g-dev libsdl2-dev
% sudo apt-get libasound2-dev (or libpulse-dev, whichever you like)
% ./configure
% make
% (optional) make install
-----------------------------------------------
Mingw on Ubuntu (tested on 16.04)
"mingw-sdl2" does not supported on Ubuntu, so adintool-gui will not be built.
% sudo apt-get install mingw-w64 mingw-w64-tools
% sudo apt-get install libz-mingw-w64-dev
% ./configure --host=x86_64-w64-mingw32 --disable-sdl
% make
-----------------------------------------------
Cygwin
Required packages:
gcc-core
make
zlib-devel
libSDL2-devel
pkg-config
perl
On cygwin terminal, do
% ./configure
% make
% (optional) make install
(tested on cygwin-x86 setup-v2.5.2, 08/31/2016)
-----------------------------------------------
Mingw on cygwin
Required packages (also cygwin packages above are required)
mingw64-i686-gcc-core
mingw64-i686-zlib
mingw64-i686-SDL2
mingw64-i686-pkg-config
On cygwin terminal, do
% ./configure --host=i686-w64-mingw32 --disable-sdlmain
% make
If "adintool-gui.exe" fails or not run, try without "--disable-sdlmain".
(tested on cygwin-x86 setup-v2.5.2, 08/31/2016)
-----------------------------------------------
Visual Studio:
1. Open msvc/JuliusLib.sln
2. Choose build type to "Release"
3. Build
The compiled binaries will be placed in "msvc/Release" folder.
Build with VisualStudio newer than 2013 update 3.
Older version does not support SIMD FMA instructions. (/ARCH:AVX2)
(tested on VisualStudio 2013 update 5)
-----------------------------------------------
Cross-compiling for ARM:
% ./configure --host=arm-linux-gnueabihf
% make
Note that "-mfpu=neon -mfloat-abi=softfp" is enabled by default for
better performance. You can replace it with your flags by specifying
your own compiler flags via "CFLAGS" environment value, like this:
% CFLAGS='-O3' ./configure --host=arm-linux-gnueabihf
% make
(tested on cross-compilation on Ubuntu)
-----------------------------------------------