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

List:       kde-panel-devel
Subject:    Re: cmake does not work
From:       Shantanu Tushar Jha <shantanu () kde ! org>
Date:       2014-07-10 17:24:08
Message-ID: CABQ4Km82fqOuMWw4aXpTXc_mYbH1WfwgNx2mYhbojOW6gAT9fw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hmm that is very strange. Edit the file
build/libs/mediacenter/moc_mediasourcesloader.cpp and put these just after
the "!= 63" condition-

#error "VERSION IS"
#error Q_MOC_OUTPUT_REVISION

and then run make again and pastebin



On Thu, Jul 10, 2014 at 10:35 PM, Devanshu Jain <devanshu.jain919@gmail.com>
wrote:

> Here is the link to the output: http://paste.kde.org/pjyrnmzag
>
>
> On Thu, Jul 10, 2014 at 10:33 PM, Shantanu Tushar Jha <shantanu@kde.org>
> wrote:
>
>> try running this and pastebin the output -
>>
>> VERBOSE=1 make
>>
>>
>>
>> On Thu, Jul 10, 2014 at 9:57 PM, Devanshu Jain <
>> devanshu.jain919@gmail.com> wrote:
>>
>>> I started from scratch but make command is again giving the same error.
>>>
>>>
>>> On Thu, Jul 10, 2014 at 9:45 PM, Shantanu Tushar Jha <shantanu@kde.org>
>>> wrote:
>>>
>>>> Something tells me its still using Qt5 (and thats why it regards 4.8.6
>>>> as "old"), can you try removing your build dir and start from scratch?
>>>>
>>>> About Qt, do *not* use the one downloaded from the website, the one
>>>> that you install using apt-get/synaptic is the way to go.
>>>>
>>>>
>>>> On Thu, Jul 10, 2014 at 9:27 PM, Devanshu Jain <
>>>> devanshu.jain919@gmail.com> wrote:
>>>>
>>>>> Hi Shantanu,
>>>>> Sorry for misreading.
>>>>> But I downloaded Qt using synaptic. And I guess it is still causing
>>>>> troubles.
>>>>> When doing *make install*, another error is produced (
>>>>> http://paste.kde.org/prtoragcp).
>>>>> It says:
>>>>> This file was generated using the moc from 4.8.6. It cannot be used
>>>>> with the include files from this version of Qt. (The moc has changed too
>>>>> much.)
>>>>> So I guess I will download it again from the official site.
>>>>>
>>>>>
>>>>> On Thu, Jul 10, 2014 at 9:15 PM, Shantanu Tushar Jha <
>>>>> shaan7in@gmail.com> wrote:
>>>>>
>>>>>> Cool, though I had asked "how" have you installed Qt ;) Because I've
>>>>>> never encountered this error.
>>>>>>
>>>>>> Anyway, you can even add the fPIC flag like this -
>>>>>>
>>>>>> cmake .. -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=`kde4-config
>>>>>> --prefix`  -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4  -DKDE4_BUILD_TESTS=OFF
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 10, 2014 at 8:33 PM, Devanshu Jain <
>>>>>> devanshu.jain919@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Shantanu,
>>>>>>> I am using Ubuntu 14.04 and yes I have Qt installed.
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jul 10, 2014 at 8:26 PM, Shantanu Tushar Jha <
>>>>>>> shantanu@kde.org> wrote:
>>>>>>>
>>>>>>>> Hi Devanshu,
>>>>>>>>
>>>>>>>> What distro are you using? Also, how have you installed Qt?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jul 10, 2014 at 4:48 PM, Devanshu Jain <
>>>>>>>> devanshu.jain919@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Harish,
>>>>>>>>> Thanks for pastebin suggestion. I would keep it in mind next time.
>>>>>>>>> As for the typos: No I didn't make any typos. I double checked
>>>>>>>>> everything.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Jul 10, 2014 at 4:37 PM, R.Harish Navnit <
>>>>>>>>> harishnavnit@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> On Thu, Jul 10, 2014 at 12:35 PM, Devanshu Jain <
>>>>>>>>>> devanshu.jain919@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Please find the enclosed cmake output log file
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  Hi Devanshu,
>>>>>>>>>>
>>>>>>>>>> I would suggest using pastebin <http://paste.kde.org> instead of
>>>>>>>>>> attaching the output logs in your mails. I think that's a lot easier and
>>>>>>>>>> attachments in mails sent to ML's is not a good practice either.
>>>>>>>>>>
>>>>>>>>>> I don't think there's any hard and fast rule as such, but usually
>>>>>>>>>> clones of projects that you wish to build and run are placed in the home
>>>>>>>>>> dir, no ? (you may ignore this) and I hope you didn't make a typo while
>>>>>>>>>> running the command that Sinny mentioned.
>>>>>>>>>>
>>>>>>>>>> Regards.
>>>>>>>>>> R.Harish Navnit
>>>>>>>>>> The Enigma <http://harishnavnit.wordpress.com>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Plasma-devel mailing list
>>>>>>>>>> Plasma-devel@kde.org
>>>>>>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Plasma-devel mailing list
>>>>>>>>> Plasma-devel@kde.org
>>>>>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Shantanu Tushar    (UTC +0530)
>>>>>>>> http://www.shantanutushar.com
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Plasma-devel mailing list
>>>>>>>> Plasma-devel@kde.org
>>>>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Plasma-devel mailing list
>>>>>>> Plasma-devel@kde.org
>>>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Shantanu Tushar    (UTC +0530)
>>>>>> http://www.shantanutushar.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Plasma-devel mailing list
>>>>>> Plasma-devel@kde.org
>>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Plasma-devel mailing list
>>>>> Plasma-devel@kde.org
>>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Shantanu Tushar    (UTC +0530)
>>>> http://www.shantanutushar.com
>>>>
>>>> _______________________________________________
>>>> Plasma-devel mailing list
>>>> Plasma-devel@kde.org
>>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Plasma-devel mailing list
>>> Plasma-devel@kde.org
>>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>>
>>>
>>
>>
>> --
>> Shantanu Tushar    (UTC +0530)
>> http://www.shantanutushar.com
>>
>> _______________________________________________
>> Plasma-devel mailing list
>> Plasma-devel@kde.org
>> https://mail.kde.org/mailman/listinfo/plasma-devel
>>
>>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>


