Re: Porting Gnome1 apps to Gnome 2 using Garnome



There's a porting guide at

http://developer.gnome.org/dotplan/porting/

and the developer list will be able to provide you with more help.

I'm a bit confused regarding the development environment setup.
I have Gnome1 (mandrake 8.2) with all the dev packages. I've been developing BitLeaf as a Gnome1 app and It's time to port. The thing is, 1. I'm using gnome-config to get the cflags and the libs stuff for building, I would probably have to move to pkg-config right?

Yes, that's all described in the porting document. It was *really* easy for me, and it's the voodoo in configure.in etc. is much simpler.

Have a look at http://developer.gnome.org/dotplan/porting/ar01s05.html


2. When I do pkg-config --cflags gnome for example, I get
-DNEED_GNOMESUPPORT_H -I/usr/include/gnome-1.0 -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include

That's all gnome 1 stuff,, even though I'm runnig pkgconfig from the garnome directory.

pkg-config --cflags gtk-2.0 etc. is what you need to be doing, you probably have your $PKG_CONFIG_PATH set to include /usr/whatever


PKG_CHECK_MODULES() command will take care of all that automagically for you.


Also, what's the correct way to install garnome in /usr like gnome1 (or where ever gnome1 is installed). Do I just make the build prefix /usr (currently I build garnome in /opt).


I haven't done that and it hasn't stopped me from using gnome-2 exclusively for use *and* development for quite some time. Though you'd just have to change some values in gar.conf.mk



Thx






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]