Compiling code from multiple folders
bo at iaew.rwth-aachen.de
Mon May 26 08:31:58 BST 2003
> Thanks for the reply Isreal. Unfortunately this is not enough. This
> method creates multiple copies of the Common files. Now if a change is
> made to a common file I need to manually copy that updated file to all
> projects that are using it. This is unmanageable :(.
I also felt that it comes to problmes with KDevelop (using v2.1.5 myself) when
numerous developers are working on miscellanelous plattforms and you need to
manage existing or externaly added files to the project (i.e. using CVS).
Sometimes the '.kdevprj'-File contains old files wich do not exist anymore and
it's hard to keep this file consistent if files are added from an external
source. I had the problem that KDevelop run into trouble keeping track of
it's makefiles, too.
I have to admit that I'm not familiar with autoconf and automake and the way
KDevelop uses these tools.
At least I used 'qmake' to let it generate the makefiles - it's very flexible
and does work on various plattforms. Once QMake has written it's makefiles I
can use the KDevelop IDE - it just runs make and doesn't determine that the
makefiles are not created by itself. To make this practicable I wrote a
little Perl script that traverses the project directory, does then create the
corresponding '.pro' files and writes a '.kdevprj' file itself ... if someone
added some files (so everytime I do a cvs checkout) I just start the script
and then KDevelop works fine for me.
Now, this can't realy be the solution but currently I don't know a better way
to do my work. The mentioned perl script was written for our projects and so
it's very specialized and depends on our environment. But for the first you
might probably give some handwritten qmake-files a try - maybe this could
solve your subdir makefiles problem and you can use these files to create
your VS stuff also.
But instead of using qmake externaly, it might be possible to fine tune
KDevelops configure or makefile files (.in, .am, and so on). Is there any
documentation on how KDevelop does use these files (i.e. on wich
circumstances KDevelop does create wich file out of what source) and on how
to manipulate them without confusing KDevelop?!?
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
More information about the KDevelop