Ubuntu (like most Linux dirstibutions) separates development libraries from the run-time system.
This error indicates that you need to install the development package that glib is associated with. Ubuntu has both 1.2 and 2.0 installed. The development libraries can be installed with
NOTE: There are bound to be other libraries for which you need the development versions. Check the documentation for the plugin, to see what it needs, and install the "-dev" version of each such library.
apt-get install libglib1.2-dev libglib2.0-dev