[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 11:22:58
Message-ID: CALdSTMuThdUDocqiCqi45Jd45V8JONUfYEQ_gPwa3=DHE3=vQQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On future removing set(CMAKE_AUTOMOC TRUE)
error shown was[1]
Is it not required for sure?

[1]http://pastebin.com/5FbgUBwA

On Thu, Jan 29, 2015 at 4:19 PM, anu mittal <anu22mittal@gmail.com> wrote:

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



-- 
Regards,
Anu.

[Attachment #5 (text/html)]

<div dir="ltr">On future removing set(CMAKE_AUTOMOC TRUE) <br>error shown \
was[1]<br>Is it not required for sure?<br><br>[1]<a \
href="http://pastebin.com/5FbgUBwA">http://pastebin.com/5FbgUBwA</a><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 4:19 PM, anu \
mittal <span dir="ltr">&lt;<a href="mailto:anu22mittal@gmail.com" \
target="_blank">anu22mittal@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>Hi,<br></div>on removing the .moc \
include i got errors <br>shown - <a href="http://pastebin.com/GLka3Jrc" \
target="_blank">http://pastebin.com/GLka3Jrc</a><br><span>CMakeFiles/compoundviewer.dir/kalziumglwidget.cpp.o: \
In function `KalziumGLWidget::KalziumGLWidget(QWidget*)&#39;</span>:<div>kalziumglwidget.cpp:<span>(</span>.text+0x35<span>)</span>: \
undefined reference to \
<span>`</span>Avogadro::GLWidget::GLWidget<span>(</span>QWidget<span>*</span><span>)</span><span>&#39;</span></div><br></div>mostly \
all says-undefined reference to <span>`</span>Avogadro::*&#39;</div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br> \
<div><div><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><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></div></div>
&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><span class="HOEnZb"><font \
color="#888888"><br><br clear="all"><br>-- <br><div><div \
dir="ltr">Regards,<div>Anu.</div></div></div> </font></span></div>
</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