For those of you struggling to compile. Need to install extra dependency `glib2-devel`. Please see [here](https://gitlab.archlinux.org/archlinux/packaging/packages/glib2/-/issues/7#note_190675).