[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Meta Object Complier error while porting
From: Thomas_Lübking <thomas.luebking () gmail ! com>
Date: 2015-01-29 18:21:13
Message-ID: CAAPqV4RDUSUotHf2OqsH2QVZYtUOGnvOpwufqRwb8CZgbngesA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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=C3=BCgler <sebas@kde.org
> <javascript:_e(%7B%7D,'cvml','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 cod=
e
>> 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 c=
an
>> > 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.
>
[Attachment #5 (text/html)]
the O[sic!]_OBJECT macro?<br><br>Am Donnerstag, 29. Januar 2015 schrieb anu mittal \
:<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 \
"kalziumglwidget.moc" [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 \
"kalziumglwidget.moc"<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"><<a \
href="javascript:_e(%7B%7D,'cvml','sebas@kde.org');" \
target="_blank">sebas@kde.org</a>></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> > I am working on the application Kalzium,the file kalziumglwidget.cpp \
under<br> > it includes the #include "kalziumglwidget.moc" at the \
end of the code and<br> > cmakefile has set(CMAKE_AUTOMOC TRUE) even after that on \
building it shows-<br> ><br>
> fatal error: kalziumglwidget.moc: No such file or directory<br>
> #include "kalziumglwidget.moc"<br>
> ^<br>
><br>
> what else do i need to take care of while working with .moc file?How can<br>
> this be resolved?<br>
<br>
</div></div>Perhaps your header (likely kalziumglwidget.h) doesn'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>
>> 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 <<<br> </div></div></blockquote></div><br><br clear="all"><br>-- \
<br><div><div dir="ltr">Regards,<div>Anu.</div></div></div> </div>
</blockquote>
>> 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