[FE training-materials-updates] sysdev-realtime: Xenomai installs pkg-config files now

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Oct 8 12:19:53 CEST 2012


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=5b6c3f2d64d4f5e08fb0e9497719a8b5df27d269

>---------------------------------------------------------------

commit 5b6c3f2d64d4f5e08fb0e9497719a8b5df27d269
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Mon Oct 8 12:19:45 2012 +0200

    sysdev-realtime: Xenomai installs pkg-config files now
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


>---------------------------------------------------------------

5b6c3f2d64d4f5e08fb0e9497719a8b5df27d269
 slides/sysdev-realtime/sysdev-realtime.tex |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/slides/sysdev-realtime/sysdev-realtime.tex b/slides/sysdev-realtime/sysdev-realtime.tex
index af65555..a6d2b88 100644
--- a/slides/sysdev-realtime/sysdev-realtime.tex
+++ b/slides/sysdev-realtime/sysdev-realtime.tex
@@ -1174,8 +1174,8 @@ echo 0 > /debug/tracing/tracing_enabled
     \begin{itemize}
     \item \code{./configure --host=arm-linux && make && make DESTDIR=/your/rootfs/ install}
     \end{itemize}
-  \item The \code{xeno-config} script, installed when installing
-    Xenomai user-space support helps you to compile your own programs.
+  \item Xenomai installs {\em pkg-config} files which helps you to
+    compile your own programs against the Xenomai libraries.
   \item See Xenomai's \code{examples} directory.
   \item Installation details may be found in the \code{README.INSTALL}
     guide.
@@ -1207,9 +1207,8 @@ echo 0 > /debug/tracing/tracing_enabled
   \begin{block}{}
 \small
 \begin{verbatim}
-export DESTDIR=/path/to/xenomai/
-CFL=`$DESTDIR/bin/xeno-config --posix-cflags`
-LDF=`$DESTDIR/bin/xeno-config --posix-ldflags`
+CFL=`pkg-config --cflags libxenomai_posix`
+LDF=`pkg-config --libs libxenomai_posix`
 ARCH-gcc $CFL -o rttest rttest.c $LDF
 \end{verbatim}
 \normalsize
@@ -1268,10 +1267,9 @@ ret = bind(s, (struct sockaddr *)&saddr, sizeof(saddr));
     \begin{block}{}
 \small
 \begin{verbatim}
-export DESTDIR=/path/to/xenomai/
-CFL=`$DESTDIR/bin/xeno-config --xeno-cflags`
-LDF=`$DESTDIR/bin/xeno-config --xeno-ldflags`
-ARCH-gcc $CFL -o rttest rttest.c $LDF -lnative
+CFL=`pkg-config --cflags libxenomai_native`
+LDF=`pkg-config --libs libxenomai_native`
+ARCH-gcc $CFL -o rttest rttest.c $LDF
 \end{verbatim}
 \normalsize
     \end{block}



More information about the training-materials-updates mailing list