One more cross compile issue: alsa-utils
OK I have managed to cross compile alsa-lib 1.0.11 but now alsa-utils complains about not being able to find the alsa-lib headers.
Quoted 1 line
From alsa-utils/config.log:
Invocation command line was
$ ./configure --host=ppc-linux --prefix=/home/rlrevell/cross-compile/usr/local --includedir=/home/rlrevell/cross-compile/usr/local/include
...
This is where it dies:
configure:5355: checking dependency style of powerpc-440-linux-gnu-gcc configure:5445: result: gcc3
configure:5475: checking for a BSD-compatible install configure:5530: result: /usr/bin/install -c
configure:5541: checking whether ln -s works configure:5545: result: yes
configure:5583: checking for ALSA CFLAGS
configure:5589: result:
configure:5592: checking for ALSA LDFLAGS
configure:5601: result: -lasound -lm -ldl -lpthread configure:5605: checking for libasound headers version >= 1.0.9 configure:5673: powerpc-440-linux-gnu-gcc -c -g -O2 conftest.c >&5 conftest.c:15:28: alsa/asoundlib.h: No such file or directory conftest.c:36:9: #error not present
conftest.c:47:10: #error not present
configure:5679: $? = 1
configure: failed program was:
But, /home/rlrevell/cross-compile/usr/local/include/alsa/asoundlib.h exists!!! Why does ./configure insist that it does not?
Lee
Quoted 2 lines · Lee Revell
But,
/home/rlrevell/cross-compile/usr/local/include/alsa/asoundlib.hexists!!! Why does ./configure insist that it does not?
Argh, I am an idiot. --includedir sets the install destination for include files, not the place to look for them. I fixed it by setting CPPFLAGS correctly.
Sorry for the noise.
Lee