Skip to content
Evert Jans edited this page Feb 5, 2014 · 2 revisions

Welcome

Welcome to the wiki explaining the requirements and procedure to use this block

Requirements

Microblx, HDF5, lua-hdf5

Procedure

Follow this and this wiki.

Get gcc-lua, needed for gcc-lua-cdecl:

$ cd ~/
$ sudo apt-get install gcc-4.6-plugin-dev liblua5.1-0-dev
$ git clone http://git.colberg.org/gcc-lua
$ cd gcc-lua
$ YOUR_FAVORITE_EDITOR Makefile
$ PREFIX = /usr/local --> PREFIX = $(HOME)/local
$ make -j4
$ make install

Get gcc-lua-cdecl, needed for lua-hdf5:

$ cd ~/
$ git clone http://git.colberg.org/gcc-lua-cdecl
$ cd gcc-lua-cdecl
$ YOUR_FAVORITE_EDITOR Makefile
$ PREFIX = /usr/local --> PREFIX = $(HOME)/local
$ make -j4
$ make install

Install lua-hdf5:

$ cd ~/
$ git clone http://git.colberg.org/lua-hdf5
$ cd lua-hdf5
$ YOUR_FAVORITE_EDITOR Makefile
$ PREFIX = /usr/local --> PREFIX = $(HOME)/local

Create a symbolic link from the local installed mpicc and make:

$ sudo ln /home/User/local/bin/mpicc /usr/bin/mpicc --symbolic
$ CPATH=/home/User/local/include make install

Get the logger:

$ cd ~/microblx/std_blocks
$ git clone https://github.com/ejans/hdf5_logging
$ cd ~/microblx
$ make

Try the random luascript:

$ luajt std_blocks/hdf5_logging/BUP/trig_rnd_to_hexdump_hdf5.lua

Now we can initialize and start the ptrig1 block trough the webserver:

$ YOUR_FAVORITE_BROWSER localhost:8888

License

See LICENSE.

Clone this wiki locally