i use debian, so i had to do this:
apt build-dep emacs
i assume pop os to be debian-based, so that'll work for you too. this ensures every dependency is available beforehand so you don't get to a scenario where emacs builds successfully, but something basic like gtk support is missing
then you clone emacs and then ./configure && make && make install
. i use it for work everyday and it works pretty well