I'm using the crosstool-ng toolchain configured with rpi3 sample.
the error given by the SDL at runtime is :
it appears that my SDL library is not compiled with ALSA support.Couldn't open audio device: No such device
so I tried to compile SDL 2 on my raspberry, it compiles and found ALSA as an audio driver but I have an error when linking with my program :
and many other errors in rpimouse.h for example.undefined reference to 'vc_dispmanx_rect_set'
I'm using the ./configure make install procedure.
I tried to cross-compile alsa on my laptop and put it in my sysroot, but it doesn't found alsa when configuring.
I do not know what to do, if someone knows how to solve the undefined reference, or to include alsa in cross-compiling, it would be the best day for me.