Please notice that Ubuntu provides user-friendly documentation for each version that has been released and and is currently supported. In the server guide, which is part of the official documentation, you can find a chapter for Windows Networking which contains a section on how to set up a Domain Controller.
You are free to use other guides, of course. But you should know how to read and follow them and how they do apply to different distributions and skills of the reader. Most projects start their documentation with how to compile the software. However when you are using a distribution like Ubuntu that provides precompiled packages, you should install the provided packages instead, because maintaining a self compiled installation can be quite a burden, as you have to compile every update and sometimes even need to backport patches.
Also notice that Ubuntu comes with a precompiled Samba 4 (meta)package.