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

List:       kde-devel
Subject:    Re: Cannot create .moc files
From:       "Elio Cuevas" <elcugo () gmail ! com>
Date:       2007-07-16 23:56:40
Message-ID: a29e06b20707161656i490bbf5eg1e69559c4fec397c () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi!

I had the same problem. I solved it by adding:
include_directories(${CMAKE_CURRENT_BINARY_DIR})
to CMakeList.txt. Don't forget to add #include "foo.moc" in your
foo.cpp.Youdon't need KDE4_AUTOMOC anymore.

I hope this helps.

Elio.

2007/7/16, alexandrm <alexandrm77@gmail.com>:
>
>
> Hi all!
>
> I started  learn about Qt4 and KDE4 and try to write my first app in KDE4.
> Currently I have problems with creating .moc files.  For some reason .o
> files were
> created successfully, but .moc were not created. I put kde4_automoc() in
> the
> CMakeLists.txt
> but it doesn't work also. When I try to add #include "foo.moc" in the .cpp
> files the compiler complains
> that it can't find "foo.moc" .
>
> Can you please help me with this problem?
>
> Thanks you
> --
> View this message in context:
> http://www.nabble.com/Cannot-create-.moc-files-tf4086307.html#a11614207
> Sent from the kde-devel mailing list archive at Nabble.com.
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

Hi!<br><br>I had the same problem. I solved it by adding: \
<br>include_directories(${CMAKE_CURRENT_BINARY_DIR})<br>to CMakeList.txt. Don&#39;t \
forget to add #include &quot;foo.moc&quot; in your foo.cpp.You don&#39;t need \
KDE4_AUTOMOC anymore. <br><br>I hope this helps.<br><br>Elio.<br><br><div><span \
class="gmail_quote">2007/7/16, alexandrm &lt;<a \
href="mailto:alexandrm77@gmail.com">alexandrm77@gmail.com</a>&gt;:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <br>Hi all!<br><br>I started&nbsp;&nbsp;learn about \
Qt4 and KDE4 and try to write my first app in KDE4.<br>Currently I have problems with \
creating .moc files.&nbsp;&nbsp;For some reason .o<br>files were<br>created \
successfully, but .moc were not created. I put kde4_automoc() in the \
<br>CMakeLists.txt<br>but it doesn&#39;t work also. When I try to add #include \
&quot;foo.moc&quot; in the .cpp<br>files the compiler complains<br>that it can&#39;t \
find &quot;foo.moc&quot; .<br><br>Can you please help me with this problem? \
<br><br>Thanks you<br>--<br>View this message in context: <a \
href="http://www.nabble.com/Cannot-create-.moc-files-tf4086307.html#a11614207">http://www.nabble.com/Cannot-create-.moc-files-tf4086307.html#a11614207</a><br>Sent \
from the kde-devel mailing list archive at  <a \
href="http://Nabble.com">Nabble.com</a>.<br><br><br>&gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe &lt;&lt;<br></blockquote> </div><br>



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