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

List:       kde-devel
Subject:    Re: Building kde project in QTCreator
From:       Charles Abela <charles.abela () gmail ! com>
Date:       2009-07-29 11:03:13
Message-ID: 5908cca00907290403u56a5b996veaae512c9e2e77e2 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks for the suggestion.

C

On Wed, Jul 29, 2009 at 9:29 AM, David Jarvie <djarvie@kde.org> wrote:

> On Tue, July 28, 2009 9:41 pm, Michael Leupold wrote:
> > Charles Abela wrote:
> >
> >> Hi I have found this good article : http://www.sebruiz.net/359
> >> about how to make use of QTCreator to debug KDE projects. I am of the
> >> conviction that to build a KDE project one needs to access the relevant
> >> CMakeLists.txt and then run cmake. However for some reason I am getting
> >> errors when cmake is run. I am trying to build a project for the
> >> FolderView applet. I am accessing its CMakeLists.txt from within
> >> QtCreator
> >> and calling cmake. This is the error I am getting:
> >>
> >>  CMake Error at CMakeLists.txt:10 (macro_optional_find_package):
> >>
> >> Unknown CMake command "macro_optional_find_package".
> >
> > Does plain cmake without QtCreator run fine? If that's the first error, I
> > reckon MacroOptionalFindPackage.cmake doesn't get included.
>
> Is the applet's CMakeLists.txt which you are using just copied from SVN?
> The build system in SVN is set up so that you have to run the top level
> CMakeLists.txt, which sets up various cmake variables which the lower
> level CMakeLists.txt need. So trying to run a lower level CMakeLists.txt
> by itself won't work without modifying it.
>
> --
> David Jarvie.
> KDE developer.
> KAlarm author & maintainer.
> http://www.astrojar.org.uk/kalarm
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

Thanks for the suggestion.<br><br>C<br><br><div class="gmail_quote">On Wed, Jul 29, \
2009 at 9:29 AM, David Jarvie <span dir="ltr">&lt;<a \
href="mailto:djarvie@kde.org">djarvie@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div class="im">On Tue, July 28, 2009 9:41 pm, \
Michael Leupold wrote:<br> &gt; Charles Abela wrote:<br>
&gt;<br>
&gt;&gt; Hi I have found this good article : <a href="http://www.sebruiz.net/359" \
target="_blank">http://www.sebruiz.net/359</a><br> &gt;&gt; about how to make use of \
QTCreator to debug KDE projects. I am of the<br> &gt;&gt; conviction that to build a \
KDE project one needs to access the relevant<br> &gt;&gt; CMakeLists.txt and then run \
cmake. However for some reason I am getting<br> &gt;&gt; errors when cmake is run. I \
am trying to build a project for the<br> &gt;&gt; FolderView applet. I am accessing \
its CMakeLists.txt from within<br> &gt;&gt; QtCreator<br>
&gt;&gt; and calling cmake. This is the error I am getting:<br>
&gt;&gt;<br>
&gt;&gt;  CMake Error at CMakeLists.txt:10 (macro_optional_find_package):<br>
&gt;&gt;<br>
&gt;&gt; Unknown CMake command &quot;macro_optional_find_package&quot;.<br>
&gt;<br>
&gt; Does plain cmake without QtCreator run fine? If that&#39;s the first error, \
I<br> &gt; reckon MacroOptionalFindPackage.cmake doesn&#39;t get included.<br>
<br>
</div>Is the applet&#39;s CMakeLists.txt which you are using just copied from \
SVN?<br> The build system in SVN is set up so that you have to run the top level<br>
CMakeLists.txt, which sets up various cmake variables which the lower<br>
level CMakeLists.txt need. So trying to run a lower level CMakeLists.txt<br>
by itself won&#39;t work without modifying it.<br>
<font color="#888888"><br>
--<br>
David Jarvie.<br>
KDE developer.<br>
KAlarm author &amp; maintainer.<br>
<a href="http://www.astrojar.org.uk/kalarm" \
target="_blank">http://www.astrojar.org.uk/kalarm</a><br> </font><div><div></div><div \
class="h5"><br> <br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </div></div></blockquote></div><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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