gtk give me error
- Inicie sesión o regístrese para enviar comentarios
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??
Here is the forum for GTK+ http://www.gtkforums.com/
Have you got the libgtk-3-dev package installed?
> 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.
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.
Maybe you should try apt-get update first.
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.
What were the questions? Maybe it removed something important.
- Inicie sesión o regístrese para enviar comentarios