Build error: libXxf86vm not found

That library is required, for example the Ubuntu build instructions specify the libxxf86vm-dev package to be installed:
https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu

Maybe you are using another Linux distribution and the instructions are incomplete, or you skipped a step in the instructions.

thanks a lot!
but it was a new problem!