Reply to topic

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

The Big Headed One
Registered Member
Posts
3
Karma
0
OS
So, I've been using this script to compile Krita until now (btw, thank you, great script!). With the stable release of Krita 2.5, if I do an installation through the ppa:kubuntu-ppa/backports, should I delete any files from the compiled Krita before, or just install it?

If I run this script again, will it compile the stable version of Krita?

Thank you :D
User avatar boudewijn
KDE Developer
Posts
4095
Karma
18
OS
Yes, you should remove everything before installing krita from packages. If you re-run the script, you'll get again the latest unstable version right from our (the developers') hands. That's not necessarily a bad thing, since bug fixing goes on and git master has better color management and some other bug fixes -- though also possibly some regressions...
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS
Hmm. The output of "git log -n 1" should have definitely changed after the "git pull --rebase".
Can you please run the following:
Code: Select all
git branch --set-upstream master origin/master


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
valerievk
Registered Member
Posts
181
Karma
1
OS
Ah! Sorry, because the ppa for 2.5 was out, I forgot to check back here. I uninstalled 2.5 and tried to compile with your suggestion though. It actually worked, except Krita crashes upon opening with a segmentation fault:

Executable: krita PID: 4857 Signal: Segmentation fault (11)

Code: Select all
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0b613c87c0 (LWP 4857))]

