Reply to topic

Script to Compile Krita & Karbon for You v1.1.2 -Oneiric Edn

User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
I just talked to boud, and he thinks that it's probably a problem to do with having koffice packages installed from the standard repos. You can only have the repo versions *or* the freshly compiled version. Try going into Kpackagekit / Synaptic and purging any package to do with Koffice and then running the script again.

We're close!


Krita - All the cool kids are painting with it!
valerievk
Registered Member
Posts
181
Karma
1
OS
Erm... I did a sudo apt-get purge koffice koffice-data krita

The compilation process did seem different (longer, so it's likely no longer linking to existing libraries), but when it was done and I tried to start krita, I got this poppup:

The service '/home/valerie/.local/share/applications/kde4/krita.desktop' provides no library or the Library key is missing in

Well, it's the first time I get This sort of error, I guess that's progress?
nowardev
Registered Member
Posts
244
Karma
0
OS
mm
sudo apt-get build-dep koffice or krita?
valerievk
Registered Member
Posts
181
Karma
1
OS
Thank you! Doing that and re-compiling did the trick! :D

So, to others reading this, as far as I understood...

1. First remove older versions of Krita and KOffice
sudo apt-get purge krita koffice koffice-data

2. But you do have to build dependencies
sudo apt-get build-dep koffice

3. Running the script after that should work.

I thought that build-dep koffice and the koffice-data I purged were the same thing, but I guess that isn't the case. Thank you!

Edit: I spoke too soon. It crashed 10 seconds after with the same problem. I'm going to try it again after deleting the previous build of calligra.

Edit 2: Ah, okay. Basically, after compilation, it works for a while (the symmetry feature is So awesome!) However, it crashes for the same reason as mentioned in the first edit after a while, and once it's crashed, it refuses to start again. The terminal shows this dying message:

krita(7951)/kdecore (services) KServicePrivate::property: Request for unknown property ' "X-KDE-NativeMimeType" '
krita(7951)/kdecore (services) KServicePrivate::property: Request for unknown property ' "X-KDE-NativeMimeType" '
It seems your installation is broken/incomplete cause we failed to load the native mimetype "".
KCrash: Application 'krita' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/valerie/.kde/socket-kitchen/kdeinit4__0

[1]+ Stopped ./calligra/calligra-inst/bin/krita
valerie@kitchen:~/calligra$ QSocketNotifier: Invalid socket 25 and type 'Read', disabling...

Trying to start it again shows the following message again:

KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
krita(8126)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "kritapart.desktop" not found
krita(8126)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "Office/krita.desktop" not found
krita(8126)/koffice (lib komain) KoDocumentEntry::createDoc: "The service '/home/valerie/.local/share/applications/kde4/krita.desktop' provides no library or the Library key is missing in "

It's pretty sad, I was so happy that it worked for a while. But it seems really strange that it'd crash after a while (the first time, I just left it there for a while after trying out the mirror feature. The second time, the crash happened as I was deleting a layer) and not start again after.
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
Whenever it crashes, run kbuildsycoca4 again. It won't stop the crash (not sure what's causing that for you) but it should make it start afterwards.


Krita - All the cool kids are painting with it!
valerievk
Registered Member
Posts
181
Karma
1
OS
Nope, it still doesn't work. Maybe I should try to remove All kde components and libraries before the compilation? (I'm using gnome, so it's not a problem)

I wish I knew what exactly these "valid main components" are.

Edit: Oh geez, apparently it's not just a type of bug affecting Krita, it's something affecting VLC and Amarok as well:

http://forum.videolan.org/viewtopic.php?f=13&t=85408
https://bugs.kde.org/show_bug.cgi?id=260719
https://bugzilla.redhat.com/show_bug.cgi?id=668602

I don't really get it, but it's really annoying.

Edit 2: All right! I purged everything that smelled of kde (including kdebase and kdelibs), then sudo apt-get build-dep koffice, and after that it Seems to work now!

