[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 10:50:21
Message-ID: CALdSTMvVGj0HJK3A5QQWybUr1Pzoi=Sjghf5HFhUeEBD1oHG5A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
on removing the .moc include i got errors
shown - http://pastebin.com/GLka3Jrc
CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o: In function
`KalziumGLWidget::KalziumGLWidget(QWidget*)':
kalziumglwidget.cpp:(.text+0x35): undefined reference to `
Avogadro::GLWidget::GLWidget(QWidget*)'

mostly all says-undefined reference to `Avogadro::*'

On Thu, Jan 29, 2015 at 3:27 PM, Thomas Baumgart <thb@net-bembel.de> wrote:

> Hi,
>
> On Thursday 29 January 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?
>
> What happens if you simply remove this include statement? I think this was
> the
> solution I used a long time ago in a similar context.
>
> --
>
> Regards
>
> Thomas Baumgart
>
> GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
> -------------------------------------------------------------
> 'Debugging is twice as hard as writing the code in the first place.
> Therefore, if you write the code as cleverly as possible, you are,
> by definition, not smart enough to debug it.' - Brian W. Kernighan
> -------------------------------------------------------------
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
>


-- 
Regards,
Anu.

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Hi,<br></div>on removing the .moc include i got errors \
<br>shown - <a href="http://pastebin.com/GLka3Jrc">http://pastebin.com/GLka3Jrc</a><br><span \
class="">CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o: In function \
`KalziumGLWidget::KalziumGLWidget(QWidget*)&#39;</span>:<div \
class="">kalziumglwidget.cpp:<span class="">(</span>.text+0x35<span \
class="">)</span>: undefined reference to <span \
class="">`</span>Avogadro::GLWidget::GLWidget<span class="">(</span>QWidget<span \
class="">*</span><span class="">)</span><span \
class="">&#39;</span></div><br></div>mostly all says-undefined reference to <span \
class="">`</span>Avogadro::*&#39;</div><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, Jan 29, 2015 at 3:27 PM, Thomas Baumgart <span \
dir="ltr">&lt;<a href="mailto:thb@net-bembel.de" \
target="_blank">thb@net-bembel.de</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<br> <div><div class="h5"><br>
On Thursday 29 January 2015 15:07:42 anu mittal wrote:<br>
<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>What happens if you simply remove this include statement? I think this \
was the<br> solution I used a long time ago in a similar context.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
GPG-FP: E55E D592 F45F 116B 8429     4F99 9C59 DB40 B75D D3BA<br>
-------------------------------------------------------------<br>
&#39;Debugging is twice as hard as writing the code in the first place.<br>
Therefore, if you write the code as cleverly as possible, you are,<br>
by definition, not smart enough to debug it.&#39; - Brian W. Kernighan<br>
-------------------------------------------------------------<br>
</font></span><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"><br>-- <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