Building SBW from scratch
- The first step two building SBW is to check your system. Please ensure that:
- You have a version of python installed: Python.org You have scons installed: Scons @ SourceForge
- Your version of libxml2 is fairly new (that is the file:
/usr/include/libxml2/libxml/xmlwriter.his present. Otherwise you will need to update it: libxml.org
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jdesigner logincvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jdesigner co -P C++Broker
Change into the directoryC++Brokerand invoke:sconsorscons debug=1for a DEBUG build
By now the SBW core (Broker + SBW C/C++ bindings) should be build. Which gives you the SBW Framework. To set it up properly you will need to set some environment variables (best done in your.profilefile):
-
SBW_HOME<C++Broker cvs dir>e.g.export SBW_HOME=~/C++BROKER -
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SBW_HOME/lib
- Finally enable SBW Modules to automatically start up the Broker by creating a file:
~/.sbw/brokerfilecontaining the path to the Broker executable e.g.
~/C++Broker/bin/Broker. That's it, now you can start developing SBW modules in your favorite programming language. How about python?
