Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I download and try to compile the source code for GTK2:

sudo apt-get build-dep libgtk2.0-0
sudo apt-get source libgtk2.0-0   
cd gtk+2.0-2.24.6/

./configure --prefix=/usr

And I get an error:

In file included from gtkquery.c:26:0:
gtkquery.h:31:2: error: #error "gtkfilechooserprivate.h is not supported API for general use"

Interestingly, I can compile GTK3 with no problems at all with the same steps above. I am using Oneiric.

If i try debuild, I get thousands of

dpkg-source: error: cannot represent change to gtk+2.0-2.24.6/something/something: binary file contents changed
share|improve this question

This happens because the source package that you've downloaded has pre-set flags that are passed to configure, along with a number of other steps that are laid out in debian/rules. Prior to building, if you've made changes to the package you should add a new revision in debian/changelog

To build the source package that you've downloaded:

sudo apt-get install devscripts build-essential
cd gtk+2.0-2.24.6/

This will compile & produce binary packages from the build in the parent directory.

share|improve this answer
This gives me "dpkg-source: error: unrepresentable changes to source " By the way the steps I did works for GTK3 so they should be working for GTK2 too. – Eren Tantekin Nov 7 '11 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.