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

List:       kde-devel
Subject:    Re: Meta Object Complier error while porting
From:       anu mittal <anu22mittal () gmail ! com>
Date:       2015-01-29 18:39:12
Message-ID: CALdSTMtyVMHmpxWQgzpX3wFhrZCFkBxo=SR89nwV-wq2Ap17ZQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am so sorry- Q_OBJECT macro, typo :/

On Thu, Jan 29, 2015 at 11:51 PM, Thomas Lübking <thomas.luebking@gmail.com>
wrote:

> the O[sic!]_OBJECT macro?
>
> Am Donnerstag, 29. Januar 2015 schrieb anu mittal :
>
> O_OBJECT macro is there in the header file kalziumglwidget.h and before
>> removing the #include "kalziumglwidget.moc" [1] was the exact error
>>
>>  [1]Automoc for target compoundviewer
>> Generating kalziumglwidget.moc
>> /home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:0: Note: No relevant
>> classes found. No output generated.
>> [  1%] Built target compoundviewer_automoc
>> Scanning dependencies of target compoundviewer
>> [  2%] Building CXX object
>> compoundviewer/CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o
>> /home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:169:31: fatal error:
>> kalziumglwidget.moc: No such file or directory
>>  #include "kalziumglwidget.moc"
>>                                ^
>> compilation terminated.
>>
>> No output was generated!
>>
>>
>> On Thu, Jan 29, 2015 at 7:52 PM, Sebastian Kügler <sebas@kde.org> wrote:
>>
>>> On Thursday, January 29, 2015 15:07:42 anu mittal wrote:
>>> > I am working on the application Kalzium,the file kalziumglwidget.cpp
>>> under
>>> > it  includes the  #include "kalziumglwidget.moc" at the end of the
>>> code and
>>> > cmakefile has set(CMAKE_AUTOMOC TRUE) even after that on building it
>>> shows-
>>> >
>>> > fatal error: kalziumglwidget.moc: No such file or directory
>>> >  #include "kalziumglwidget.moc"
>>> >                                ^
>>> >
>>> > what else do i need to take care of while working with .moc file?How
>>> can
>>> > this be resolved?
>>>
>>> Perhaps your header (likely kalziumglwidget.h) doesn't have a Q_OBJECT
>>> macro?
>>> (This macro would trigger moc to run and create the .moc file, which
>>> includes
>>> the metaobject information you seem to be missing.)
>>>
>>> Cheers,
>>> --
>>> sebas
>>>
>>> http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
>>>
>>> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>>>
>>
>>
>>
>> --
>> Regards,
>> Anu.
>>
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
>


-- 
Regards,
Anu.

[Attachment #5 (text/html)]

<div dir="ltr">I am so sorry- Q_OBJECT macro, typo :/</div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 11:51 PM, \
Thomas Lübking <span dir="ltr">&lt;<a href="mailto:thomas.luebking@gmail.com" \
target="_blank">thomas.luebking@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">the O[sic!]_OBJECT macro?<br><br>Am Donnerstag, 29. Januar \
2015 schrieb anu mittal :<div class="HOEnZb"><div class="h5"><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>O_OBJECT macro is there in the header \
file kalziumglwidget.h and before removing the #include \
&quot;kalziumglwidget.moc&quot; [1] was the exact error<br><br>  [1]Automoc for \
target compoundviewer<br>Generating \
kalziumglwidget.moc<br>/home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:0: Note: \
No relevant classes found. No output generated.<br>[   1%] Built target \
compoundviewer_automoc<br>Scanning dependencies of target compoundviewer<br>[   2%] \
Building CXX object compoundviewer/CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o<br>/home/anu/kalzium/compoundviewer/kalziumglwidget.cpp:169:31: \
fatal error: kalziumglwidget.moc: No such file or directory<br>  #include \
&quot;kalziumglwidget.moc&quot;<br>                                                   \
^<br>compilation terminated.<br><br></div>No output was \
generated!<br><div><div><div><br></div></div></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 7:52 PM, \
Sebastian Kügler <span dir="ltr">&lt;<a>sebas@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><div>On Thursday, January 29, 2015 15:07:42 anu \
mittal wrote:<br> &gt; I am working on the application Kalzium,the file \
kalziumglwidget.cpp under<br> &gt; it   includes the   #include \
&quot;kalziumglwidget.moc&quot; at the end of the code and<br> &gt; cmakefile has \
set(CMAKE_AUTOMOC TRUE) even after that on building it shows-<br> &gt;<br>
&gt; fatal error: kalziumglwidget.moc: No such file or directory<br>
&gt;   #include &quot;kalziumglwidget.moc&quot;<br>
&gt;                                                ^<br>
&gt;<br>
&gt; what else do i need to take care of while working with .moc file?How can<br>
&gt; this be resolved?<br>
<br>
</div></div>Perhaps your header (likely kalziumglwidget.h) doesn&#39;t have a \
Q_OBJECT macro?<br> (This macro would trigger moc to run and create the .moc file, \
which includes<br> the metaobject information you seem to be missing.)<br>
<br>
Cheers,<br>
<span><font color="#888888">--<br>
sebas<br>
<br>
<a href="http://www.kde.org" target="_blank">http://www.kde.org</a> | <a \
href="http://vizZzion.org" target="_blank">http://vizZzion.org</a> | GPG Key ID: 9119 \
0EF9<br> </font></span><div><div><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><br clear="all"><br>-- \
<br><div><div dir="ltr">Regards,<div>Anu.</div></div></div> </div>
</blockquote>
</div></div><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> <br></blockquote></div><br><br clear="all"><div><br></div>-- \
<br><div class="gmail_signature"><div dir="ltr">Regards,<div>Anu.</div></div></div> \
</div>



>> 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