Reply to topic

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

User avatar SLegrand
Registered Member
Posts
2
Karma
0
Hi guys. I was trying to use the script to compile Krita on Kubuntu-12.04-Precise.

There was a couple of things I had to change in the script, here's the diff:

Code: Select all
84c84
<             echo "Using Ubuntu settings." && sudo apt-get purge krita* koffice* karbon* && sudo apt-get install cl-fftw3 liblcms2 liblcms2-dev liblcms2-util git cmake xserver-xorg-input-wacom oxygen-icon-theme kde-runtime wget && sudo apt-get build-dep krita
---
>             echo "Using Ubuntu settings." && sudo apt-get purge krita* koffice* karbon* && sudo apt-get install cl-fftw3 liblcms2-2 liblcms2-dev liblcms2-utils git cmake xserver-xorg-input-wacom oxygen-icon-theme kde-runtime wget && sudo apt-get build-dep krita


Changed to liblcms2-util and liblcms2 to liblcms2-2 as that is what seemed to be in the repos.

Also I am still getting errors and cannot get a successful compile. I get:
Code: Select all
-- ---------------- The following applications will be built ----------------
-- krita
-- karbon
-- --------------------------------------------------------------------------
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FREETYPE_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /usr/local/Krita-test-builds/calligra/calligra-src/libs/kotext
   used as include directory in directory /usr/local/Krita-test-builds/calligra/calligra-src/libs/kotext/tests
   used as include directory in directory /usr/local/Krita-test-builds/calligra/calligra-src/libs/kotext/styles/tests
   used as include directory in directory /usr/local/Krita-test-builds/calligra/calligra-src/libs/kotext/opendocument/tests

-- Configuring incomplete, errors occurred!
Oh noes! I've hit a bash error number 1. Please look just above this text and see if you can see anything that looks like it may be an error message. You can then tell us about it at http://forum.kde.org/krita or on IRC at #krita.


Any ideas?
User avatar boudewijn
KDE Developer
Posts
4880
Karma
20
OS
I'll put a fresh kubuntu on a vm and check -- I tried with an earlier kubuntu 12.04 vm and didn't get the problem, but that might be because I had run the script before.
User avatar boudewijn
KDE Developer
Posts
4880
Karma
20
OS
I had to manually install cmake, git, liblcms2-dev and a bunch of other things, so I wimped out and used the fact that calligra exists on 12.04, and did sudo apt-get build-dep calligra, then ran the script again. That worked for me.
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
It looks like you are missing the Freetype development packages. On openSUSE this would be freetype2-devel.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
User avatar SLegrand
Registered Member
Posts
2
Karma
0
bcooksley wrote: It looks like you are missing the Freetype development packages. On openSUSE this would be freetype2-devel.
boudewijn wrote:I had to manually install cmake, git, liblcms2-dev and a bunch of other things, so I wimped out and used the fact that calligra exists on 12.04, and did sudo apt-get build-dep calligra, then ran the script again. That worked for me.


Hmmmyeah. freetype2-devel doesn't seem to be an available package for me even though it's listed on launchpad as an existing package. libfreetype6-devel exists though. I installed had installed that already but I was getting the same error still.
This is an upgraded system from 11.10, and I did have some issues during upgrade. Maybe something's broken on my system. I'll try on my laptop which has a clean install and report back.
User avatar boudewijn
KDE Developer
Posts
4880
Karma
20
OS
Ah... I only tried on a freshly installed vm.
fyfed
Registered Member
Posts
1
Karma
0
I'm on Kubuntu 12.04 and I managed to run the script and succesfully used latest Krita. However I cannot seem to successfully run the script again to update to latest build. The script seems to stop very soon without creating any calligra/calligra-build folder. I previously had similar problems and counldn't compile because I had installed FGLRX driver (I have an ATI Radeon 5770). Then, after reinstalling Kubuntu 12.04, and using the basic open source drivers, the script ran and worked perfectly (I suppose this was the problem as I didn't do any other particularly strange things on the previous installation). After this I installed FGLRX drivers from repository. Now after I realized the script isn't working anymore, I tried uninstalling the proprietary drivers, but this didn't solve the problem.

What I get when I run the script is this:

Code: Select all
rm: cannot remove `compiler.sh.tar.gz*': No such file or directory
--2012-07-03 20:06:59--  http://krita.org/builder/compiler.sh.tar.gz
Resolving krita.org (krita.org)... 173.236.131.182
Connecting to krita.org (krita.org)|173.236.131.182|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.krita.org/builder/compiler.sh.tar.gz [following]
--2012-07-03 20:07:00--  http://www.krita.org/builder/compiler.sh.tar.gz
Resolving www.krita.org (www.krita.org)... 173.236.131.182
Reusing existing connection to krita.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 4485 (4.4K) [application/x-tar]
Saving to: `compiler.sh.tar.gz'

100%[=======================================================================================================================================================================>] 4,485       --.-K/s   in 0.004s 

2012-07-03 20:07:00 (1.15 MB/s) - `compiler.sh.tar.gz' saved [4485/4485]

compiler.sh
./compiler.sh: 25: [: 0: unexpected operator
















                                                                                                                                                                                                                 
                                                                                                                                                                                                                 
              _                                                                                                                                                                                                 
           ,d88P'              ,8     op   ,o.                                                                                                                                                                   
        ,o8P                  d8'   ,8P     Y8                                                                                                                                                                   
      ,d8P'                  d8'   ,8F        =
     d8P'           _u,     ,8'    dP    _,      ___ _   __           ._.
    88           ,o8P  P   ,8[    dP     88    d88 888  ]8L,ooo._  od8P8Y
   88          ,d8 ,,oop   d8    ,8[    d8P  ,8P _o88[  88P      d8P _ooo.
   88         d88odP Y8b  ,8[   ,8P   ,=8P  ,88o8P dP  d8F     _88boP  88
   Y8b.._._,o=PPP      P=P78boP  8bopP YP    PP^^ d8  ,8P       PP^^    YPY
     ^^^^^^^                ^^    ^^             d88
                                                d8P
                                           /   d8
                                          b _o8P
                                          ^^^

              Builder version 1.1.5







./compiler.sh: 73: [: true: unexpected operator







Jacking into the Matrix...
--2012-07-03 20:07:00--  http://krita.org/builder/calligra-creative_build-script.sh.tar.gz
Resolving krita.org (krita.org)... 173.236.131.182
Connecting to krita.org (krita.org)|173.236.131.182|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.krita.org/builder/calligra-creative_build-script.sh.tar.gz [following]
--2012-07-03 20:07:00--  http://www.krita.org/builder/calligra-creative_build-script.sh.tar.gz
Resolving www.krita.org (www.krita.org)... 173.236.131.182
Reusing existing connection to krita.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 220 [application/x-tar]
Saving to: `calligra-creative_build-script.sh.tar.gz'

100%[=======================================================================================================================================================================>] 220         --.-K/s   in 0s     

2012-07-03 20:07:01 (20.6 MB/s) - `calligra-creative_build-script.sh.tar.gz' saved [220/220]

./compiler.sh: 119: ./compiler.sh: [[: not found
calligra-creative_build-script.sh
Red pill taken...







./compiler.sh: 134: ./compiler.sh: [[: not found
./compiler.sh: 137: cd: can't cd to ./calligra/calligra-src
./compiler.sh: 146: ./compiler.sh: [[: not found
Setting up environment
./compiler.sh: 153: ./compiler.sh: [[: not found
./compiler.sh: 156: cd: can't cd to /home/federico/sources/krita/calligra/calligra-src
./compiler.sh: 159: ./compiler.sh: [[: not found





Now witness the magic of open source cranked up to 0 as you build your very own copy of Calligra...
fatal: Not a git repository (or any of the parent directories): .git
./compiler.sh: 170: cd: can't cd to ../calligra-build
./compiler.sh: 172: ./compiler.sh: [[: not found
CMake Error: The source directory "/home/federico/sources/krita/calligra/calligra-src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
./compiler.sh: 179: ./compiler.sh: [[: not found
Quick! To the Batmobile!
make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu
Report bugs to <[email protected]>
./compiler.sh: 185: ./compiler.sh: [[: not found
Atomic batteries to power...
make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu
Report bugs to <[email protected]>
Turbines to speed...



set-calligra-paths.sh exists already. Skipping creating it.
setting environment variables for current session.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-federico9ebmxI" is owned by uid 1000 instead of uid 0.
realPath called with a relative path ':/home/federico/sources/krita/calligra/calligra-inst/share/mime/', please fix
realPath called with a relative path ':/home/federico/sources/krita/calligra/calligra-inst/share/applications/', please fix
realPath called with a relative path ':/home/federico/sources/krita/calligra/calligra-inst/share/desktop-directories/', please fix
kbuildsycoca4(10037) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde4/bluedevil-network-dun.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(10037) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde4/bluedevil-network-panu.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(10037) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/im-switch.desktop" is not compliant with XDG standard (missing trailing semicolon).











Enter your admin password if you would like menu items for your apps to be created
(or you can just click Ctrl+C when asked for your password from now on if you wish to skip menu entries.)
Set those paths, Jeeves!
What ho!
Let's go!!!!
























You have succesessfully built (either now or in the past) the following apps:
calligraconverter
karbon
krita

Version:

(Format is: Version number - revisions since the version number - git hash)
You can update these apps to the latest (unstable) code any time by just running this script again.

Krita and karbon need to be run from the menu (under Graphics) or directly from the /calligra/calligra-inst/bin folder.
Wed love to see what you create over at the Krita forums! ( http://forum.kde.org/krita )
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Instead of running ./compiler.sh, could you try "bash compiler.sh"?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
valerievk
Registered Member
Posts
181
Karma
1
OS
So I was happily using Krita 2.4 and loving it to bits. Made a drawing here . But then I saw the news about texture brushes in Krita 2.5. I decided to wait for a proper ppa at first (project-neon totally freezes on me), then caved when I tried the windows version of 2.5.

Somewhat predictably, I hit an Error 2 though. :'( Ubuntu 12.04 x64.

This is a relatively clean system, since I did a clean-ish install of 12.04 (to switch to 64 bits) a few months ago. Then I manually installed cmake, git, liblcms2-dev, then did sudo apt-get build-dep calligra . The issues seem to be here:

Code: Select all
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp: In member function 'virtual void MapTool::activate(KoToolBase::ToolActivation, const QSet<KoShape*>&)':
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp:95:26: error: 'class Marble::MarbleControlBox' has no member named 'addMarbleWidget'
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp: In member function 'virtual QWidget* MapTool::createOptionWidget()':
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp:112:22: error: 'class Marble::MarbleControlBox' has no member named 'addMarbleWidget'
[ 43%] Building CXX object plugins/mapshape/CMakeFiles/mapshape.dir/Plugin.o
[ 43%] Building CXX object libs/kopageapp/CMakeFiles/kopageapp.dir/commands/KoPAChangePageLayoutCommand.o
make[2]: *** [plugins/mapshape/CMakeFiles/mapshape.dir/MapTool.o] Error 1
make[2]: *** Waiting for unfinished jobs....


[ 43%] Generating ui_ChartTableEditor.h
[ 43%] Generating ui_NewAxisDialog.h
[ 43%] Generating ui_AxisScalingDialog.h
Scanning dependencies of target chartshapelib
make[1]: *** [plugins/mapshape/CMakeFiles/mapshape.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Eventually it stopped at:
Code: Select all
[ 50%] Building CXX object krita/image/CMakeFiles/kritaimage.dir/recorder/kis_recorded_paint_action.o
[ 50%] Building CXX object krita/image/CMakeFiles/kritaimage.dir/recorder/kis_recorded_path_paint_action.o
[ 50%] Building CXX object krita/image/CMakeFiles/kritaimage.dir/recorder/kis_recorded_shape_paint_action.o
Linking CXX shared library ../../lib/libkritaimage.so
[ 50%] Built target kritaimage
make: *** [all] Error 2

Any clues?
User avatar boudewijn
KDE Developer
Posts
4880
Karma
20
OS
Hm, this is strange. It looks like you've got an old checkout, since the mapshape is gone. I'd say, remove the entire
calligra dir and start start the script again.
User avatar boudewijn
KDE Developer
Posts
4880
Karma
20
OS
Oh, and I saw you noted that you don't have a working tablet anymore. One of my friends told me had got a spare one to share with krita artists... Shall I ping him about it? It's a graphire, but in good working condition.
valerievk
Registered Member
Posts
181
Karma
1
OS
Strange, I'm pretty sure I did delete the whole Calligra folder just before, I do it every time because in the past, Not doing so resulted in all sorts of problems. I'll try again. Maybe my script is not up to date though? Which is the latest version of the script?

As for the tablet, mine was a cheap one to begin with, and hasn't been working that well since years ago. xD I can afford a new one, and plan to buy one eventually, but I want to force myself to finish some of my other life goals before I get something so fun and distracting. Thanks for the offer though! :)
valerievk
Registered Member
Posts
181
Karma
1
OS
Hmm... same problem. I had been using one of the intermediate versions of the script posted somewhere in this thread, so I decided to try the version on the first page again. I deleted the old script, deleted the calligra folder, then tried the script on the first page again. There's a slightly different error message now, but still the same part:

Code: Select all
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp:95:26: error: 'class Marble::MarbleControlBox' has no member named 'addMarbleWidget'
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp: In member function 'virtual QWidget* MapTool::createOptionWidget()':
/home/valerie/calligra/calligra-src/plugins/mapshape/MapTool.cpp:112:22: error: 'class Marble::MarbleControlBox' has no member named 'addMarbleWidget'
make[2]: *** [plugins/mapshape/CMakeFiles/mapshape.dir/MapTool.o] Error 1
make[1]: *** [plugins/mapshape/CMakeFiles/mapshape.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
User avatar bcooksley
Administrator
Posts
19765
Karma
87
OS
Which git branch are you building from? master?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
valerievk
Registered Member
Posts
181
Karma
1
OS
Uh... me? I don't know, I just ran the script. I'm using Ubuntu 12.04 x64. Before running the script, I installed a few dependencies and did a sudo apt-get build-dep krita .

Or are you talking about marble? I just did a sudo apt-get install marble. It's apparently version 4:4.8.4. Is it a marble version problem?

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], clavierarabes, farid, Google [Bot], Sogou [Bot], Yahoo [Bot]