[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: unable to run the calligra source code in qt creator
From:       roger pibernat <rogerpibernat () gmail ! com>
Date:       2014-02-14 12:26:18
Message-ID: CAKWLQNub-R6dwgJ=D3o-=ne6i+AkA_VOhKN-8POdoqqPDUwttQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks Juan for this info.  I'll try it.

Although I followed the compiling guide I ended up with the app binary in
the "build" directory instead of in the "inst" directory, which is empty.
 I must've missed some step or build option


Roger

(+34) 639 81 26 71
http://www.rogerpibernat.com
http:// <http://doodledeedoo.wordpress.com/>www.wucollective.com


On Fri, Feb 14, 2014 at 1:01 PM, Juan Palacios <jpalaciosdev@gmail.com>wrote:

> I managed to setup the whole thing in order to compile, debug and launch
> krita through qtcreator in linux. I make this setup following the Calligra
> building guide. This is what i did:
>
> 1. Create kde4-dev.sh file in ~/.kde4/env/kde4-dev.sh with the following
> contents:
>
> export KDEDIRS=$HOME/kde4/inst:$KDEDIRS
> export PATH=$HOME/kde4/inst/bin:$PATH
> export LD_LIBRARY_PATH=$HOME/kde4/inst/lib:$LD_LIBRARY_PATH
>
> Restart your session. This will allow you to launch krita through desktop
> icons, among other things. Note that using this file makes the prefix
> change to kdeglobals unnecessary.
>
> 2.1 Now in qtcreator, run cmake with the following (modify as your needs):
> -DCMAKE_BUILD_TYPE=<yourbuildtype> -DPRODUCTSET=CREATIVE
> -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra
>
> 2.2 Setup the build settings of the project with the following:
> - Set the build directory to ~/kde4/build/calligra
> - Set build steps to make install -j<youroption>
> Optionally, if you want to add more kits for other compilers, like clang,
> you can choose the compiler in build environment adding the following
> variables:
> Variable     Value
> CC             clang
> CXX           clang++
>
> 2.3 Choose krita as the binary to launch on the run configuration.
>
>
> 2014-02-11 12:46 GMT+01:00 Boudewijn Rempt <boud@valdyas.org>:
>
> Oh, cool! What I do is build on the terminal -- but I do my editing in Qt
>> Creator. I'm looking forward to patches!
>>
>>
>> On Tue, 11 Feb 2014, roger pibernat wrote:
>>
>>  oh, ok.  Actually I already have a version of Krita compiled for Mac.
>>>  But wanted to try fixing some bugs I
>>> have in the GUI.
>>>
>>>
>>> Roger
>>>
>>> (+34) 639 81 26 71 http://www.rogerpibernat.com
>>> http://www.wucollective.com
>>>
>>>
>>> On Tue, Feb 11, 2014 at 12:30 PM, Boudewijn Rempt <boud@valdyas.org>
>>> wrote:
>>>       Don't build from Qt Creator. Even on OSX, once you have all the
>>> dependencies in place, following
>>>       the builld guide _exactly_ should result in a 'working' Krita.
>>>
>>>       http://www.davidrevoy.com/article/193/guide-building-
>>> krita-on-linux-for-cats.html
>>>
>>>       is a guide that's a bit easier to follow, plus, it has cats :-)
>>>
>>>       The CMAKE_INSTALL_PREFIX is where krita is installed to in the
>>> make install step.
>>>
>>>       On Tue, 11 Feb 2014, roger pibernat wrote:
>>>
>>>       Hi,
>>>       I'm trying to build it in Qt, too, but on Mac so the paths aren't
>>> the same.  What is in
>>>       the /home/user/devel/kde/ path stated in
>>> the -DCMAKE_INSTALL_PREFIX=/home/user/devel/kde/
>>>       build option?  Is it a
>>>       kde-dev util os something?  I don't know what to look for.
>>>
>>>
>>>       Roger
>>>
>>> (+34) 639 81 26 71http://www.rogerpibernat.com
>>> http://www.wucollective.com
>>>
>>>
>>> On Tue, Feb 11, 2014 at 4:56 AM, Mohit Goyal <mohit.bits2011@gmail.com>
>>> wrote:
>>>
>>>       Hi,
>>>       First try to make calligra from terminal. Since Calligra is a
>>> heavy project, its better to
>>> try it
>>>       out like that.
>>>
>>>       On Feb 11, 2014 5:44 AM, "GAURAV Agrawal" <
>>> gauravagrawal03jan@gmail.com> wrote:
>>>       Hello,
>>>
>>>
>>> I have downloaded the calligra source code by cloning the git repository.
>>> After compiling the code,for loading the source code in qt creator ,I
>>> followed the instructions
>>> given in
>>>
>>>        http://community.kde.org/Calligra/Building/Developing_
>>> With_QtCreator
>>>
>>> I have added the environment variables as given in the link.
>>> I have also added the build step as shown in the link by enabling the
>>> custom process step,giving it
>>> the
>>>                   --    command - kbuildsycoca4,
>>>                   --    specifying the working directory,
>>>                   --    leaving the command arguements portion blank.
>>>
>>> Since ,I wanted to run Krita, in the run configuration ,I have selected
>>> Krita.
>>>
>>> But still, when I run the code , I get the error message-
>>>
>>> : error: No rule to make target `/usr/lib/libkdecore.so.5.11.3', needed
>>> by
>>> `lib/libkoplugin.so.14.0.0'.  Stop.
>>>
>>> I don't know what to do to fix this. Please help me out.
>>>
>>>
>>> Thanks,
>>>
>>> Gaurav
>>>
>>>
>>>
>>> _______________________________________________
>>> Krita mailing list
>>> kimageshop@kde.org
>>> https://mail.kde.org/mailman/listinfo/kimageshop
>>>
>>>
>>> _______________________________________________
>>> Krita mailing list
>>> kimageshop@kde.org
>>> https://mail.kde.org/mailman/listinfo/kimageshop
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Krita mailing list
>>> kimageshop@kde.org
>>> https://mail.kde.org/mailman/listinfo/kimageshop
>>>
>>>
>>>
>>>
>> _______________________________________________
>> Krita mailing list
>> kimageshop@kde.org
>> https://mail.kde.org/mailman/listinfo/kimageshop
>>
>>
>
> _______________________________________________
> Krita mailing list
> kimageshop@kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks Juan for this info.  I&#39;ll try \
it.<div><br></div><div>Although I followed the compiling guide I ended up with the \
app binary in the &quot;build&quot; directory instead of in the &quot;inst&quot; \
directory, which is empty.  I must&#39;ve missed some step or build option</div> \
</div><div class="gmail_extra"><br clear="all"><div><div><br></div>Roger<br><br>(+34) \
639 81 26 71<div><a href="http://www.rogerpibernat.com" \
target="_blank">http://www.rogerpibernat.com</a><br><a \
href="http://doodledeedoo.wordpress.com/" target="_blank">http://</a><a \
href="http://www.wucollective.com" target="_blank">www.wucollective.com</a></div> \
</div> <br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 1:01 PM, Juan \
Palacios <span dir="ltr">&lt;<a href="mailto:jpalaciosdev@gmail.com" \
target="_blank">jpalaciosdev@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">I managed to setup the whole thing in order \
to compile, debug and launch krita through qtcreator in linux. I make this setup \
following the Calligra building guide. This is what i did:<br><br>1. Create \
kde4-dev.sh file in ~/.kde4/env/kde4-dev.sh with the following contents:<br>

<br>export KDEDIRS=$HOME/kde4/inst:$KDEDIRS<br>export \
PATH=$HOME/kde4/inst/bin:$PATH<br>export \
LD_LIBRARY_PATH=$HOME/kde4/inst/lib:$LD_LIBRARY_PATH<br><br>Restart your session. \
This will allow you to launch krita through desktop icons, among other things. Note \
that using this file makes the prefix change to kdeglobals unnecessary.<br>

<br>2.1 Now in qtcreator, run cmake with the following (modify as your \
needs):<br>-DCMAKE_BUILD_TYPE=&lt;yourbuildtype&gt; -DPRODUCTSET=CREATIVE \
-DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra<br><br>2.2 Setup the \
build settings of the project with the following:<br>

- Set the build directory to ~/kde4/build/calligra<br>- Set build steps to make \
install -j&lt;youroption&gt;<br>Optionally, if you want to add more kits for other \
compilers, like clang, you can choose the compiler in build environment adding the \
following variables:<br>

Variable     Value<br>CC             clang<br>CXX           clang++<br><br>2.3 Choose \
krita as the binary to launch on the run configuration.<div><div \
class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">

2014-02-11 12:46 GMT+01:00 Boudewijn Rempt <span dir="ltr">&lt;<a \
href="mailto:boud@valdyas.org" \
target="_blank">boud@valdyas.org</a>&gt;</span>:<div><div class="h5"><br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

Oh, cool! What I do is build on the terminal -- but I do my editing in Qt Creator. \
I&#39;m looking forward to patches!<div><div><br> <br>
On Tue, 11 Feb 2014, roger pibernat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> oh, ok.  Actually I already have a version of \
Krita compiled for Mac.  But wanted to try fixing some bugs I<br> have in the \
GUI.<br> <br>
<br>
Roger<br>
<br>
<a href="tel:%28%2B34%29%20639%2081%2026%2071" value="+34639812671" \
target="_blank">(+34) 639 81 26 71</a> <a href="http://www.rogerpibernat.com" \
target="_blank">http://www.rogerpibernat.com</a><br> <a \
href="http://www.wucollective.com" \
target="_blank">http://www.wucollective.com</a><br> <br>
<br>
On Tue, Feb 11, 2014 at 12:30 PM, Boudewijn Rempt &lt;<a \
                href="mailto:boud@valdyas.org" \
                target="_blank">boud@valdyas.org</a>&gt; wrote:<br>
      Don&#39;t build from Qt Creator. Even on OSX, once you have all the \
                dependencies in place, following<br>
      the builld guide _exactly_ should result in a &#39;working&#39; Krita.<br>
<br>
      <a href="http://www.davidrevoy.com/article/193/guide-building-krita-on-linux-for-cats.html" \
target="_blank">http://www.davidrevoy.com/<u></u>article/193/guide-building-<u></u>krita-on-linux-for-cats.html</a><br>
 <br>
      is a guide that&#39;s a bit easier to follow, plus, it has cats :-)<br>
<br>
      The CMAKE_INSTALL_PREFIX is where krita is installed to in the make install \
step.<br> <br>
      On Tue, 11 Feb 2014, roger pibernat wrote:<br>
<br>
      Hi,<br>
      I&#39;m trying to build it in Qt, too, but on Mac so the paths aren&#39;t the \
                same.  What is in<br>
      the /home/user/devel/kde/ path stated in the \
-DCMAKE_INSTALL_PREFIX=/<u></u>home/user/devel/kde/<br>  build option?  Is it a<br>
      kde-dev util os something?  I don&#39;t know what to look for.<br>
<br>
<br>
      Roger<br>
<br>
<a href="tel:%28%2B34%29%20639%2081%2026%2071" value="+34639812671" \
target="_blank">(+34) 639 81 26 71</a><a href="http://www.rogerpibernat.com" \
target="_blank">http://www.rogerpibernat.com</a><br> <a \
href="http://www.wucollective.com" \
target="_blank">http://www.wucollective.com</a><br> <br>
<br>
On Tue, Feb 11, 2014 at 4:56 AM, Mohit Goyal &lt;<a \
href="mailto:mohit.bits2011@gmail.com" \
target="_blank">mohit.bits2011@gmail.com</a>&gt; wrote:<br> <br>
      Hi,<br>
      First try to make calligra from terminal. Since Calligra is a heavy project, \
its better to<br> try it<br>
      out like that.<br>
<br>
      On Feb 11, 2014 5:44 AM, &quot;GAURAV Agrawal&quot; &lt;<a \
href="mailto:gauravagrawal03jan@gmail.com" \
target="_blank">gauravagrawal03jan@gmail.com</a>&gt; wrote:<br>  Hello,<br>
<br>
<br>
I have downloaded the calligra source code by cloning the git repository.<br>
After compiling the code,for loading the source code in qt creator ,I followed the \
instructions<br> given in<br>
<br>
       <a href="http://community.kde.org/Calligra/Building/Developing_With_QtCreator" \
target="_blank">http://community.kde.org/<u></u>Calligra/Building/Developing_<u></u>With_QtCreator</a><br>
 <br>
I have added the environment variables as given in the link.<br>
I have also added the build step as shown in the link by enabling the custom process \
step,giving it<br> the<br>
                  --    command - kbuildsycoca4,<br>
                  --    specifying the working directory,<br>
                  --    leaving the command arguements portion blank.<br>
<br>
Since ,I wanted to run Krita, in the run configuration ,I have selected Krita.<br>
<br>
But still, when I run the code , I get the error message-<br>
<br>
> error: No rule to make target `/usr/lib/libkdecore.so.5.11.<u></u>3&#39;, needed \
> by<br>
`lib/libkoplugin.so.14.0.0&#39;.  Stop.<br>
<br>
I don&#39;t know what to do to fix this. Please help me out.<br>
<br>
<br>
Thanks,<br>
<br>
Gaurav<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/kimageshop</a><br> <br>
<br>
______________________________<u></u>_________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/kimageshop</a><br> <br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/kimageshop</a><br> <br>
<br>
<br>
</blockquote>
</div></div><br>_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br> \
<br></blockquote></div></div></div><br></div></div></div> \
<br>_______________________________________________<br> Krita mailing list<br>
<a href="mailto:kimageshop@kde.org">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" \
target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic