I try to compile the following:
gcc -Wall -lwiringPi -o gtk-led-c gtk-led-c.c `pkg-config --libs --cflags gtk+-2.0`
Beginning of the program as this:
- Code: Select all
#include <gtk/gtk.h>
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
int i=0;
void print_msg(GtkWidget *widget, gpointer window) {
......
and get tfollowing error:
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
gtk-led-c.c:8:21: ödesdigert fel: gtk/gtk.h: Filen eller katalogen finns inte
kompilering avslutad.
The program compiles nicely in Raspbian (a Debian linux-distribution for Raspberry Pi)
I have searched for gtk-devel of som kind but couldn't fined any corresponding packages.
Are there anyone that know what to do?