It complains about missing kio-files and such, but other than that it seems to work. Big thanks to Kubuntiac for the script and for your help, here's a sketch for you:

http://fc05.deviantart.net/fs71/f/2011/ ... 38wxo7.jpg
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
Glad you got it working and thanks for the sketch! Cute :)


Krita - All the cool kids are painting with it!
User avatar Damnshock
Registered Member
Posts
110
Karma
0
OS
Kubuntiac, would you mind if I use your script as a source to make a package for Archlinux?

Regards


Damnshock, proud to be a member of KDE forums since 2008-Oct.
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
Please do!

Despite my nick, I'm also a rather big Arch fan (pacman / makepkg ftw!) The more platforms people can get Krita on, the better. :D

I guess I should really add a license or something...


Krita - All the cool kids are painting with it!
User avatar Deevad
Registered Member
Posts
374
Karma
1
OS
Hey Kubuntiac ! This script look really cool ; and I really would like to use it. Here I have a small problem ; 2 days ago I reinstalled my system to Maverick 10.10 Linux Mint ; and I tryed to install Krita but I have a problem at this step to get the good compilation environement :

Here what I did on a fresh install :
Code: Select all
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 )

deb http://archive.ubuntu.com/ubuntu maverick-backports main universe multiverse restricted
deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu maverick main

A windows saying "The repository information has changed. You have to click on the "Reload" button for your changes to take effect".
In fact, click on the reload button.

Open a terminal and paste this :
sudo apt-get install kdelibs5-dev
( accept with Y )

sudo apt-get build-dep koffice

... and error :

[sudo] password for deevad:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to find a source package for koffice


E: Unable to find a source package for koffice? mmm... I readed all the documentation available, Googled during 2 hours, and tryed various tweaks with synaptic, but I'm still blocked, any help appreciated !


btw I collected the pages were most of user like me meet to install krita on their computer , could be good to link them to this actual thread :
http://userbase.kde.org/KOffice/Downloa ... nd_Kubuntu
http://wiki.koffice.org/index.php?title ... ng_KOffice
viewtopic.php?f=139&t=86990 >(he he, my thread, my fault , I will do it )
https://wiki.kubuntu.org/CompilingKoffice2


User avatar Deevad
Registered Member
Posts
374
Karma
1
OS
Image

I readed again this cool script ( and beautifull ! screenshot above ) trying to understand what it does, and I thought I could give it a try, unfortunately this didn't installed Krita for me.

Here what the terminal finaly said , for those who understand this :
http://www.pasteall.org/19323/bash


User avatar API-Beast
Registered Member
Posts
24
Karma
0
OS
You are missing "eigen-devel" and "exiv2-devel".


Twitter: @API_Beast
User avatar Deevad
Registered Member
Posts
374
Karma
1
OS
Thanks a lot Spell for the fast answer ; that's super.
So 2 libraries and it would compile Krita ? sounds good !
In my synaptic here I'm not sure of what to install after a search with this libraries names :
Image
May be it's something else ?


User avatar API-Beast
Registered Member
Posts
24
Karma
0
OS
Search for "eigen" and "exiv", "devel" is just how development-packages in openSUSE are named.

On Ubuntu/Debian/Mint I guess they are named
libexiv2-dev
libeigen2-dev

libexiv2-dev seems allready installed from the screenshots, maybe krita needs libkexiv2-dev? (Would make sense)


Twitter: @API_Beast
User avatar Deevad
Registered Member
Posts
374
Karma
1
OS
Thanks a lot, the new librairies makes krita compile well. :)

I'm running now into another issue after the lauching :
http://www.pasteall.org/19324/bash

I tryed to delete the old ~/.kde preference folder from my previous Lucid system ( I saved the entire 'home' folder ) but it still the same error.
Thanks if you have an idea of what to do.



 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], diddyonkde, EdoNork, Google [Bot], jcoatanea, mattp12, Yahoo [Bot]