cole-anstey / circular-application-menu

Automatically exported from code.google.com/p/circular-application-menu
0 stars 0 forks source link

[SOLVED] cannot compile in gtk-2.* #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Just download via svn and start make I get a compile error...
sh: gtk-config: not found
...and a lot of error after this.

I solved it by making the following changes on my Ubuntu 10.04 system (the 
output is from a diff):

8,9c8,9
< CFLAGS=`pkg-config --cflags gtk+ gnome-desktop gvfs` -g -Wall -O2 -DDEBUG 
-I$(INCLUDES) 
< LIBS = `pkg-config --libs gtk+ gnome-desktop gvfs` -lgnome-menu

---
> CFLAGS=`pkg-config --cflags gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` -g 
-Wall -O2 -DDEBUG -I$(INCLUDES) 
> LIBS = `pkg-config --libs gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` 
-lgnome-menu

Original issue reported on code.google.com by bwak...@gmail.com on 17 Sep 2010 at 7:50

GoogleCodeExporter commented 9 years ago
Hi bwakkie,
Thank you for your findings.
I've just downloaded Ubuntu 10.10 beta, installed it and then installed the 
gnome development libraries by doing a...

sudo apt-get install gnome-devel

...and it appears to compile and run fine (see below).
I've tried your Makefile modifications and it wouldn't compile for me?
Not having 10.04 installed I cannot tell if its specific to this version; 
though the Makefile currently in svn does appear correct (for me anyhow). 

collie@collie-laptop:~/code/circular-application-menu$ make
gcc `pkg-config --cflags gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` -g -Wall -O2 
-DDEBUG -I/opt/gnome/include    -c -o src/main.o src/main.c
gcc `pkg-config --cflags gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` -g -Wall -O2 
-DDEBUG -I/opt/gnome/include    -c -o src/cmmcircularmainmenu.o 
src/cmmcircularmainmenu.c
gcc  `pkg-config --cflags gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` -g -Wall 
-O2 -DDEBUG -I/opt/gnome/include  src/main.o src/cmmcircularmainmenu.o -o 
circular-main-menu `pkg-config --libs gtk+-2.0 gnome-desktop-2.0 gnome-vfs-2.0` 
-lgnome-menu

Original comment by cole.ans...@gmail.com on 17 Sep 2010 at 5:03