Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken out-of-tree build #136

Closed
concatime opened this issue May 20, 2021 · 1 comment
Closed

Broken out-of-tree build #136

concatime opened this issue May 20, 2021 · 1 comment

Comments

@concatime
Copy link

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 perexg closed this as completed in b0e99e4 May 25, 2021
@perexg
Copy link
Member

perexg commented May 25, 2021

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

lgirdwood pushed a commit to thesofproject/alsa-lib that referenced this issue May 31, 2021
Fixes:

  cd alsa-lib
  if test -r Makefile; then
    make distclean
  fi
  mkdir build
  cd build
  ../configure
  make

Note:

  The srcdir is used for the symlinks to generated include files :-(
  I've not found a better (easy) way to fix this.

Fixes: alsa-project#136
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants