gtk give me error

7 respostas [Última entrada]
alimiracle
Desconectado
Joined: 01/18/2014

hi all
I try compile my Program
gcc `pkg-config --cflags gtk+-3.0` -o q q.c `pkg-config --libs gtk+-3.0`

But give me this error

Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
q.c:1:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.

What's the problem
and What is the solution??

danieru
Desconectado
Joined: 01/06/2013

Here is the forum for GTK+ http://www.gtkforums.com/

lembas
Desconectado
Joined: 05/13/2010

Have you got the libgtk-3-dev package installed?

alimiracle
Desconectado
Joined: 01/18/2014

> Have you got the libgtk-3-dev package installed?

I tried install libgtk-3-dev
But give me this error

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libgtk-3-dev : Depends: libpango1.0-dev (>= 1.30.0) but it is not going to be installed
Depends: libcairo2-dev (>= 1.10.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Michał Masłowski

I am a member!

I am a translator!

Desconectado
Joined: 05/15/2010

Try installing it via aptitude: it will propose several solution, one is to downgrade some packages and install them. I don't know how these packages differ nor if this causes other problems.

Legimet
Desconectado
Joined: 12/10/2013

Maybe you should try apt-get update first.

alimiracle
Desconectado
Joined: 01/18/2014

sudo aptitude install libgtk-3-dev

When libgtk-3-dev was preparing to install, I answered "Y" to both questions. Then I restarted.

I type in my credentials at the graphical login screen, it accepts them, but then the screen goes black for a split second, and then returns to the login
screen. If I try to move the mouse, it sticks and skips.

Legimet
Desconectado
Joined: 12/10/2013

What were the questions? Maybe it removed something important.