Failed to find alsa / asoundlib.h

When I create source code on Android, I get this error

cannot find alsa / asoundlib.h

I have already installed libasound2-dev. asoundlib.h is present in usr / include / alsa / folder but still the builder cannot find it.

Can someone tell me why the compiler cannot find asoundlib.h? How to add / usr / include to the search path for header files?

+5
source share
3 answers

I had a problem, then I found a solution. In the external / alsa -lib, they include all the libraries for compiling alsa-util. However, alsa-util compilations or other als-related programs look for alsa / * libraries. H, where all * .h are in the include folder.

alsa /alsa -lib/include/, , .

+2

debian ubuntu, apt-get install libasound2-dev . , . ( , .)

, . , , , locate asoundlib.h.

+1

Subversion?

, Subversion. libasound2-dev /usr/include/alsa external/qemu/alsa, . :

make: *** No rule to make target 'prebuilt/linux-x86/sdl/lib/libSDL.a', needed by 'out/host/linux-x86/obj/STATIC_LIBRARIES/libSDL_intermediates/libSDL.a'.  Stop.

After some research, it turned out that some static libraries in the folder were prebuiltmissing, because Subversion ignores some specific file extensions . After receiving these files, everything worked fine ...

I don't know if this will do the trick in your case, but maybe this is the โ€œmissing linkโ€ for you or someone else ...

0
source

All Articles