Skip to content

Installing Wiselib & shawn

palaghias edited this page Dec 18, 2011 · 17 revisions
  • Download wiselib:
git clone https://github.com/ibr-alg/wiselib.git
  • Download shawn: svn co https://shawn.svn.sourceforge.net/svnroot/shawn
  • Configure wiselib:
    • Copy wiselib/wiselib.stable/std_config.h to config.h
    • Copy wiselib/wiselib.testing/std_config_testing.h to config_testing.h
    • copy wiselib/apps/generic_apps/Makefile.template to wiselib/apps/generic_apps/Makefile.local
    • Edit the trunk/applications/Makefile.local: Set the WISELIB_BASE and the SHAWN_INCLUDE_DIR to the correct full paths
    • Change the SHAWN_LINK_LIBS to SHAWN_LINK_LIBS=-rdynamic -lshawnlib -llegacyapps -lapps_exampleslib \
-lapps_externalapplib -lshawnlib \ -ldl -lapps_topologylib -lapps_readinglib
  • Configure Shawn:
    • Download ftp://carrot.cti.gr/DS-I/legacyapps.tar.bz2 and extract it to shawn/src/
    • Goto the shawn/buildfiles directory
    • 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
    • Type c
    • Set the paths of INCLUDE_PATH_BOOST(=/usr/include/boost) and LIB_PATH_BOOST(=/usr/lib)
    • Set the 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_LEGACYAPPS_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
    • 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