The legality of ROMs can vary by jurisdiction. Ensure you own a copy of the original game or have permission to use the ROM.
For many automated builders or mobile versions, the file often needs to be renamed to baserom.us.z64 Installation Guide