can you tell us if any compilation guide for building inkscape does not mention submodules ?

Which one did you follow ?

I am following this guide: https://gitlab.com/inkscape/inkscape/blob/master/CONTRIBUTING.md#building