-- 
Shantanu Tushar    (UTC +0530)
http://www.shantanutushar.com

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hmm that is very strange. Edit the file \
build/libs/mediacenter/moc_mediasourcesloader.cpp and put these just after the \
&quot;!= 63&quot; condition-<br><br></div>#error &quot;VERSION \
IS&quot;<br><div>#error Q_MOC_OUTPUT_REVISION<br> <br></div><div>and then run make \
again and pastebin<br></div><div><br></div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 10:35 \
PM, Devanshu Jain <span dir="ltr">&lt;<a href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@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">Here is the link to the output: <a \
href="http://paste.kde.org/pjyrnmzag" \
target="_blank">http://paste.kde.org/pjyrnmzag</a><br> </div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, \
2014 at 10:33 PM, Shantanu Tushar Jha <span dir="ltr">&lt;<a \
href="mailto:shantanu@kde.org" target="_blank">shantanu@kde.org</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"><div>try running this and pastebin the output \
-<br><br></div>VERBOSE=1 make<br><br></div><div> <div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 9:57 PM, \
Devanshu Jain <span dir="ltr">&lt;<a href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@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 started from scratch but make command is \
again giving the same error.<br></div><div><div> <div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 9:45 PM, \
Shantanu Tushar Jha <span dir="ltr">&lt;<a href="mailto:shantanu@kde.org" \
target="_blank">shantanu@kde.org</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"><div>Something tells me its still using Qt5 \
(and thats why it regards 4.8.6 as &quot;old&quot;), can you try removing your build \
dir and start from scratch?<br>



</div><br>About Qt, do *not* use the one downloaded from the website, the one that \
you install using apt-get/synaptic is the way to go.<br> </div><div><div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 9:27 PM, \
Devanshu Jain <span dir="ltr">&lt;<a href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@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"><div><div><div><div><div>Hi \
Shantanu,<br></div>Sorry for misreading.<br></div>But I downloaded Qt using synaptic. \
And I guess it is still causing troubles.<br>




</div>When doing <b>make install</b>, another error is produced (<a \
href="http://paste.kde.org/prtoragcp" \
target="_blank">http://paste.kde.org/prtoragcp</a>).<br> </div>It says:<br>This file \
was generated using the moc from 4.8.6. It cannot be used with the include files from \
this version of Qt. (The moc has changed too much.)<br></div>So I guess I will \
download it again from the official site.<br>





</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul \
10, 2014 at 9:15 PM, Shantanu Tushar Jha <span dir="ltr">&lt;<a \
href="mailto:shaan7in@gmail.com" target="_blank">shaan7in@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"><div>Cool, though I had asked &quot;how&quot; \
have you installed Qt ;) Because I&#39;ve never encountered this error.<br>





<br></div>Anyway, you can even add the fPIC flag like this -<br><br>cmake .. \
-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`   \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4   -DKDE4_BUILD_TESTS=OFF<br> \
<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, \
Jul 10, 2014 at 8:33 PM, Devanshu Jain <span dir="ltr">&lt;<a \
href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@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"><div>Hi Shantanu,<br></div>I am using Ubuntu \
14.04 and yes I have Qt installed.<br></div><div> <div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 8:26 PM, \
Shantanu Tushar Jha <span dir="ltr">&lt;<a href="mailto:shantanu@kde.org" \
target="_blank">shantanu@kde.org</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">Hi Devanshu,<br><br>What distro are you using? \
Also, how have you installed Qt?<br></div><div class="gmail_extra">







<div><div><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 4:48 PM, Devanshu \
Jain <span dir="ltr">&lt;<a href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@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"><div>Hi Harish,<br>Thanks for pastebin \
suggestion. I would keep it in mind next time.<br></div>As for the typos: No I \
didn&#39;t make any typos. I double checked everything.<br>








<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Thu, Jul 10, 2014 at 4:37 PM, R.Harish \
Navnit <span dir="ltr">&lt;<a href="mailto:harishnavnit@gmail.com" \
target="_blank">harishnavnit@gmail.com</a>&gt;</span> wrote:<br> \
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div> <div dir="ltr"><div>On Thu, Jul 10, 2014 at \
12:35 PM, Devanshu Jain <span dir="ltr">&lt;<a \
href="mailto:devanshu.jain919@gmail.com" \
target="_blank">devanshu.jain919@gmail.com</a>&gt;</span> wrote:<br></div><div \
class="gmail_extra">









<div class="gmail_quote"><div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Please find the enclosed cmake \
output log file<br></div></blockquote><div><br></div>










</div><div>
Hi Devanshu, <br><br></div><div>I would suggest using <a href="http://paste.kde.org" \
target="_blank">pastebin</a> instead of attaching the output logs in your mails. I \
think that&#39;s a lot easier and attachments in mails sent to ML&#39;s is not a good \
practice either. <br>











</div><div><br>I don&#39;t think there&#39;s any hard and fast rule as such, but \
usually clones of projects that you wish to build and run are placed in the home dir, \
no ? (you may ignore this) and I hope you didn&#39;t make a typo while running the \
command that Sinny mentioned. <br>











<br></div><div>Regards.<span><font color="#888888"><br><div>R.Harish \
Navnit<br></div><a href="http://harishnavnit.wordpress.com" target="_blank">The \
Enigma</a><br></font></span></div></div></div></div> \
<br></div></div><div>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org" \
target="_blank">Plasma-devel@kde.org</a><br> <a \
href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></div></blockquote></div><br></div> \
<br>_______________________________________________<br> Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br></div></div><span><font \
color="#888888">-- <br>Shantanu Tushar      (UTC +0530)<br><a \
href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a> </font></span></div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div> \
</div></div><br>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org" \
target="_blank">Plasma-devel@kde.org</a><br> <a \
href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Shantanu Tushar      (UTC \
+0530)<br><a href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a> </div>
</div></div><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div> \
</div></div><br>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org" \
target="_blank">Plasma-devel@kde.org</a><br> <a \
href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Shantanu Tushar      (UTC \
+0530)<br><a href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a> </div>
</div></div><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div> \
</div></div><br>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org" \
target="_blank">Plasma-devel@kde.org</a><br> <a \
href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Shantanu Tushar      (UTC \
+0530)<br><a href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a> </div>
</div></div><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div> \
</div></div><br>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Shantanu Tushar      (UTC \
+0530)<br><a href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a> </div>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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