[bootlin/training-materials updates] master: labs/sysdev-thirdparty*: misc fixes (858cfc4c)
Michael Opdenacker
michael.opdenacker at bootlin.com
Fri Jul 21 18:39:41 CEST 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/858cfc4c2f0e5fb2c486b4562fb9865498370359
>---------------------------------------------------------------
commit 858cfc4c2f0e5fb2c486b4562fb9865498370359
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Fri Jul 21 15:17:33 2023 +0200
labs/sysdev-thirdparty*: misc fixes
In particular, remove one line ahead of the expected error,
which a version number that has changed, and which could
continue to change. What matters is the actual error.
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
858cfc4c2f0e5fb2c486b4562fb9865498370359
.../sysdev-thirdparty-bbb.tex | 25 ++++++++++++++++++----
.../sysdev-thirdparty-qemu.tex | 21 ++++++++++++++++--
.../sysdev-thirdparty-stm32.tex | 25 ++++++++++++++++++----
3 files changed, 61 insertions(+), 10 deletions(-)
diff --git a/labs/sysdev-thirdparty-bbb/sysdev-thirdparty-bbb.tex b/labs/sysdev-thirdparty-bbb/sysdev-thirdparty-bbb.tex
index be015a75..7f3e0693 100644
--- a/labs/sysdev-thirdparty-bbb/sysdev-thirdparty-bbb.tex
+++ b/labs/sysdev-thirdparty-bbb/sysdev-thirdparty-bbb.tex
@@ -181,7 +181,7 @@ The \code{configure} script should end properly now, and create a
Makefile.
However, there is one subtle issue to handle.
-We need to tell {\em alsa-lib} to disable a feature called alsa topology.
+We need to tell {\em alsa-lib} to disable a feature called {\em alsa topology}.
{\em alsa-lib} will build fine but we will encounter some
problems afterwards, during {\em alsa-utils} building.
So you should configure {\em alsa-lib} as follows:
@@ -396,7 +396,6 @@ $ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \%\lineb
Now, it should stop a bit later, this time with the error:
\begin{verbatim}
-checking for libasound headers version >= 1.0.27... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.
\end{verbatim}
@@ -442,7 +441,25 @@ $ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
--disable-alsamixer
\end{bashinput}
-Then, run the compilation with \code{make}. Hopefully, it works!
+Then, run the compilation with \code{make}. You should hit a final
+error:
+
+\begin{verbatim}
+Making all in po
+make[2]: Entering directory '/home/tux/embedded-linux-labs/thirdparty/alsa-utils-1.2.9/alsaconf/po'
+mv: cannot stat 't-ja.gmo': No such file or directory
+\end{verbatim}
+
+This can be fixed by disabling support for \code{alsaconf} too:
+
+\begin{bashinput}
+$ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
+ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \
+ ./configure --host=arm-linux --prefix=/usr \
+ --disable-alsamixer --disable-alsaconf
+\end{bashinput}
+
+You can now run \code{make} again. It should work this time.
Let's now begin the installation process. Before really installing in
the staging directory, let's install in a dummy directory, to see
@@ -612,7 +629,7 @@ Here, we will be using the 2.0.x version of {\em libgpiod}.
\begin{bashinput}
git clone https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
cd libgpiod
-git checkout 2.0.x
+git checkout v2.0.x
\end{bashinput}
As we are not starting from a release, we will need to install
diff --git a/labs/sysdev-thirdparty-qemu/sysdev-thirdparty-qemu.tex b/labs/sysdev-thirdparty-qemu/sysdev-thirdparty-qemu.tex
index 8b0bdb69..189254c4 100644
--- a/labs/sysdev-thirdparty-qemu/sysdev-thirdparty-qemu.tex
+++ b/labs/sysdev-thirdparty-qemu/sysdev-thirdparty-qemu.tex
@@ -395,7 +395,6 @@ $ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \%\lineb
Now, it should stop a bit later, this time with the error:
\begin{verbatim}
-checking for libasound headers version >= 1.0.27... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.
\end{verbatim}
@@ -441,7 +440,25 @@ $ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
--disable-alsamixer
\end{bashinput}
-Then, run the compilation with \code{make}. Hopefully, it works!
+Then, run the compilation with \code{make}. You should hit a final
+error:
+
+\begin{verbatim}
+Making all in po
+make[2]: Entering directory '/home/tux/embedded-linux-labs/thirdparty/alsa-utils-1.2.9/alsaconf/po'
+mv: cannot stat 't-ja.gmo': No such file or directory
+\end{verbatim}
+
+This can be fixed by disabling support for \code{alsaconf} too:
+
+\begin{bashinput}
+$ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
+ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \
+ ./configure --host=arm-linux --prefix=/usr \
+ --disable-alsamixer --disable-alsaconf
+\end{bashinput}
+
+You can now run \code{make} again. It should work this time.
Let's now begin the installation process. Before really installing in
the staging directory, let's install in a dummy directory, to see
diff --git a/labs/sysdev-thirdparty-stm32/sysdev-thirdparty-stm32.tex b/labs/sysdev-thirdparty-stm32/sysdev-thirdparty-stm32.tex
index 05955346..8999d178 100644
--- a/labs/sysdev-thirdparty-stm32/sysdev-thirdparty-stm32.tex
+++ b/labs/sysdev-thirdparty-stm32/sysdev-thirdparty-stm32.tex
@@ -181,7 +181,7 @@ The \code{configure} script should end properly now, and create a
Makefile.
However, there is one subtle issue to handle.
-We need to tell {\em alsa-lib} to disable a feature called alsa topology.
+We need to tell {\em alsa-lib} to disable a feature called {\em alsa topology}.
{\em alsa-lib} will build fine but we will encounter some
problems afterwards, during {\em alsa-utils} building.
So you should configure {\em alsa-lib} as follows:
@@ -396,7 +396,6 @@ $ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \%\lineb
Now, it should stop a bit later, this time with the error:
\begin{verbatim}
-checking for libasound headers version >= 1.0.27... found.
checking for snd_ctl_open in -lasound... no
configure: error: No linkable libasound was found.
\end{verbatim}
@@ -442,7 +441,25 @@ $ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
--disable-alsamixer
\end{bashinput}
-Then, run the compilation with \code{make}. Hopefully, it works!
+Then, run the compilation with \code{make}. You should hit a final
+error:
+
+\begin{verbatim}
+Making all in po
+make[2]: Entering directory '/home/tux/embedded-linux-labs/thirdparty/alsa-utils-1.2.9/alsaconf/po'
+mv: cannot stat 't-ja.gmo': No such file or directory
+\end{verbatim}
+
+This can be fixed by disabling support for \code{alsaconf} too:
+
+\begin{bashinput}
+$ LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
+ CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \
+ ./configure --host=arm-linux --prefix=/usr \
+ --disable-alsamixer --disable-alsaconf
+\end{bashinput}
+
+You can now run \code{make} again. It should work this time.
Let's now begin the installation process. Before really installing in
the staging directory, let's install in a dummy directory, to see
@@ -614,7 +631,7 @@ Here, we will be using the 2.0.x version of {\em libgpiod}.
\begin{bashinput}
git clone https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
cd libgpiod
-git checkout 2.0.x
+git checkout v2.0.x
\end{bashinput}
As we are not starting from a release, we will need to install
More information about the training-materials-updates
mailing list