![]() Registered Member ![]()
|
Finally! After many hours over many months, the build script I wish someone had given *me* when I started with Krita! My hope is that with 3 quick cut and paste operations and waiting for a bit, that you'll have a fresh-from-the-bleeding-edge-code version of Krita and Karbon installed on your system without having to know *any* compiling-fu. I want more *artists* and *hobbyists* using Krita, in addition to the coders!
So, without further ado, I give you the long awaited Calligra Builder Script v1.1.4 (Lcms Armageddon): Features: * Auto-updates itself (never download again!) * Builds and updates the latest TRUNK (instant changes, bleeding-edge code) version of Krita and Karbon from Git * Automatically uses all CPU cores to build as fast as possible (threads can be set manually with the _threads variable at the top). * Tells you your version / commit number for when you report bugs (and you *are* going to report them, given you're running trunk... right? ;P ) * Designed for people who know nothing about compiling, should all just be copy, paste and go. * Creates menu items on Gnome and KDE. Unity seems problematic, but apps can still be run direct from the bin folder mentioned when you run the script. (I'm open to supporting XFCE with some help) * Installs dependencies on supported distros: Supported Distro's: Should compile on any distro if you install the dependencies yourself and set _autodependencies at the start of the script to false. On the following distro's the script will install them for you without changing a thing: Tested (and worked last I checked):
Not tested but I'm guessing it'll work:
Currently doesn't work:
Not tested. Probably doesn't work:
To get your preferred distro supported just let me know the equivalent command to install *all* build dependencies for a package and be prepared to try the script with a vanilla install of the distro. ![]() Known Issues: * Users of Ubuntu 12.04 with FGLRX downloaded manually and installed may have problems compiling. These can be fixed by installing FGLRX from the Ubuntu repositories. * Applications need to be run from the menu (under graphics) or by running the binary in ./calligra/calligra-inst/bin If you just type "krita" at the command line, it won't work. * By default, the only major application the script builds is Krita and Karbon. * Requires root password for installing dependencies and menu items on Gnome * Older versions of *Ubuntu do not have lcms2, which Krita requires, breaking compiling. This will be fixed in a future (the next?) version of the script, by compiling those, too. Troubleshooting:
WARNING! This is necessesary as they cause conflicts.UNINSTALLS ALL PREVIOUS VERSIONS OF KOFFICE / CALLIGRA. Run / Update: 1. In the command line, navigate to where you want Calligra installed and paste (ctrl+shift+V):
2. Run by typing the following (will take a long time, just the first time):
3. Update your install by repeating step 2 (much, much faster, especially when you update regularly). Support comments for this version begin at: This post. Please post the calligra-builder.log file along with what distro you're using (name, version and architecture eg Ubuntu 11.10, 64 bit) Please help by: Posting your art in the gallery here, when it works and when it doesn't posting the calligra-creative-builder.log file if you have a problem along with the version of the script (under the Calligra logo when you run it) and your distro version (eg OpenSuse 11.3, Fedora 14, Kubuntu 10.10 etc) and I'll add them to this post and eventually into the script itself. If you really want to say thanks, go pick yourself up a copy of the latest Krita training DVD from http://Krita.org ;P Thanks to: Boud for the updated instructions on getting the git goodness, bcooksley for last minute bugfix suggestions, my victims beta testers and all the people on #bash who answered all my questions patiently ![]()
Last edited by Kubuntiac on Thu Mar 22, 2012 4:17 am, edited 26 times in total.
|
![]() Administrator ![]()
|
I note that despite defining the tarball in the script, you never download it.
Also, all anongit's provide the tarball service now. If you find one with issues, please report it to KDE Sysadmin. Additionally, you shouldn't pull from git:// on git.kde.org, but rather from anongit.kde.org. This reduces the load on KDE's infrastructure, although you may be up to 5 minutes out of date. Sysadmin may firewall off access to git:// on git.kde.org at some point, allowing only the anongit's and other infrastructure to use it directly, which would break this script. Finally, you should set your directories to be first, before existing system-wide directories, as otherwise system wide installations will override your locally installed components.
KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
D'oh! Nice catch bcooksley!
After it taking an age to download the tar.gz the first time, I didn't feel like doing it again everytime I tested my script, so I took it out...and forgot to put it back in for the release! *facepalm* Should be fixed now! |
![]() Administrator ![]()
|
Did you see the other issues, especially those about tarball locations and git protocol access?
KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Fixed.
Um, the url it's pulling from is http://anongit1.kde.org/calligra/calligra-latest.tar.gz Isn't that at anongit as requested?
By this do you mean to set the export variables at the start? |
![]() Administrator ![]()
|
Thanks for looking into these issues.
anongit1 is one of three anongit mirrors (anongit1, anongit2, anongit3). To spread the load among the three mirrors, I recommend using the form: http://anongit.kde.org/calligra/calligra-latest.tar.gz instead. This also means that if anongit1 goes down, your script will continue to work as anongit.kde.org will always point towards systems that are operational (or at least, should be) With regards to the git:// access, I am referring to this line:
The environment variables i'm referring to are these ones:
KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Soooo....
Does that look right? This part was just adapted from boud's post on Krita.org, so I'm not familiar at all with the workings of git.kde.org... (or even git at all, really) Thanks for your help with cleaning this up! I just tinkered until I had something that worked for me™. Hoping it can become something that works for everyone! |
![]() Administrator ![]()
|
Yes, that's correct.
KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
K. Thanks bcooksley! Updated with your suggestions and edited in the first post.
|
![]() Registered Member ![]()
|
Thank you so much for making a script for us! I still didn't manage to get it working, but it's still the furthest I've managed to achieve since Krita moved to git (I could compile it before, but since it moved to git I'm at a loss).
The compilation reached 50% and then stopped with a:
It's not the only part where there were errors, there were also:
And so forth (I couldn't scroll to earlier). So, any ideas as to what could be going on? Is it just a dependency problem? |
![]() Registered Member ![]()
|
Hey Valeri!
Thanks for giving my script a try. It seems that some stuff was committed just in the last few days that is breaking compiling. Boud asked me to mention in to the folks over at #calligra on IRC, so hopefully it should be fixed soon. Just run the script occasionally and it should resolve itself. Also make sure that you're running at least version 0.8.3 of the script (just released a day or two ago) as there was a bug in 0.8.2 with setting stuff up the first time through. |
![]() Registered Member ![]()
|
It looks like whatever the problem was has been fixed. Just go in and delete everything inside the calligra/calligra-build folder, replace your build script with the new 0.8.4 version in the first post and you should be good to go.
Have fun and remember, we love seeing new entries posted in the Gallery! ![]() |
![]() Registered Member ![]()
|
That was fast! Thank you!
![]()
Log:
Is this a case of "I have to purge all traces of koffice before compiling Krita", or is it something else? Thanks! ![]() |
![]() Registered Member ![]()
|
I find that the most common fix to these kind of things is to run kbuildsycoca4 in the terminal / konsole. Version 0.8.4 of the script should be doing that for you automatically though (unless you've rebooted, in which case just run the script again). What version are you running? (you can see at the top of the script, or if you run it it says just underneath the Calligra logo.)
|
![]() Registered Member ![]()
|
Hmm, I just tried running the script again (yes, 0.8.4). Same problem. I'll try it again later in case it's some other problem. Thanks!
![]() |
Registered users: Bing [Bot], eight-bit, frdbr, Google [Bot], HobbyTuxer, Sogou [Bot], YaCy [Bot]