How to install glib-2.0, or what is the Mint equivalent.
Posted: Mon Nov 12, 2012 8:11 pm
I am trying to build xseticon (http://unix.stackexchange.com/a/55054/15359), as it is not in the mint repos.
However, simply running make returns a dependency error:
I looked through the repos and didn't find any package which is obviously the equivalent of glib-2.0, how should I proceed??
NB. A few details:
My system: Mint 13, MATE 32bit
xseticon's Makefile:
However, simply running make returns a dependency error:
Code: Select all
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
gcc -I /usr/X11R6/include -c xseticon.c -o xseticon.o
xseticon.c:23:18: fatal error: glib.h: No such file or directory
compilation terminated.
make: *** [xseticon.o] Error 1
NB. A few details:
My system: Mint 13, MATE 32bit
xseticon's Makefile:
Code: Select all
GLIB_CFLAGS=$(shell pkg-config --cflags glib-2.0)
GLIB_LIBS=$(shell pkg-config --libs glib-2.0)
XLIB_CFLAGS=-I /usr/X11R6/include
XLIB_LIBS=-L /usr/X11R6/lib -lX11 -lXmu
GD_LIBS=-lgd
LIBS=${GLIB_LIBS} ${XLIB_LIBS} ${GD_LIBS}
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
all: xseticon
xseticon.o: xseticon.c
gcc ${GLIB_CFLAGS} ${XLIB_CFLAGS} -c $^ -o $@
xseticon: xseticon.o
gcc ${LIBS} $^ -o $@
.PHONY: clean
clean:
rm -f xseticon.o xseticon
.PHONY: install
install: xseticon
install -d $(BINDIR)
install -m 755 xseticon $(BINDIR)