Thread 8 (Thread 0x7f0b48ce9700 (LWP 4858)):
#0  0x00007f0b5943b5a3 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f0b593ff337 in g_main_context_release () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0b593fffe9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0b5940049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0b48cee98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#5  0x00007f0b594219e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f0b43fff700 (LWP 4859)):
#0  0x00007f0b60719b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f0b59400036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0b5940049a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0b4d73b406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f0b594219e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0b2a1cb700 (LWP 4862)):
#0  0x00007f0b598d0d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f0b5e3ec4db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f0b5e3e8314 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f0b380bbdfe in KisTileDataPooler::waitForWork (this=0x169ebe0) at /home/valerie/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f0b380bc4e4 in KisTileDataPooler::run (this=0x169ebe0) at /home/valerie/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f0b5e3ebfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0b299ca700 (LWP 4863)):
#0  0x00007f0b598d0d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f0b5e3ec4db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f0b5e3e8759 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f0b380d983a in KisTileDataSwapper::run (this=0x169ec18) at /home/valerie/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007f0b5e3ebfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0b1a2df700 (LWP 4869)):
#0  0x00007fffc87ff8de in ?? ()
#1  0x00007f0b57e3415d in clock_gettime () from /lib/x86_64-linux-gnu/librt.so.1
#2  0x00007f0b5e442bb4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f0b5e51ab8d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f0b5e51aec3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f0b5e51cd31 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f0b5e4e9c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f0b5e4e9ed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f0b5e3e8fa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f0b5e4c99ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f0b5e3ebfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#12 0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#13 0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0b1aae0700 (LWP 4877)):
#0  0x00007f0b598d10fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f0b5e3ec43f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f0b5e3df5bf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f0b5e3ebfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0b28b75700 (LWP 4878)):
#0  0x00007f0b598d10fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f0b5e3ec43f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f0b5e3df5bf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f0b5e3ebfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f0b53a5ab74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5  0x00007f0b598cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f0b607254bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0b613c87c0 (LWP 4857)):
[KCrash Handler]
#6  0x00007f0b3178ed03 in KoColorConversionSystem::findBestPath(KoColorConversionSystem::Node const*, KoColorConversionSystem::Node const*) const () from /usr/lib/libpigmentcms.so.10
#7  0x00007f0b31790bac in KoColorConversionSystem::createColorConverter(KoColorSpace const*, KoColorSpace const*, KoColorConversionTransformation::Intent) const () from /usr/lib/libpigmentcms.so.10
#8  0x00007f0b3178bd8c in ?? () from /usr/lib/libpigmentcms.so.10
#9  0x00007f0b31797371 in KoColorSpace::convertPixelsTo(unsigned char const*, unsigned char*, KoColorSpace const*, unsigned int, KoColorConversionTransformation::Intent) const () from /usr/lib/libpigmentcms.so.10
#10 0x00007f0b2a877f16 in ?? () from /usr/lib/kde4/kolcmsengine.so
#11 0x00007f0b56cc172b in KoColor::fromKoColor (this=0x7fffc86e6000, src=...) at /home/valerie/calligra/calligra-src/libs/pigment/KoColor.cpp:225
#12 0x00007f0b56d67d44 in colorAt (t=<optimized out>, dst=..., this=<optimized out>) at /home/valerie/calligra/calligra-src/libs/pigment/resources/KoStopGradient.cpp:158
#13 KoStopGradient::colorAt (this=0x2dfce70, dst=..., t=<optimized out>) at /home/valerie/calligra/calligra-src/libs/pigment/resources/KoStopGradient.cpp:147
#14 0x00007f0b56d640bc in KoAbstractGradient::generatePreview (this=0x2dfce70, width=<optimized out>, height=<optimized out>) at /home/valerie/calligra/calligra-src/libs/pigment/resources/KoAbstractGradient.cpp:100
#15 0x00007f0b56d6432d in KoAbstractGradient::updatePreview (this=0x2dfce70) at /home/valerie/calligra/calligra-src/libs/pigment/resources/KoAbstractGradient.cpp:142
#16 0x00007f0b56d6dc90 in KoStopGradient::setStops (this=0x2dfce70, stops=...) at /home/valerie/calligra/calligra-src/libs/pigment/resources/KoStopGradient.cpp:254
#17 0x00007f0b5d3979d3 in GradientResourceServer::insertSpecialGradients (this=0x2821410) at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:57
#18 0x00007f0b5d39453c in GradientResourceServer (extensions=..., type=..., this=0x2821410) at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:44
#19 KoResourceServerProvider::KoResourceServerProvider (this=0x2df7230) at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:186
#20 0x00007f0b5d39480e in operator-> (this=<optimized out>) at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:211
#21 operator KoResourceServerProvider* (this=<optimized out>) at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:211
#22 KoResourceServerProvider::instance () at /home/valerie/calligra/calligra-src/libs/widgets/KoResourceServerProvider.cpp:212
#23 0x00007f0b5d378b77 in KoColorSetWidget::setColorSet (this=0x2db1760, colorSet=0x2df7270) at /home/valerie/calligra/calligra-src/libs/widgets/KoColorSetWidget.cpp:238
#24 0x00007f0b5d3790b6 in KoColorSetWidget::KoColorSetWidget (this=0x2db1760, parent=<optimized out>) at /home/valerie/calligra/calligra-src/libs/widgets/KoColorSetWidget.cpp:205
#25 0x00007f0b5d3780bd in KoColorPopupAction::KoColorPopupAction (this=0x2def250, parent=<optimized out>) at /home/valerie/calligra/calligra-src/libs/widgets/KoColorPopupAction.cpp:79
#26 0x00007f0b12cd4aba in DigitalMixerDock::DigitalMixerDock (this=0x2dbbe90) at /home/valerie/calligra/calligra-src/krita/plugins/extensions/dockers/digitalmixer/digitalmixer_dock.cc:79
#27 0x00007f0b12cd393e in DigitalMixerDockFactory::createDockWidget (this=0x27680a0) at /home/valerie/calligra/calligra-src/krita/plugins/extensions/dockers/digitalmixer/digitalmixer.cc:63
#28 0x00007f0b6010905a in KoMainWindow::createDockWidget (this=0x27bde10, factory=0x27680a0) at /home/valerie/calligra/calligra-src/libs/main/KoMainWindow.cpp:1858
#29 0x00007f0b601305eb in KoView::KoView (this=0x2d8bb70, __vtt_parm=0x7f0b389d03a8, part=<optimized out>, document=<optimized out>, parent=<optimized out>, __in_chrg=<optimized out>) at /home/valerie/calligra/calligra-src/libs/main/KoView.cpp:199
#30 0x00007f0b3867a735 in KisView2::KisView2 (this=0x2d8bb70, part=0x24e3910, doc=0x278f100, parent=0x27bde10, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/valerie/calligra/calligra-src/krita/ui/kis_view2.cpp:225
#31 0x00007f0b38603d8a in KisPart2::createViewInstance (this=0x24e3910, parent=0x27bde10) at /home/valerie/calligra/calligra-src/krita/ui/kis_part2.cpp:66
#32 0x00007f0b60175cfa in KoPart::createView (this=0x24e3910, parent=<optimized out>) at /home/valerie/calligra/calligra-src/libs/main/KoPart.cpp:201
#33 0x00007f0b60109f1b in KoMainWindow::setRootDocument (this=0x27bde10, doc=0x278f100, rootPart=0x24e3910) at /home/valerie/calligra/calligra-src/libs/main/KoMainWindow.cpp:466
#34 0x00007f0b60176c6a in KoPart::deleteOpenPane (this=0x24e3910, closing=<optimized out>) at /home/valerie/calligra/calligra-src/libs/main/KoPart.cpp:437
#35 0x00007f0b5e4ff281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#36 0x00007f0b386fb1cd in KisCustomImageWidget::createImage (this=0x29f5190) at /home/valerie/calligra/calligra-src/krita/ui/widgets/kis_custom_image_widget.cc:235
#37 0x00007f0b5e4ff281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#38 0x00007f0b5f574c72 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#39 0x00007f0b5f2b2a4e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007f0b5f2b3d8b in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007f0b5f2b3ffc in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007f0b5ef35144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#43 0x00007f0b5eee4894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#44 0x00007f0b5eeea0bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#45 0x00007f0b600c9dae in KoApplication::notify (this=<optimized out>, receiver=0x2ba1460, event=0x7fffc86e8220) at /home/valerie/calligra/calligra-src/libs/main/KoApplication.cpp:504
#46 0x00007f0b5e4eae9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007f0b5eee5862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#48 0x00007f0b5ef64bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#49 0x00007f0b5ef63bae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#50 0x00007f0b5ef8db3a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#51 0x00007f0b5e4e9c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#52 0x00007f0b5e4e9ed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#53 0x00007f0b5e4eef67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#54 0x00007f0b60bd4b9d in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/valerie/calligra/calligra-src/krita/main.cc:71
#55 0x00007f0b6065476d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#56 0x0000000000400651 in _start ()


