Errors building px4_ros_com

When I build the package px4_ros_com, I get the following error:

make[2]: *** [CMakeFiles/micrortps_agent.dir/build.make:62: /home/ubuntu/px4_ros_com_ros2/src/px4_ros_com/src/micrortps_agent/microRTPS_agent.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/micrortps_agent.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
make: *** [Makefile:141: all] Error 2

How can I go about fixing this error?
Thank you

Use --verbose when running build script. For me, it was a simple package missing error.