Skip to content

Installing Wiselib & shawn

palaghias edited this page Dec 18, 2011 · 17 revisions

h2.Download Wiselib and Shawn

  • Download wiselib:
git clone https://github.com/ibr-alg/wiselib.git
  • Download shawn:
svn co https://shawn.svn.sourceforge.net/svnroot/shawn

h2.Configure Wiselib:

  • Copy wiselib/wiselib.stable/std_config.h to config.h
cp wiselib/wiselib.stable/std_config.h wiselib/wiselib.stable/config.h
  • Copy wiselib/wiselib.testing/std_config_testing.h to config_testing.h
cp wiselib/wiselib.testing/std_config_testing.h config_testing.h
  • Copy wiselib/apps/generic_apps/Makefile.template to wiselib/apps/generic_apps/Makefile.local
cp wiselib/apps/generic_apps/Makefile.template wiselib/apps/generic_apps/Makefile.local
  • Edit the wiselib/apps/generic_apps/Makefile.local: Set the WISELIB_BASE and the SHAWN_INCLUDE_DIR to the correct full paths and change the SHAWN_LINK_LIBS
vim wiselib/apps/generic_apps/Makefile.local
export WISELIB_BASE=/full/path/to/wiselib

...

export SHAWN_INCLUDE_DIR=/full/path/to/shawn

...

export SHAWN_LINK_LIBS=-rdynamic -lshawnlib -lapps_wiseliblib -lapps_topologylib \
                       -lapps_readinglib -lapps_testbedservicelib -lapps_exampleslib \
                       -lshawnlib -ldl -lboost_date_time-mt -lboost_thread-mt -lapps_wisemllib

h2. Configure Shawn:

  • Make directory with name legacyapps at shawn/src
mkdir shawn/src/legacyapps
  • Download legacyapps.h and legacyapps.c to shawn/src/legacyapps
wget http://www.ibr.cs.tu-bs.de/users/tbaum/wiselib/legacyapps_init.h
wget http://www.ibr.cs.tu-bs.de/users/tbaum/wiselib/legacyapps_init.c
  • Goto the shawn/buildfiles directory
cd /full/path/to/shawn/buildfiles
  • Execute: ccmake ../src
  • Type c
  • Check the status of the following features:
BUILD_LIB_WITH_MAIN ON
BUILD_SINGLE_LIB OFF 
CONFIGURE_APPS ON 
OPT_ENABLE_BOOST ON
  • Set the LEGACYAPPS_PATH to the full path of shawn/src/legacyapps
LEGACYAPPS_PATH=/full/path/to/shawn/src/legacyapps
  • Type c
  • Set the paths of INCLUDE_PATH_BOOST and LIB_PATH_BOOST(=/usr/lib)
INCLUDE_PATH_BOOST=/usr/include/boost
LIB_PATH_BOOST=/usr/lib
  • Set the CONFIGURE_LEGACYAPPS
CONFIGURE_LEGACYAPPS ON
  • Type c
  • Check the status of the following features:
MODULE_APPS_TOPOLOGY ON
MODULE_APPS_READINGS ON
MODULE_APPS_EXAMPLES ON 
MODULE_APPS_WISELIB ON 
MODULE_APPS_EXTERNAL_APPLICATION ON
  • Type c
  • Set INCLUDE_PATH_WISELIB_STABLE and INCLUDE_PATH_WISELIB_TESTING to the full path of your trunk/wiselib.stable and trunk/wiselib.testing directories
INCLUDE_PATH_WISELIB_STABLE=/full/path/to/wiselib/wiselib.stable
INCLUDE_PATH_WISELIB_TESTING=/full/path/to/wiselib/wiselib.testing
  • Type c & g
  • Execute: make
Test that your installation works, compile a test wiselib application for shawn:
  • Goto the trunk/applications/example_app
  • Type make shawn
  • Execute: ./example_app -f test.conf (The default processor when you build with target shawn is wiselib_shawn_standalone)
Clone this wiki locally