diff --git a/examples/README b/examples/README index 08ee4bfd37db0959248b30585c29ce072392b3b5..74cf4c316cf67a4381bbf2624d8b26ef0289b129 100644 --- a/examples/README +++ b/examples/README @@ -7,25 +7,26 @@ ------------------------------------------------------------------------------- +1) install libxml2-dev -1) install the ESM tools and the SMI library (see README in root) +2) install the ESM tools and the SMI library (see README in root) -2) ensure the ui bin directory is in your environmnt path +3) ensure the ui bin directory is in your environmnt path (e.g. export PATH=$PATH:/home/aslab/lrs_esm/ui/bin) -3) set env. variable SMI_LIB_DIR to target directory +4) set env. variable SMI_LIB_DIR to target directory (e.g. export SMI_LIB_DIR=/usr/smi_lib) -4) set env. variable ESMHOME to location of sources of ESM tools +5) set env. variable ESMHOME to location of sources of ESM tools (e.g. export ESMHOME=/home/aslab/esm) -5) choose example and enter the directory +6) choose example and enter the directory -6) execute inside esm directory: +7) execute inside esm directory: "make; make install" -7) execute inside bin directory: +8) execute inside bin directory: for PREEMPT_RT: diff --git a/examples/pingpong/CMakeLists.txt b/examples/pingpong/CMakeLists.txt index 23e35af1df8ca196e01b7013ac8cdf756879d155..60f8d2e2d0147ceaf0dfac489c711a68c8c55831 100644 --- a/examples/pingpong/CMakeLists.txt +++ b/examples/pingpong/CMakeLists.txt @@ -6,17 +6,17 @@ SET(COMMON_DIR "../common") # RTAI if($ENV{RTAI}) -SET(RTCFLAGS "$(shell rtai-config --lxrt-cflags) -D_RTAI -m32 -Wall") +SET(RTCFLAGS "$(shell rtai-config --lxrt-cflags) -D_RTAI -Wall -std=gnu90") SET(RTLIB rtsmirtai) SET(NRTLIB nrtsmirtai) else() # PREEMPT_RT -SET(RTCFLAGS "-O2 -m32 -Wall -fno-stack-protector") +SET(RTCFLAGS "-O2 -Wall -fno-stack-protector -std=gnu90") SET(RTLIB rtsmi) SET(NRTLIB nrtsmi) endif() -SET(NRTCFLAGS "-D_NRT -O2 -m32 -Wall") +SET(NRTCFLAGS "-D_NRT -O2 -Wall -std=gnu90") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)