I'd like to contribute... - a KDevelop -question

Branan Riley branan at gmail.com
Fri Oct 27 20:06:49 CEST 2006


Cmake should let you make a kdevelop project - check out the cmake Man
page. (I expect it has one).

My setup is like this:
user kde4, has custom .xsession to start kde4.
~kde4/kde4 - main directory for kde4 stuff
~kde4/kde4/kde - install dir
~kde4/kde4/qt-copy - qt-copy
~kde4/kde4/qt-copy-build - build dir for qt-copy
~kde4/kde4/kdebase - kdebase
~kde4/kde4/kdebase-build - build dir for kdebase

and so on and so forth.

Since you want to use kdevelop, you won't want that custom .xsession -
it'll break things. Instead, you'll want to write a script that sets
the KDE directory, and runs kde in a new x session. I don't know how
to do that off the top of my head, but there should be documentation.


If you look at the instructions for setting up your build environment,
you'll see the commands to create the Makefile from cmake, and build
everything. The stuff from each version is pretty similar, I picked my
favorite version.

FROM http://plasma.kde.org/wiki/index.php/How_to_setup_your_KDE_4_environment#5._Building_KDE
...
... [This is all one line. I've also changed one thing to be a better example]
alias cm='cmake -DCMAKE_INSTALL_PREFIX=<your install dir>
-DCMAKE_COLOR_MAKEFILE:BOOL=true
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="${CMAKE_CXX_FLAGS_RELWITHDEBINFO}-Wno-non-virtual-dtor"
-DCMAKE_BUILD_TYPE=debugfull'
...
...

That command is intended to be run from your build directory. IE:
cd ~kde4/kde4/kdebase-build
cm ../kdebase
make
make install

You'll need to tweak the cm command to generate a kdevelop project
file. Adding -GKdevelop3 to the end should make it work, if I'm
reading the cmake information properly.

Assuming I'm right, you should be able to do this:
cd ~kde4/kde4/kdebase-build
cm ../kdebase

Then run kdevelop, and open the project.

I haven't tried this, and I won't be able to until Sunday evening at
the earliest, so I'm more or less guessing. Hopefully it works. If it
doesn't, perhaps someone who's been at this longer than me (I just
built kde4 a few weeks ago, I'm looking for some interesting bugs now)
will have a better idea of what to do.

Branan

On 10/27/06, Tuomas Nurmi <iltunu at utu.fi> wrote:
> Hi!
>
> I've used KDE for years and been following many of the mailing lists for quite
> some time now. I have some experience from C and java programming and I've
> been lately studying C++ and QT4. I'm most interested in koffice development
> (yes, I've been following it quite keenly lately) and the major problem I
> have had is:
>
> I have NO experience what so ever of IDEs or auto* / CMake. In my projects I
> have compiled from the the command line using manually produced header files
> and Makefile.
>
> I've been trying to use KDevelop, and while I am able to start some simple
> projects, I seem to be unable to use it to compile anything from the svn or
> from various tarballs. (SVN is another mystery to me (I have no CVS
> experience either) but following the instructions I have been able to
> download something and sometimes get it compiled with the CLI.)
>
> So, I would like some advice as of how to use KDevelop and tips on what kind
> of practises would be good. To start with, where to put the source, how to
> document, how to build... I have read documentation on these, but it seems
> that as the practises and technology has evolved the documentation has become
> a bit inconsistent / outdated in these parts.
>
> I use gentoo system, I'm also a fairly new gentoo user, I previously used
> debian based distrors, so some of my problems might be related to that.
>
> Any ideas?-)
> _______________________________________________
> kde-quality mailing list
> kde-quality at kde.org
> https://mail.kde.org/mailman/listinfo/kde-quality
>


More information about the kde-quality mailing list