[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [gnome-love] At last... I made it...
- From: Murray Cumming <murrayc murrayc com>
- To: Melinda <melinda_sayang hotpop com>
- Cc: Sean Middleditch <elanthis awesomeplay com>, gnome-love gnome org
- Subject: Re: [gnome-love] At last... I made it...
- Date: Tue, 15 Jun 2004 22:28:25 +0200
On Tue, 2004-06-15 at 19:45 +0700, Melinda wrote:
> > If for some reason you cannot use Binreloc and need to hard-code the
> > path (*please* don't do this if not necessary; hard-coded paths are the
> > devil and make it impossible to relocate your binaries), you'll need to
> > tell the app where to find the glade file. To do this, add something
> > like -DDATADIR="${datadir}/@PACKAGE_TARNAME@" to your CFLAGS variable.
> > Then you'll have the DATADIR macro in your code that points to the
> > proper directory, so you can find the glade file using DATADIR
> > "/wallpapoz.glade" in your code.
> Ok, here's my code according to your suggestion:
> string blabla = DATADIR + "/wallpapoz.glade"
> refXml = Gnome::Glade::Xml::create( blabla );
>
> So how do I define DATADIR in mycode? You said add something like "..."
> to your CXXFLAGS variable. But when I search this string:
> there are three files that have this variable:
> Makefile.old, Makefile.in, configure.
> I guess you don't want me to hack Makefile.old and configure script. I
> doubt about Makefile.in.
I don't know what Makefile.old is, but Makefile.in is a generated file.
You should be using autoconf and automake, so you should only edit
Makefile.am. That is what Sean is suggesting.
I see hat you are using C++. Therefore prefixsuffix is a nice simple
example of this for you:
http://prefixsuffix.sourceforge.net/
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]