Please note: these instructions were created assuming you are using Ubuntu (or any other Debian-based
Linux distro). If you're building Julius on a distro that does not use apt, you must use whatever app
manager your distro uses in order to obtain the necessary dependencies.
In order to follow these instructions, you'll need to install the following packages first:
gitSDL2SDL2_mixercmake
Then skip steps 1. and 2. of the Ubuntu instructions.
In general, for Ubuntu, you only need to use a terminal window to install and run Julius.
Also note that you need superuser (root) permissions to install the dependencies, by making use
of sudo.
-
Open a terminal window and type the following command to install all the needed dependencies:
$ sudo apt install git libsdl2-dev libsdl2-mixer-dev cmake -
Depending on what you already have installed,
aptmay ask you to install many packages. Confirm the installation. -
Navigate to the directory where you want the repository folder to be installed. As an example, we're using the
homefolder:$ cd ~ -
Clone the Julius github repository to your computer:
$ git clone https://github.com/bvschaik/julius.git -
Move to the new
juliusdirectory:$ cd juliusOptional: If you have already downloaded the Julius repository and only wish to update it (in order to build a newer version), instead of the previous three steps, do the following in a terminal window:
a. Move to the
juliusdirectory where the repository was installed.b. Type:
$ git pull origin masterc. Proceed to step 6.
-
Create a
builddirectory and move to it:$ mkdir build && cd build -
Run
cmake:$ cmake .. -
Build Julius:
$ make
Success! Julius should have been built without any errors. Type ./julius to run it.
Optionally you can also type make test to confirm that Julius is working properly.