-
Notifications
You must be signed in to change notification settings - Fork 1
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
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.localexport 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- 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
- 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
- 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)