sudo is usually not needed for just compiling Qt on a Mac, only for "make install". Just make sure, all the files and directories of the source tree are owned by the user executing make. How did you extract the tarball?