Calligra has been compiled

Hi folks.

Yesterday finally i compiled the Calligra Suite. Its very simple at all, just few steps and, done! The steps that I followed are here:

1– Install all dependencies for compilation process, at ubuntu I used:

$ sudo apt-get build-dep koffice

2– Download the latest tarball.
I’m not with internet at home right now, so i downloaded the latest tarball in a tar.gz file.

wget -c http://anongit.kde.org/calligra/calligra-latest.tar.gz

3– I created the follow directory structure:

$HOME/kde4/src/
source code
$HOME/kde4/build/calligra
directory that Calligra will be built in
$HOME/kde4/inst
directory that Calligra will be installed in.

To me $HOME is: /home/helder/

4– Unpack the tar.gz downloaded inside the directory: $HOME/kde4/src/

5– Execute the file initrepo.sh:

$ ./initrepo.sh

6– Run the command line:

$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra -DCMAKE_BUILD_TYPE=RelWithDebInfo

7– Make it!

$ make -j4

My processor is a dual-core one, so i used the argumment -j4. If your processor is a quad-core, use -j8. This argumment will speed-up the compilation process.

8– To run the compiled programs are necessary these exports:

export KDEDIRS=$KDEDIRS:$HOME/kde4/inst
export PATH=$PATH:$HOME/kde4/inst/bin
export KDEHOME=$HOME/kde4/.kde

9– Then finally run the command above to create the menu entries:

$ kbuildsycoca4

10– And then type (at konsole) the program that you want to execute, in my case:

$ flow

building Calligra

This short step-by-step is completly done at: http://community.kde.org/Calligra/Building/Building_Calligra

Advertisements

6 thoughts on “Calligra has been compiled

  1. Kubuntu Natty does not know the source pkg calligra. Did you mean

    sudo apt-get build-dep koffice

    ?

  2. Why do you use make -ji with i being twice the number of cores? On my quad-core I cannot see a speed improvement when using -j8 instead of -j4, and the System Load Viewer plasmoid shows 100% activity for all cores using both arguments.

  3. I didn’t try use -j2, i put -j4 and works fine, and the activity was 100% at both cores. I think that compiler use the available cores with a quantity <= i, of -ji.

  4. You are right, but my point is: it doesn’t make sense to specify -ji with i > number of cores instead of i = number of cores, because make will try to run the i jobs simultaneously, but if there are less cores than jobs, then the jobs are just spread over all available cores so there are only n jobs (with n = number of cores) really running simultaneously and there is no speed improvement over running make -ji with i = n. In my case, there is no improvement over make -j4 when I run make -j8, and in your case there is no improvement over make -j2 when running make -j4 (of course all of these are better than just running make).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s