From 0edb0c5e41225dd5bab6da5f5cdf7f426d8fbf34 Mon Sep 17 00:00:00 2001
From: Torsten Merz <mer114@sprint-ph.nexus.csiro.au>
Date: Wed, 13 Mar 2019 19:09:15 +1100
Subject: [PATCH] changed README

---
 examples/README                  | 15 ++++++++-------
 examples/pingpong/CMakeLists.txt |  6 +++---
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/examples/README b/examples/README
index 08ee4bf..74cf4c3 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 23e35af..60f8d2e 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)
 
-- 
GitLab