[FE training-materials-updates] sysdev-thirdparty: few fixes

Alexandre Belloni alexandre.belloni at free-electrons.com
Thu Jul 24 16:46:54 CEST 2014


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

On branch  : sysdev-xplained
Link       : http://git.free-electrons.com/training-materials/commit/?id=7ac451f8ca17d4c25cefff06608b2764fd21303b

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

commit 7ac451f8ca17d4c25cefff06608b2764fd21303b
Author: Alexandre Belloni <alexandre.belloni at free-electrons.com>
Date:   Thu Jul 24 16:42:35 2014 +0200

    sysdev-thirdparty: few fixes
    
    libz.so.2.0.0 => libasound.so.2.0.0
    DESTDIR can't be a relative path
    
    /usr/share/alsa/pcm/default.conf is needed else alsa will complain about
    not finding the default pcm output.
    
    libao actually depends on alsa-lib, we need to set CPPFLAGS and LDFLAGS.
    
    vorbis-tools 1.4.0 is the latest version.
    
    libusb => make
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>


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

7ac451f8ca17d4c25cefff06608b2764fd21303b
 labs/sysdev-thirdparty/sysdev-thirdparty.tex |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/labs/sysdev-thirdparty/sysdev-thirdparty.tex b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
index 790d531..fc26295 100644
--- a/labs/sysdev-thirdparty/sysdev-thirdparty.tex
+++ b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
@@ -204,7 +204,7 @@ Look at the result of compiling in src/.libs: a set of object files
 and a set of \code{libasound.so*} files.
 
 The \code{libasound.so*} files are a dynamic version of the
-library. The shared library itself is \code{libz.so.2.0.0}, it has
+library. The shared library itself is \code{libasound.so.2.0.0}, it has
 been generated by the following command line:
 
 \begin{verbatim}
@@ -310,7 +310,7 @@ We now only have the installation process left to do.
 
 First, let's make the installation in the {\em staging} space:
 \begin{verbatim}
-make DESTDIR=../staging install
+make DESTDIR=$HOME/felabs/sysdev/thirdparty/staging install
 \end{verbatim}
 
 Now look at what has been installed by alsa-lib:
@@ -424,6 +424,7 @@ Let's use this \code{LDFLAGS} variable:
 
 \begin{verbatim}
 LDFLAGS=-L$HOME/felabs/sysdev/thirdparty/staging/usr/lib \
+CPPFLAGS=-I$HOME/felabs/sysdev/thirdparty/staging/usr/include \
 CC=arm-linux-gcc \
 ./configure --host=arm-linux
 \end{verbatim}
@@ -557,6 +558,9 @@ arm-linux-strip target/usr/bin/speaker-test
 arm-linux-strip target/usr/sbin/alsactl
 
 cp -a staging/usr/share/alsa/alsa.conf* target/usr/share/alsa
+cp -a staging/usr/share/alsa/cards target/usr/share/alsa
+mkdir target/usr/share/alsa/pcm
+cp -a staging/usr/share/alsa/pcm/default.conf target/usr/share/alsa/pcm
 \end{verbatim}
 
 And we're finally done with the alsa-utils! You can test that all is
@@ -647,9 +651,11 @@ Now, let's work on {\em libao}. Download the version 1.2.0 from
 \url{http://xiph.org} and extract it.
 
 Configuring {\em libao} is once again fairly easy, and similar to
-every sane autotools based build system without any dependency:
+every sane autotools based build system:
 
 \begin{verbatim}
+LDFLAGS=-L$HOME/felabs/sysdev/thirdparty/staging/usr/lib \
+CPPFLAGS=-I$HOME/felabs/sysdev/thirdparty/staging/usr/include \
 CC=arm-linux-gcc ./configure --host=arm-linux \
                              --prefix=/usr
 \end{verbatim}
@@ -689,7 +695,7 @@ Done with libao!
 
 Finally, thanks to all the libraries we compiled previously, all the
 dependencies are ready. We can now build the vorbis-tools themselves.
-Download the version 1.4.5 from the official website, at
+Download the version 1.4.0 from the official website, at
 \url{http://xiph.org/}. As usual, extract the tarball.
 
 Before starting the configuration, let's have a look at the available
@@ -804,7 +810,7 @@ CC=arm-linux-gcc \
 Now, the configure script should end properly, we can now start the
 compilation:
 \begin{verbatim}
-libusb
+make
 \end{verbatim}
 
 It should fail rather quickly, complaining that the curl headers are



More information about the training-materials-updates mailing list