Showing posts with label gcc. Show all posts
Showing posts with label gcc. Show all posts
Monday, March 12, 2007
2ndw.net gentoo overlay
I'm back with other news... Me and a friend started a gentoo overlay at 2ndw.net. You can use the overlay by going to a directory where you want the overlay and typing "svn co http://2ndw.net/svn/". Currently ebuilds for AWN (revision 158) and gcc-4.2 (march 7) are in the tree. AWN will be updated whenever njpatel adds new stuff to the AWN repository, and more packages will be added soon...
Saturday, March 3, 2007
Compiling the gaim_awn plugin
I started working on the gaim_awn plugin from within gaim 2 beta 6 sources, but it's complete and utter BS to need gaim sources and Makefiles to compile the plugin, so my goal for today was to compile it myself and create a Makefile. At first I was getting nowhere. I tried to do the same as was done in the gaim Makefile, but that didn't get me any further. I searched the net a bit but didn't find much I could use. Then at some point I sort of compiled something, so I was looking at how to put it in a Makefile (been a year since I last used one) when I found how I could compile my module with ease. There's nothing to it... So in case anyone else has the same problem, here's how I did it:
gcc -fPIC -c gaim_awn.c -o gaim_awn.o -DVERSION=\"`date "+%Y%m-%d_%R"`\" -I /usr/include/gaim/ -I /usr/include/gtk-2.0 -I /usr/lib/gtk-2.0/include/ -I /usr/include/atk-1.0 -I /usr/include/cairo/ -I /usr/include/pango-1.0/ -I /usr/include/glib-2.0/ -I /usr/lib/glib-2.0/include/ -I /usr/include/dbus-1.0/This evening I will fix my Makefile and put it on svn too, so everyone can compile without much hassle...
gcc -shared -Wl,-soname,gaim_awn.so -o gaim_awn.so gaim_awn.o
Subscribe to:
Posts (Atom)