Installing

Building from source

Dependencies

Make sure to install the following dependencies

  • uthash (apt: uthash-dev)
  • autotools etc. (apt: automake, libtool, pkg-config, make)
  • luajit (>=v2.0.0) (apt: luajit and libluajit-5.1-dev)
  • lfs: lua-filesystem (apt: lua-filesystem)

The following must be installed from source (see instructions below):

Optionally, to run the tests:

  • lua-unit (apt: lua-unit, git) (to run the tests)

Building

Before building microblx, liblfds611 needs to be built and installed. There is a set of patches in the microblx repository to clean up the packaging of liblfds. Follow the instructions below:

Clone the code:

$ git clone https://github.com/liblfds/liblfds6.1.1.git
$ git clone https://github.com/kmarkus/microblx.git
$ git clone https://github.com/kmarkus/uutils.git

First build lfds-6.1.1:

$ cd liblfds6.1.1
$ git am ../microblx/liblfds/*.patch
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

Then install uutils:

$ cd ../uutils
$ sudo make install

Now build microblx:

$ cd ../microblx
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

Using yocto

If you are developing for an embedded system, the recommended way is use the meta-microblx yocto layer. Please see the README in that repository for further instructions.