[[public.kgi.edu/~fbergman]]

 

 

 

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.h

      is present. Otherwise you will need to update it: libxml.org


    Check out the latest code from SourceForge:

    cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jdesigner login

    cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jdesigner co -P C++Broker


    Change into the directory C++Broker and invoke:

    scons or scons debug=1 for 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 .profile file):
     
    • 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/brokerfile

    containing 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?

 

©2006 Frank Bergmann
Valid XHTML 1.0 Transitional