rta i install
TRANSCRIPT
-
8/18/2019 Rta i Install
1/4
Installation of the RTAI-Lab
Install Mesa
The first part is the installation of the mesa 3D libraries which have dependencies
for ELFK which in turn xrtailab uses to display executed code, the example
described later uses this to display a sine wave.
o as root!
cd /usr/local/src
Download MesaLib-6.x.x.tar.bz2 from
http://sourceforge.net/proects/mesa!d
tar x"f MesaLib-6.x.x.tar.bz2
cd Mesa-6.x.x
ma#e realclean
ma#e linux-x$6 %% ma#e install
EFLTK Library
The ELFTK library is needed by the xrtailab for various windows as well as for
the oscilloscope display, downloaded usin" the followin" subversion commands
to "et the latest versions
cd /usr/local/src
s"n co https://ede.s"n.sourceforge.net/s"nroot/ede/trun#/eflt#
s"n co https://ede.s"n.sourceforge.net/s"nroot/ede/trun#/ede
cd eflt#
autoconf ./configure &disable-m's(l &disable-unix)D*+
./ema#e
./ema#e install
#e need to edit /etc/ld.so.conf and add the path /usr/local/lib
http://sourceforge.net/projects/mesa3dhttps://ede.svn.sourceforge.net/svnroot/ede/trunk/edehttp://sourceforge.net/projects/mesa3dhttps://ede.svn.sourceforge.net/svnroot/ede/trunk/ede
-
8/18/2019 Rta i Install
2/4
Then run /sbin/ldconfig to update the library database
Comedilib
$sed to increase the functionality of the %T&' at a later sta"e
cd /usr/local/src
wget http://www.comedi.org/download/comedilib-,.$..tar.gz
wget http://www.comedi.org/download/comedi-,..6.tar.gz
tar &x"xf comedib-,.$..tar.gz
tar &x"zf comedi-,..6.gz
cd comedilib
prepare the build system for compilation, chec( versions, etc.
sh autogen.sh
./configure &s'sconfdir/etc
ma#e %% ma#e install
ma#e de"
Comedi
)ery similar to the *omedilib installation
cd /usr/local/src/comedi
sh autogen.sh
./configure
ma#e
ma#e install
ma#e de"
cp include/linux/comedi.h include/linux/comedilib.h /usr/include
cp include/linux/comedi.h include/linux/comedilib.h /usr/local/include
ln &s /usr/include/comedi.h /usr/include/linux/comedi.h
ln +s usrincludecomedilib.h usrincludelinuxcomedilib.h
http://www.comedi.org/download/comedilib-0.8.1.tar.gzhttp://www.comedi.org/download/comedi-0.7.76.tar.gzhttp://www.comedi.org/download/comedilib-0.8.1.tar.gzhttp://www.comedi.org/download/comedi-0.7.76.tar.gz
-
8/18/2019 Rta i Install
3/4
Recompile the RTAI
#e need to recompile the %T&' to install the %T&'-Lab and include *omedi that
has ust been installed.
cd /usr/src/rtai
ma#e menuconfig
&ddons /
*omedi support over L0%T 12
'nclude the comedi installation directory 4where libcomedi.a, comedi.h
and comedi.h can be found5
%T&'-Lab /
%T&'-lab 12
'nclude the ELFTK 'nstallation Directory
Exit and save confi"uration
Ma#e %% ma#e install
Scilab and Scicos Installation
The version used here is 6.7.8 and is downloaded from scilab.or" to the usrlocal
directory.
cd /usr/local
tar zx"f scilab-0..2-src.tar.gz
cd scilab-0..2
ince fedora core 9 is used here the followin" command is used!
./configure &without-a"a
ma#e all
:ote! at this point do :;T ma(e install
ln &s /usr/localscilab-0..2/binscilab/usr/local/bin/scilab
To chec( that scilab runs correctly, type
-
8/18/2019 Rta i Install
4/4
scilab
'n the command line if it opens with errors then restart the installation and use
dmesg to chec( for errors with the installation.
Rtai add-ons for scilab
These include the bloc(s that will be for %eal time code "eneration developed by
%oberto bucher. &"ain the commands used for the correct installation are shown
below.
cd /usr/local
Download the add-on tar ball from http://web.dti.supsi.ch/1bucher/scilab.html
tar zx"f scilab-0..2-rtailab.tgz
cd scilab-0..2-rtailab/macros
ma#e install
ma#e user
This creates a file in the 3457M4/.3cilab/scilab-0..2/ called .scilab which
must be edited and added with the lines
load893+/macros/5;7/lib9<=scicos>menu8?@pal8?@B: