Reply to topic

Compile Krita/trunk (Ubuntu / Debian /OpenSuse / ArchLinux)

User avatar boudewijn
KDE Developer
Posts
4889
Karma
20
OS
Yes, you need to remove not just krita, but everything that smells of KOffice.
valerievk
Registered Member
Posts
181
Karma
1
OS
Hello! I have:
1. Followed the instructions at first
2. Noticed that "krita" still didn't start krita/trunk
3. Saw that I had to purge Krita and Koffice
4. sudo apt-get purge Krita && sudo apt-get purge Koffice
5. Compilation seemed to have gone fine
6. Krita trunk started up fine
7. As soon as I select a template (any template, I tried several), Krita crashes

Debug log (I didn't submit the bug report yet since it's trunk, but should I submit it?) gave the following:

Code: Select all
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7773970 (LWP 24689))]

Thread 3 (Thread 0xb602ab70 (LWP 24693)):
#0  0x00e3d422 in __kernel_vsyscall ()
#1  0x00c8c015 in [email protected]@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x002ee287 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x002e9ded in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#4  0x0055ca33 in KisTileDataPooler::waitForWork (this=0x8857158) at /home/valerie/koffice/koffice-src/krita/image/tiles3/kis_tile_data_pooler.cc:127
#5  0x0055cc93 in KisTileDataPooler::run (this=0x8857158) at /home/valerie/koffice/koffice-src/krita/image/tiles3/kis_tile_data_pooler.cc:156
#6  0x002ed32e in ?? () from /usr/lib/libQtCore.so.4
#7  0x00c8796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x02650a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb52ffb70 (LWP 24694)):
#0  0x00e3d422 in __kernel_vsyscall ()
#1  0x00c8c015 in [email protected]@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x002ee287 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x002e9c65 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#4  0x00577ca0 in KisTileDataSwapper::waitForWork (this=0x8857174) at /home/valerie/koffice/koffice-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:84
#5  0x00577ce4 in KisTileDataSwapper::run (this=0x8857174) at /home/valerie/koffice/koffice-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#6  0x002ed32e in ?? () from /usr/lib/libQtCore.so.4
#7  0x00c8796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x02650a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7773970 (LWP 24689)):
[KCrash Handler]
#6  0x01aa972a in QCursor::QCursor(QCursor const&) () from /usr/lib/libQtGui.so.4
#7  0x01aefff9 in QWidget::setCursor(QCursor const&) () from /usr/lib/libQtGui.so.4
#8  0x008120dc in KisCanvas2::setCursor (this=0x8b47a20, cursor=...) at /home/valerie/koffice/koffice-src/krita/ui/canvas/kis_canvas2.cpp:606
#9  0x0316cdb5 in ?? () from /usr/lib/kde4/defaulttools.so
#10 0x031723bb in ?? () from /usr/lib/kde4/defaulttools.so
#11 0x03175fb4 in ?? () from /usr/lib/kde4/defaulttools.so
#12 0x03dd325a in ToolHelper::createTool (this=0x8b71b10, canvas=0x8b47a28) at /home/valerie/koffice/koffice-src/libs/flake/KoToolManager_p.cpp:70
#13 0x03dd60d3 in KoToolManager::Private::createCanvasData (this=0x88b8ba0, controller=0x8b29764, device=...) at /home/valerie/koffice/koffice-src/libs/flake/KoToolManager.cpp:127
#14 0x03dd960b in KoToolManager::Private::attachCanvas (this=0x88b8ba0, controller=0x8b29764) at /home/valerie/koffice/koffice-src/libs/flake/KoToolManager.cpp:450
#15 0x03dd9cc5 in KoToolManager::addController (this=0x88bcc78, controller=0x8b29764) at /home/valerie/koffice/koffice-src/libs/flake/KoToolManager.cpp:810
#16 0x0091737a in KisView2 (this=0xb3ea0de0, doc=0x821b1b8, parent=0xb558b328, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>)
    at /home/valerie/koffice/koffice-src/krita/ui/kis_view2.cpp:225
