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

Error compiling alsatplg #37

Closed
dbaluta opened this issue Apr 8, 2020 · 4 comments
Closed

Error compiling alsatplg #37

dbaluta opened this issue Apr 8, 2020 · 4 comments

Comments

@dbaluta
Copy link
Contributor

dbaluta commented Apr 8, 2020

With latest alsa-lib and alsa-utils sources I cannot compile alsatplg utility.

Steps followed:

Compile alsa-lib

  1. ./gitcompile --prefix=$HOME/work/sof_dir/alsa-lib-bins/
  2. make install #custom instalation to be later used by alsa-utils.

Compile alsa-utils

  1. /gitcompile --with-alsa-inc-prefix=$HOME/work/sof_dir/alsa-lib-bins/include/ --with-alsa-prefix=$HOME/work/sof_dir/alsa-lib-bins/lib
  2. I get the following errors:
-ldl -lpthread
topology.o: In function `load_topology':
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:135: undefined reference to `snd_tplg_create'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:141: undefined reference to `snd_tplg_load'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:145: undefined reference to `snd_tplg_free'
topology.o: In function `version':
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:63: undefined reference to `snd_tplg_version'
topology.o: In function `dump':
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:218: undefined reference to `snd_tplg_save'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:219: undefined reference to `snd_tplg_free'
topology.o: In function `compile':
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:245: undefined reference to `snd_tplg_build_bin'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:246: undefined reference to `snd_tplg_free'
topology.o: In function `decode':
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:268: undefined reference to `snd_tplg_create'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:273: undefined reference to `snd_tplg_decode'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:281: undefined reference to `snd_tplg_save'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:282: undefined reference to `snd_tplg_free'
/home/nxf25322/work/sof_dir/alsa-utils/topology/topology.c:276: undefined reference to `snd_tplg_free'
collect2: error: ld returned 1 exit status
Makefile:433: recipe for target 'alsatplg' failed

Similar with #33

@dbaluta
Copy link
Contributor Author

dbaluta commented Apr 8, 2020

So it looks -latopology is not added into the final compilation step. The issues is identical with #33 but I still see it in the latest version.

@perexg
Copy link
Member

perexg commented Apr 8, 2020

Copy latest alsa.m4 from alsa-lib/utils directory to your global aclocal path (like /usr/share/aclocal).

@dbaluta
Copy link
Contributor Author

dbaluta commented Apr 8, 2020

@perexg thanks it works now. Any idea how do I make ./configure to not ask for a confirmation on this

Copying file m4/progtest.m4

Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.9 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.

You might also want to copy the convenience header file gettext.h
from the /usr/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.

Press Return to acknowledge the previous two paragraphs.

@dbaluta dbaluta closed this as completed Apr 8, 2020
@perexg
Copy link
Member

perexg commented Apr 8, 2020

It's gettextize issue:

  echo "Press Return to acknowledge the previous $count."
  # Read from /dev/tty, not stdin, so that gettextize cannot be abused by
  # non-interactive tools.
  read dummy < /dev/tty

The setsid works like setsid gettextize -c -f --no-changelog ....

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