bJou Install Features Learn Blog

Installing bJou

Currently, the bJou compiler must be built from source. To compile bJou, ensure the following dependencies are met:

If you have those dependencies met, you can grab a copy of bJou from GitHub:

$ git clone https://www.github.com/kammerdienerb/bJou

Using the Build Script

To build the project using the included build script, simply run:

$ ./build.sh

The build.sh script takes these additional arguments:

As an example, if you wanted to build a debug version of bJou in its own directory in your home directory with a version of LLVM also located in your home directory, you could do:

$ ./build.sh -b Debug --install-prefix ~/bjou --llvm-config ~/llvm/bin/llvm-config

Once bJou has successfully compiled, it can be installed to the previously specified install path:

$ ./install.sh

Using CMake Directly

bJou is a CMake-based project, so if you wish to have more control over the build, you can use the standard CMake build procedure to compile. The following variables can be changed:

To build, first navigate to the bJou project directory. Download an additional component, nolibc_syscall, and build it:
$ git clone https://www.github.com/kammerdienerb/nolibc_syscall
$ cd nolibc_syscall && make
Then, create a build directory:
$ mkdir /path/to/build/dir && cd /path/to/build/dir
Run CMake:
$ cmake /path/to/bjou
Build and install:
$ make && make install
Note: if you didn't build bJou with build.sh, DO NOT use install.sh.