alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
366 stars 177 forks source link

Broken out-of-tree build #136

Closed concatime closed 3 years ago

concatime commented 3 years ago

Hi. Due to missing headers, I cannot build alsa-lib if the build directory is outside of the source tree.

make[2]: Entering directory '/home/iemaghni/Code/tmp/build/src/ucm'
  CC       utils.lo
In file included from ../../../alsa-lib/src/ucm/ucm_local.h:41,
                 from ../../../alsa-lib/src/ucm/utils.c:33:
../../../alsa-lib/include/use-case.h:45:10: fatal error: alsa/asoundlib.h: No such file or directory
   45 | #include <alsa/asoundlib.h>
      |          ^~~~~~~~~~~~~~~~~~

Step to reproduce:

git clone https://github.com/alsa-project/alsa-lib.git
mkdir build
cd alsa-lib
libtoolize --force --copy --automake
aclocal
autoheader
automake --foreign --copy --add-missing
autoconf
cd ../build
../alsa-lib/configure
make

Thank you!

perexg commented 3 years ago

Fixed in the above commit. Thank you for your report!