Compilation with srcdir != builddir
    Luciano Montanaro 
    mikelima at cirulla.net
       
    Fri Mar 11 15:23:27 GMT 2005
    
    
  
El Viernes 11 Marzo 2005 16:15, Adriaan de Groot escribió:
> On Friday 11 March 2005 16:06, Luciano Montanaro wrote:
> > Is there interest in compilation of kde in a directory different from
> > the build dir?
>
> By definition, you compile KDE in the build dir. From your subject, I
> suppose you mean "different from the source dir".
Yes, of course.
>
> Yes, there is interest. I do it about 3 times a day, for the whole KDE
> CVS tree (nonbeta and nox excepted, and only 7 languages from i18n).
> Package builders do this pretty often, as well.
>
> > I'm interested in supporting this feature in the kdenox module, and I
> > need to add various -I($top_builddir)/xxx to include directories for
> > the various generated files.
>
> That's not strange at all -- developers who happen to compile with srcdir
> == builddir tend to create Makefile.am's that don't work right with
> generated headers and stuff like that. They tend to get fixed pretty
> quick.
In this case, shouldn't the INCLUDE line in kjs/Makefile.am
INCLUDES = -I$(top_srcdir) $(PCRECFLAGS) $(all_includes)
read 
INCLUDES = -I$(top_srcdir) -I$(top_builddir) $(PCRECFLAGS) $(all_includes)
instead? Otherwise, the generated global.h file will not be found.
I've not tested with kdelibs sources, actually, I noticed this while 
experimenting with kdenox.
Luciano 
 
-- 
Luciano Montanaro 
Any sufficiently advanced technology is indistinguishable from a yo-yo
                                                          - Enoch Root
    
    
More information about the kde-core-devel
mailing list