#17 0x0089b54b in KisDoc2::createViewInstance (this=0x821b1b8, parent=0xb558b328) at /home/valerie/koffice/koffice-src/krita/ui/kis_doc2.cc:416
#18 0x00166591 in KoDocument::createView (this=0x821b1b8, parent=0xb558b328) at /home/valerie/koffice/koffice-src/libs/main/KoDocument.cpp:368
#19 0x001959e9 in KoMainWindow::setRootDocument (this=0x869ae50, doc=0x821b1b8) at /home/valerie/koffice/koffice-src/libs/main/KoMainWindow.cpp:463
#20 0x00168a8b in KoDocument::deleteOpenPane (this=0x821b1b8) at /home/valerie/koffice/koffice-src/libs/main/KoDocument.cpp:2401
#21 0x0016f1bb in KoDocument::openTemplate (this=0x821b1b8, url=...) at /home/valerie/koffice/koffice-src/libs/main/KoDocument.cpp:2341
#22 0x0089a2ec in KisDoc2::openTemplate (this=0x821b1b8, url=...) at /home/valerie/koffice/koffice-src/krita/ui/kis_doc2.cc:187
#23 0x0089b330 in KisDoc2::qt_metacall (this=0x821b1b8, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbf813fb8) at /home/valerie/koffice/koffice-build/krita/ui/kis_doc2.moc:88
#24 0x003f4c9a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#25 0x004033d5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#26 0x001e07e3 in KoOpenPane::openTemplate (this=0xb55cc680, _t1=...) at /home/valerie/koffice/koffice-build/libs/main/KoOpenPane.moc:111
#27 0x001e0f9d in KoOpenPane::qt_metacall (this=0xb55cc680, _c=QMetaObject::InvokeMetaMethod, _id=28, _a=0xbf8140e8) at /home/valerie/koffice/koffice-build/libs/main/KoOpenPane.moc:87
#28 0x003f4c9a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#29 0x004033d5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#30 0x001de4d3 in KoDetailsPane::openUrl (this=0xb53d04b8, _t1=...) at /home/valerie/koffice/koffice-build/libs/main/KoDetailsPane.moc:105
#31 0x001ee7e3 in KoTemplatesPane::openFile (this=0xb53d04b8, index=...) at /home/valerie/koffice/koffice-src/libs/main/KoTemplatesPane.cpp:138
#32 0x001de7b0 in KoDetailsPane::qt_metacall (this=0xb53d04b8, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0xbf8142e8) at /home/valerie/koffice/koffice-build/libs/main/KoDetailsPane.moc:92
#33 0x001eea4a in KoTemplatesPane::qt_metacall (this=0xb53d04b8, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0xbf8142e8) at /home/valerie/koffice/koffice-build/libs/main/KoTemplatesPane.moc:79
#34 0x003f4c9a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#35 0x004033d5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#36 0x0202b003 in QAbstractItemView::doubleClicked(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#37 0x02082fb7 in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#38 0x01af067e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#39 0x01eecfd3 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#40 0x01f87382 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#41 0x0203bbd7 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#42 0x0207cf7c in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#43 0x01f89c65 in ?? () from /usr/lib/libQtGui.so.4
#44 0x003eecda in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#45 0x01a924b9 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#46 0x01a999f7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#47 0x063cef2a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#48 0x003efa3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#49 0x01a98952 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#50 0x01b24088 in ?? () from /usr/lib/libQtGui.so.4
#51 0x01b23511 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#52 0x01b53099 in ?? () from /usr/lib/libQtGui.so.4
#53 0x003ee059 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#54 0x003ee4aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#55 0x003f269f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#56 0x01a92577 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#57 0x002843fd in kdemain (argc=1, argv=0xbf815454) at /home/valerie/koffice/koffice-src/krita/main.cc:49
#58 0x0804883b in main (argc=1, argv=0xbf815454) at /home/valerie/koffice/koffice-build/krita/krita_dummy.cpp:3


Incidentally, the last log from the command line before the crash was:

Code: Select all
krita(24707) KoDocumentInfo::aboutInfo: "comment page not found in documentInfo !"
krita(24707) KisPainterlyMixer::initSpots:
KisColSelNgPatches::setColors() -> size: 0
krita(24707)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions!
X Error: BadAtom (invalid Atom parameter) 5
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x0
krita(24707)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/spacenavigator.so" does not offer a qt_plugin_instance function.
krita(24707) SpaceNavigatorDevice::start: starting spacenavigator device...
connect failed: No such file or directory
KCrash: Application 'krita' crashing...
sock_file=/home/valerie/.kde/socket-kitchen/kdeinit4__0
[1]   Exit 253                krita


Any ideas? Thanks! :)
User avatar boudewijn
KDE Developer
Posts
4889
Karma
20
OS
I'm afraid your compiled Krita is still finding KOffice stuff in /usr

/usr/lib/kde4/defaulttools.so

Or did you install your compiled Krita to /usr ?
valerievk
Registered Member
Posts
181
Karma
1
OS
I guess I'm not sure if I compiled Krita to /usr, I followed the instructions in this thread.

So, do I remove /usr/lib/kde4/defaulttools.so manually, or is there something else I need to do?

Thank you very much! :D

Edit: do I also remove /usr/lib/kde4/spacenavigator.so ?

I'm using Gnome with Ubuntu by the way, so I don't strictly need more kde4 files.

Edit 2: I've tried moving /usr/lib/kde4, but now compiling won't work:

Code: Select all
CMake Error at libs/kotext/cmake_install.cmake:111 (FILE):
  file INSTALL cannot find
  "/home/valerie/koffice/koffice-src/libs/kotext/styles/KoTableColumnFormat.h".
Call Stack (most recent call first):
  libs/cmake_install.cmake:40 (INCLUDE)
  cmake_install.cmake:46 (INCLUDE)

Did I forget to download something?

I tried re-tracing the instructions, but the only step I seem to have missed is checking "Backported packages ( backport)" in ->Settings->Repositories in Synaptic package manager (the line wasn't there).
enkithan
Registered Member
Posts
18
Karma
0
OS
The koffice-libs package is probably still installed. Romoving it should remove all the conflicting files (the list of files contained by koffice-libs are there http://packages.ubuntu.com/lucid/i386/k ... s/filelist).
valerievk
Registered Member
Posts
181
Karma
1
OS
Thank you very much! It seems to work now.

The new brushes are amazing! I'll be sure to test them out! :D
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
boudewijn wrote:Yes, you need to remove not just krita, but everything that smells of KOffice.


*sniffs armpits...* Nope. *phew!*

*enters sudo apt-get purge koffice-data koffice*

That did the trick (well, with a kbuildsycoca4 it did). Thanks everyone! Looking forward to playing with all the new Krita hotness you've all been adding! :)


Krita - All the cool kids are painting with it!
User avatar Deevad
Registered Member
Posts
438
Karma
1
OS
I updated the first post for the clean step by step for a Ubuntu Lucid Lynx compilation of last Krita.


User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
Hmmm... looks like this runs into a problem on Kubuntu Lucid if the PPA with KDE 4.5 is being used. Specifically it runs into:

Code: Select all
The following packages have unmet dependencies:
  libkdcraw8-dev: Depends: libkdcraw8 (= 4:4.4.2-0ubuntu1.1) but 4:4.5.1-0ubuntu1~lucid1~ppa1 is to be installed
E: Broken packages


Trying to install the earlier, needed version of libkdcraw8 fails as the package manager detects there is a newer version (with 4.5.1) available and so skips downloading the one you need. The only way around this I can see is to manually download the 4.4.2 version and pin it... which seems like a lot of effort right now to figure out. :-\


Krita - All the cool kids are painting with it!
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
I found a solution to the problem in the post above:

Replace this:

Code: Select all
sudo apt-get build-dep koffice


With this:
Code: Select all
sudo apt-get install cmake subversion zlib1g-dev libpng12-dev libeigen2-dev libqimageblitz-dev libexiv2-dev liblcms1-dev build-essential


The script also seems to be missing the command to create koffice-src which I did manually.

Maybe the first post could be updated with these two things, as I suspect a very large number of people running Kubuntu will also be running the PPA that caused the problem for me.

Cheers!


Krita - All the cool kids are painting with it!
User avatar robyshot
Registered Member
Posts
6
Karma
0
OS
Kubuntiac wrote:I found a solution to the problem in the post above

i have exactly this problem and thanks to you o) konsole is now compiling krita and karbon,but what about the other koffice programs?

i'm running lucid lynx with kde 4.5.1
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
Simple, just open the build script (koinstall.sh) in kate and edit the line that says:

Code: Select all
cmake ../$_svnmod-src -DBUILD_krita=on -DBUILD_karbon=on -DBUILD_kword=off -DBUILD_kpresenter=off -DBUILD_kspread=off -DBUILD_kchart=off -DBUILD_kexi=off -DBUILD_kplato=off -DBUILD_kivio=off -DBUILD_kformula=off -DBUILD_f-office=off -DCMAKE_INSTALL_PREFIX=../$_svnmod-inst -DCMAKE_BUILD_TYPE=RELWITHDEBINFO


For example, if you want to also build kword, change _kword=off to _kword=on

Then just run the script again, and wait. :)

Depending on what you choose to compile, you may need some other dependencies installed on your machine. If you get any errors, post here or on IRC and someone will be able to help.


Krita - All the cool kids are painting with it!
User avatar robyshot
Registered Member
Posts
6
Karma
0
OS
Kubuntiac wrote:Simple, just open the build script (koinstall.sh) in kate and edit the line that says:



For example, if you want to also build kword, change _kword=off to _kword=on

Then just run the script again, and wait. :)

Depending on what you choose to compile, you may need some other dependencies installed on your machine. If you get any errors, post here or on IRC and someone will be able to help.


oh is it so simple? great, i tought it was en error caused by the fact that sudo apt-get build-dep koffice command couln't be executed (for the dependency problem)

thank for your help and also to the author of the thread
User avatar Kubuntiac
Registered Member
Posts
786
Karma
2
OS
robyshot wrote:oh is it so simple? great, i tought it was en error caused by the fact that sudo apt-get build-dep koffice command couln't be executed (for the dependency problem)


Editing that one line is just to enable building other Koffice apps (eg Kword, Kspread). To get around apt-get build-dep koffice breaking, you still need to use the line that installs a bunch of packages just above.


Krita - All the cool kids are painting with it!
User avatar robyshot
Registered Member
Posts
6
Karma
0
OS
got en error after kbuildsycoca4 command, that's the output:

Code: Select all
kbuildsycoca4 running...
kbuildsycoca4(2260)/kdecore (services) KServicePrivate::init: The desktop entry file  "mount-iso/src/mountiso4-ccd.desktop"  has Type= "Application"  but no Exec line

kbuildsycoca4(2260) KBuildServiceFactory::createEntry: Invalid Service :  "mount-iso/src/mountiso4-ccd.desktop"
kbuildsycoca4(2260)/kdecore (services) KServicePrivate::init: The desktop entry file  "mountiso4-ccd.desktop"  has Type= "Application"  but no Exec line

kbuildsycoca4(2260) KBuildServiceFactory::createEntry: Invalid Service :  "mountiso4-ccd.desktop"

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], bobbywibowo, claydoh, farid, Google [Bot], mcarpino, nockvolley, Sogou [Bot], The Tahaan, weka, Yahoo [Bot]