Registered Member
|
January 2011 - This how-to is depreciated with the moving to Calligra and Git of the developpement team and may not work. I let the text here if it helps someone.
New thread and building script is here : http://forum.kde.org/viewtopic.php?f=139&t=92880 Step by step tested and working on a Ubuntu system This steps was written with the help of users in this thread.Many time I copy/pasted and quoted freely to their sentences ( a lot from the how-to of Enkithan ) Many thanks to them. All the updated informations are in the first 2 posts ; this one and the next by Enkithan. II. For Ubuntu Lucid, Linux Mint Isadora 1. Dependencies Open a terminal :
Open Synaptic(System / Administration / Synaptic package manager ) Go to the menu bar ->Settings->Repositories click on the "Other software" label, then press Add button and paste those line ( do it twice )
note : to upgrade Qt
package : qt4-qmake. Close it, press the reload button to refresh packages. Close Synaptic then in a terminal :
2. Grab sources and compile In a terminal :
when the text editor start paste into the following code :
Save, and close the text editor. In a terminal :
It will be long ( downloading the source + compile ) At the end of the installation, you will see a bunch of "-- Installing /blabla/bla...." lines. If not, the build failed, ask on this thread Then a terminal run this :
when the text editor start paste into the following code :
Now , reboot your computer 3. Run it In a terminal run this :
4. Updates Each time you want to update your krita build, open a terminal in the koffice folder and run ./koinstall.sh II. For Ubuntu Karmic, Linux Mint Helena 1. Dependencies Open a terminal :
Open Synaptic(System / Administration / Synaptic package manager ) Go to the menu bar ->Settings->Repositories and check "Source code" and "Backported packages ( backport)" click on the "Other software" label, then press Add button and paste those line ( do it twice )
(repositeries found on https://edge.launchpad.net/~kubuntu-ppa ... /backports) Close it, press the reload button to refresh packages. Close Synaptic then in a terminal :
2. Grab sources and compile In a terminal :
when the text editor start paste into the following code : ( edit : thanks to Enkithan for the update )
Save, and close the text editor. In a terminal :
It will be long ( downloading the source + compile ) At the end of the installation, you will see a bunch of "-- Installing /blabla/bla...." lines. If not, the build failed, ask on this thread Then a terminal run this :
when the text editor start paste into the following code :
Now , reboot your computer 3. Run it In a terminal run this :
4. Updates Each time you want to update your krita build, open a terminal in the koffice folder and run ./koinstall.sh
Last edited by Deevad on Sun Feb 20, 2011 4:35 am, edited 11 times in total.
|
Registered Member
|
Installing dependencies on other distribs
*Opensuse:
*Deb based distribs:
How-to make a Krita package for ArchLinux: 1. Save this script in a text file, and name it PKGBUILD.
This script will build only krita and karbon. If you want to try other koffice apps, just replace "off" by "on" next to the app name, in the cmake line (e.g. "-DBUILD_kword=on" to build kword). 2.to build the package, type this command:
If everything goes well, a new package appeared in the folder, with a name like that : koffice-svn-"svn-revision"-"arch".pkg.tar.gz "svn-revision" being a number, and "arch" being x86_64 or i686. 3.to install:
4. When you want to update, repeat step 2. and 3. that's all Edit 2010/04/13 *removed the tutorial now that Deevad made a much better one. *show complementary infos for other distribs. *how-to make an Arch package. Edit 2010/05/29 *added missing dependencies *use makepkg -s instead of installing all dependencies manually (thanks Kubuntiac !).
Last edited by enkithan on Sat May 29, 2010 10:39 am, edited 3 times in total.
|
Registered Member
|
Many thanks Enkithan,
Your how-to is perfectly readable and well done. Here I'm blocked with an error. Probably cause I don't use the same system as you ( Linux Mint Helena , Ubuntu karmic based ). What I did for the moment :
(note: my profile name is 'renderman'; I try to install it in my renderfarm this machine is ok for all test, I often reinstall on it a new fresh system.) |
Administrator
|
You need to install the appropriate KDE Libs development packages ( kdelibs5-dev I think for Debian based distros )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
hmm.. I had totally forgotten that many distrib split their packages in -lib and -dev... that makes my package list a bit useless
So installing/uninstalling koffice would only install packages needed for running krita, and not the one needed for building it. ok try this: 1-as bcookley said, install the -dev version of kdelibs. 2-run "sudo apt-get build-dep koffice-kde4", it will install the dependencies needed to build krita. I just remembered this nice tutorial at http://wiki.koffice.org/index.php?title=Building/Building_KOffice, actually, it's probably even better than mine |
Registered Member
|
( 4 hours later on trying various combinaison with Synaptic and the librairies, reinstalling Karmic 2 times cause the librairies always installed me many unwanted things ; I'm back with another new karmic system, ready to try the clean way.)
On a clean system : What working for now :
What doesnt work :
So , I'm still at the step 1.1. Thanks if you can help me. Here is what I tryed this afternoon : - Bypass this not working things and continue the process , a lot of missing dependencies return error with "cmake". I tryed to install dependencies one by one according to the error message using Synaptic, but it resulted in Synaptic install me koffice or koffice for KDE4 , and Krita , Karbon. I can't remove them after... or one by one. I want to have a clean way to do it. |
Registered Member
|
You get that error message because apparently, you haven't enabled the source package repository in Synaptic. To do so, go to Synaptic->Settings->Repositories and check "Source code".
|
Registered Member
|
Thanks Josim,
I added the source repositories, now I have this when I enter the code line :
|
KDE Developer
|
That might be because koffice2 is in a ppa -- try following the instructions at http://www.kubuntu.org/news/koffice-2-beta, then it should work.
|
KDE Developer
|
What I meant is, you need to have a repository that contains koffice2 for the "sudo apt-get build-dep koffice-kde4" command to work -- you don't need to install koffice2, of course.
|
KDE Developer
|
Other possibility is to install the packages manually.
Krita has these dependencies: http://wiki.koffice.org/index.php?title ... dependency You need to know the names of the packages in your distro and usually add -devel or -dev suffix so that development version is installed.
Daylight is coming...
Krita developer | http://lukast.mediablog.sk/log |
Registered Member
|
So to get the source-code packages, you would need to add both of these lines, not only the first:
You can add these lines in Synaptic->Settings->Repositories->Other Software->"Add..." |
Registered Member
|
Hey many thanks all for help. I found a way to get all further step working. I edited my first post to write all the precise steps to do it on a karmic system. I hope it will help other peoples.
Now, I will play with and give feedback when I will be sure to understand the software. |
Registered Member
|
Ugh, at the end of step two, there's no need to restart your computer A simple "source ~/.bashrc" will do. (It will execute .bashrc and set e.g. environment variables accordingly).
//EDIT Also, in the last step, I would make clear that the two lines are two separate commands. Plus, with the environment variables set in your .bashrc, you don't need to enter the full path of the krita executable, entering "krita" is enough. |
KDE Developer
|
Yay! Looking forward to your input!
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]