The ppa version was working fine though, so I'll just use that one. Thank you all very much! :)
User avatar boudewijn
KDE Developer
Posts
4095
Karma
18
OS
I think you just uninstalled krita, but not the calligra libraries, and now your home-grown krita is getting confused.
valerievk
Registered Member
Posts
181
Karma
1
OS
That could have been it. So I should have done a sudo apt-get remove --purge krita first? I'll try next time. :)
leovilok
Registered Member
Posts
3
Karma
0
OS
Will there be a version to compile krita sketch ?
User avatar boudewijn
KDE Developer
Posts
4095
Karma
18
OS
I doubt that -- at least not until sketch is merged into master. But you could probably hack the script yourself -- after the git clone command add something like "git checkout origin/krita-sketch-rempt -b krita-sketch-rempt, and sketch should be built.
The Big Headed One
Registered Member
Posts
3
Karma
0
OS
boudewijn wrote:Yes, you should remove everything before installing krita from packages. If you re-run the script, you'll get again the latest unstable version right from our (the developers') hands. That's not necessarily a bad thing, since bug fixing goes on and git master has better color management and some other bug fixes -- though also possibly some regressions...


I know this is a quite an old post, but now my comilation always stops with some errors and I just want a stable version for the time being (at least until I change my distro). What folders should I delete before installing the 2.6 version through the PPA?

Thank you.
User avatar Deevad
Registered Member
Posts
393
Karma
1
OS
The Big Headed One wrote:I know this is a quite an old post, but now my comilation always stops with some errors and I just want a stable version for the time being (at least until I change my distro). What folders should I delete before installing the 2.6 version through the PPA?
Thank you.


Krita has a dependency to VC now, and the script on this forum thread doesn't auto-build it.
I don't remember how to clean via this script. Probably a 'calligra' folder with calligra-src / calligra-inst and calligra-build have to be manually removed. Also, in a hidden file as ~/.profile ; there is certainly KDE paths to remove ( but I guess it's not a big deal if the path target is empty ).

I also made a set of script for building VC/Krita ( and also Mypaint ). http://www.davidrevoy.com/article155/li ... r-painters
I had feedback it works on other 'buntu based distro. I hope it will help


Ryan
Registered Member
Posts
41
Karma
0
OS
I use Archlinux.

I've installed the latest Krita. I didn't use scripts posted here but I did it the same way. The environment variables part was a problem. In Archlinux it seems you must create a script in /etc/profile.d/ to deal with that part.

I'm not sure if that is of any use here but it's the way I got it to work on Arch.

 
Reply to topic

Bookmarks



Who is online

Registered users: 52ROSt, afonsop, Baidu [Spider], Bing [Bot], charlesmoore, Corn Flake, Exabot [Bot], Google [Bot], kde-pedro, Sogou [Bot], TheraHedwig, zupa