[Kde-games-devel] Where/how is $(LIB_KDEGAMES) defined?

Andreas Beckermann b_mann at gmx.de
Tue Jul 18 22:55:32 CEST 2006


On Tuesday 18 July 2006 03:27, Ian Wadham wrote:
> > > Tarballs of my game do not define $(LIB_KDEGAMES).
> > > Consequently, the game program will not build unless the
> > > receiver has somehow defined that symbol elsewhere.
>
> From: "Albert Astals Cid" <aacid at kde.org>
>
> > My /home/kde35/build-kdegames/Makefile has
> > LIB_KDEGAMES correctly defined.
>
> I think you may be compiling and building all of kdegames
> and that LIB_KDEGAMES gets defined in the kdegames top
> directory.  My suspicion is it's in "configure.in.in".
>
> I wish to tarball a single game and have "./configure" and
> "make" work correctly for the receiver.  Should I add a copy
> of kdegames's "configure.in.in" to my tarball?

Actually you should not use internal kdegames variables in your non-kdegames 
tarball ;-)

But yes, looking at the kdegames/configure.in.in, this file indeed has support 
for cvs2pack, so copying this file to your tarball should fix the problem.

The problem here is (in case you care about the explanation) that in kdegames 
LIB_KDEGAMES in your projects needs to be defined to -lkdegames, however 
doing the same in kdegames would be very bad: we might link against an 
existing (installed) libkdegames, which may or may not provide all symbols 
(i.e. classes, methods, functions, ...) that are required. So kdegames needs 
to define it to $(top_builddir)/libkdegames/libkdegames.la.
That's why we can't easily use "-lkdegames" in kdegames and use the 
LIB_KDEGAMES variable instead.

> Cheers, Ian W.

CU
Andi


More information about the kde-games-devel mailing list