How do you safely rebuild the cheese ?

https://devtalk.nvidia.com/default/topic/920286/jetson-tx1/streaming-video-to-my-camera/

I want to rebuild cheese source package to modify ./libcheese/cheese-camera.c

I did download cheese source by apt-get install source ( sudo apt-get source cheese )
and install dev package ( clutter-1.0-dev, clutter-gst-3.0, etc)

checking for X11/extensions/XTest.h... yes
checking for XTestFakeKeyEvent in -lXtst... yes
checking for CHEESE... no
configure: error: Package requirements (glib-2.0 >= 2.39.90
  x11
  gdk-pixbuf-2.0
  gstreamer-pbutils-1.0 gstreamer-plugins-bad-1.0 >= 1.4
  gnome-desktop-3.0
  clutter-1.0 >= 1.13.2
  clutter-gst-3.0 >= 3.0.0
  gudev-1.0) were not met:

No package 'gnome-desktop-3.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Installing the package gnome-desktop-3.0 has been a disaster for the Ubuntu system

How do you safely rebuild the cheese ?