Uh oh!
There was an error while loading. Please reload this page.
include: add missing header file for Topology parser - #3166
Conversation
This patch adds missing header file asoc.h which is required to build Topology parser (tplg_parser.c) Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
paulstelian97
left a comment
There was a problem hiding this comment.
Shouldn't this be in src/include/kernel?
lgirdwood
commented
Jul 14, 2020
The file is included with the kernel headers, I suspect we probably need to point to the kernel headers in the include paths. |
mrajwa
commented
Jul 14, 2020
@lgirdwood, it is in kernel repo include I agree, but I can't see it in FW anywhere. @paulstelian97 , that may be a good idea. |
jajanusz
commented
Jul 14, 2020
It shouldn't be in our repo at all, it's part of kernel 'core' codebase (not even sof), we don't copy alsa headers to sof, we also shouldn't copy non-SOFABI kernel headers. These files can be installed in system headers or added with |
marc-hb
commented
Jul 15, 2020
What's the added value compared to a basic "asoc.h not found" message from the pre-processor? |
This would help to avoid some confusion. It could appear a FW/SDK bug to anyone new. I would also add this in sof-docs as a dependency. |
I hope most C developers interpret any "missing X.h" error as "What dependency do I miss?". Sure you can always provide more information in a CMake error but last time I checked we had 1.5 CMake developers in the team (counting myself as 0.5) and unsurprisingly no one else anywhere close to volunteering. So less CMake code is more IMHO.
Absolutely - I went through the getting started guide not very long ago and the list of dependencies was there and easy to use. EDIT: it is there already, see next comment. |
tl;drI tested on 20.04 the It just works and installs Longer storyI searched and found on my Ubuntu 20.04 system 3 copies of the same I recommend against creating a 4th copy :-) By default, While PS/shameless plug: about alsa-lib packages see also thesofproject/linux#2211, advice welcome. |
marc-hb
commented
Jul 27, 2020
@mrajwa ? Just Works, close? |
I know and I am also surprised why my Ubuntu 16.04 doesn't install it during that apt-get step Content of my /usr/include/sound/
as you can see there is no asoc.h however it is here /usr/include/alsa/sound/asoc.h - a quick and simple copy of asoc.h to /usr/include/sound/ fixes the issue. Yes this PR is out of question and should be closed. I just got confused by this missing header file. Can I close now or we still want to discuss this case? |
lgirdwood
commented
Aug 4, 2020
We can close. |
This patch adds missing header file asoc.h which is required
to build Topology parser (tplg_parser.c)
Signed-off-by: Marcin Rajwa marcin.rajwa@linux.intel.com