![]() Registered Member ![]()
|
I would really like to compile KDE applications and code but for KDE I never managed to set up a built system which just worked. Documentation to this end is either completely outdated or comprises five different solution drafts and you will get stuck regardless which path you chose.
Is there any up to date description how to compile and built a particular KDE application from sources which JUST WORKS? |
![]() Administrator ![]()
|
Unfortunately I do not know of any. I recommend simply installing dependencies as CMake configure logs indicate they are needed or optional.
Below is the script I source from ~/.xinitrc which sets up my environment variables. Note that I compile Qt as well, and use /opt/trunk-kde/extras for compiled utilities from sites such as kde-apps.org
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
Which application are we talking about?
What kind of source code source are we talking about (SVN, tar balls, etc)? Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
First of all you will need the development essentials of your distribution and some packages that KDE needs specifically you can get this from the Getting started guide never the less. But when it comes to compiling things like trunk from start to finish I advise you to use kdesvn-build.
And here is a simple how to for using kdesvn-build. Otherwise if you only want to compile things like Bangarang or Konversation there is in Debian/Ubuntu/every other APT based distro a simple line you can run to install what is needed to get you started: apt-get build-dep konversation Have fun!
My blog :
http://adreasdevblog.wordpress.com I work with the head developer on this one: http://techbase.kde.org/Projects/Aki My code repository on github: https://github.com/xxtjaxx/xxtjaxxRepository/tree |
![]() Administrator ![]()
|
If it's about building KDE from subversion, I have written a guide which I hope "just works". It only describes one path - building with a special user (kde-devel) and kdesvn-build - because I tried to keep it simple. There are also some links to Techbase articles for more information.
To build an application from source, you usually just have to do something like this: (KDE SC 4) 1. Extract archive 2. Enter the extracted directory 3. Make a build directory and enter it
4. Run cmake (you might want to specify more/less options)
Don't forget the two dots at the end! 5. Build and install
Generally it's better to let your package manager take care of installing applications since it'll keep track of it, notify you when there's an update etc.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]