-
Notifications
You must be signed in to change notification settings - Fork 1
Installing Wiselib & shawn
palaghias edited this page Dec 19, 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
- 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_LIB_DIR=$(SHAWN_INCLUDE_DIR)/libraries
...
export SHAWN_LINK_LIBS=-rdynamic -lshawnlib -lapps_wiseliblib -lapps_topologylib -lapps_readinglib \
-lapps_testbedservicelib -lapps_exampleslib -lapps_externalapplib -lshawnlib \
-ldl -lboost_date_time-mt -lboost_thread-mt -lapps_wisemllib
- 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
- Type c
- Check the status of the following features:
MODULE_APPS_EXTERNAL_APPLICATION ON
MODULE_APPS_EXAMPLES ON
MODULE_APPS_READINGS ON
MODULE_APPS_TOPOLOGY ON
MODULE_APPS_WISELIB ON
OPT_ENABLE_SHAWN_REALTIME ON
- Type c
- Set INCLUDE_PATH_WISELIB_STABLE and INCLUDE_PATH_WISELIB_TESTING to the full path of your wiselib/wiselib.stable and wiselib/wiselib.testing directories
INCLUDE_PATH_WISELIB_STABLE=/full/path/to/wiselib/wiselib.stable
INCLUDE_PATH_WISELIB_TESTING=/full/path/to/wiselib/wiselib.testing
LIBRARY_OUTPUT_PATH=/full/path/to/shawn/libraries
- Type c & g
- Execute: make
Test that your installation works, compile a test wiselib application for shawn:
- Goto the wiselib/apps/generic_apps/example_app
cd wiselib/apps/generic_apps/example_app
- Type make shawn
make shawn
- Execute: ./example_app -f test.conf (The default processor when you build with target shawn is wiselib_shawn_standalone)
./example_app -f test.conf