Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (81 sloc) 3.2 KB
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)
-----------------------------------------------