[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Need help compiling Solid tutorial from kdeexample
From: Anant Kamath <kamathanant () gmail ! com>
Date: 2012-02-25 18:35:32
Message-ID: CAH0miJDY5h9edT+mAyvuNPHG0hhZWRVdtePGRghYoBbYLj1SsA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I fixed it, thanks to annma's help on irc.
I modified the cmakefiles and added appropriate flags (include
(KDE4Defaults)
include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} ) by having a look at
the cmakefiles generated by the default KAppTemplate KDE project, as
suggested by annma.
Will try to better aquaint myself with cmake now ..
On 25 February 2012 23:03, Anant Kamath <kamathanant@gmail.com> wrote:
> Hi,
>
> I'm using Kubuntu 11.10 with KDE 4.8. I've got the libqt4-devel,
> kdelibs5-devel, kdesdk packages installed. I'm new to KDE development in
> c++ (I've done stuff in pykde)
> I'm trying to compile the Tutorial 1 for Solid from kdeexamples (code
> pasted here : http://paste.kde.org/429152/ (tutorial1.cpp) and
> http://paste.kde.org/429158/ (CMakeFiles.txt) )
>
> While running cmake in the tutorial1 folder I get this error :
>
> CMake Error at CMakeLists.txt:6 (kde4_add_executable):
> Unknown CMake command "kde4_add_executable".
>
> If I replace kde4_add_executable with add_executable then cmake works..
>
> On running make, I now get this error:
>
> [100%] Building CXX object CMakeFiles/tutorial1.dir/tutorial1.o
> /home/anant/kdeexamples/solid/tutorial1/tutorial1.cpp:21:28: fatal error:
> QCoreApplication: No such file or directory
>
>
> Other basic Qt c++ programs work well .. I've also tried
> http://techbase.kde.org/Development/Tutorials/First_program which works
>
> Any ideas on what I may may be missing?
>
> Thanks,
> Anant Kamath
>
>
[Attachment #5 (text/html)]
I fixed it, thanks to annma's help on irc. <br><br>I modified the cmakefiles and \
added appropriate flags (include (KDE4Defaults)<br>include_directories( \
${KDE4_INCLUDES} ${QT_INCLUDES} ) by having a look at the cmakefiles generated by \
the default KAppTemplate KDE project, as suggested by annma.<br> <br>Will try to \
better aquaint myself with cmake now ..<br><br><br><br><br><br><br><div \
class="gmail_quote">On 25 February 2012 23:03, Anant Kamath <span dir="ltr"><<a \
href="mailto:kamathanant@gmail.com">kamathanant@gmail.com</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<br><br>I'm using Kubuntu 11.10 with KDE 4.8. I've \
got the libqt4-devel, kdelibs5-devel, kdesdk packages installed. I'm new to KDE \
development in c++ (I've done stuff in pykde) <br> I'm trying to compile the \
Tutorial 1 for Solid from kdeexamples (code pasted here : <a \
href="http://paste.kde.org/429152/" target="_blank">http://paste.kde.org/429152/</a> \
(tutorial1.cpp) and <a href="http://paste.kde.org/429158/" \
target="_blank">http://paste.kde.org/429158/</a> (CMakeFiles.txt) )<br>
<br>While running cmake in the tutorial1 folder I get this error : <br><br>CMake \
Error at CMakeLists.txt:6 (kde4_add_executable):<br> Unknown CMake command \
"kde4_add_executable".<br><br>If I replace kde4_add_executable with \
add_executable then cmake works..<br>
<br>On running make, I now get this error:<br><br>[100%] Building CXX object \
CMakeFiles/tutorial1.dir/tutorial1.o<br>/home/anant/kdeexamples/solid/tutorial1/tutorial1.cpp:21:28: \
fatal error: QCoreApplication: No such file or directory <br>
<br><br>Other basic Qt c++ programs work well .. I've also tried <a \
href="http://techbase.kde.org/Development/Tutorials/First_program" \
target="_blank">http://techbase.kde.org/Development/Tutorials/First_program</a> which \
works<br> <br>
Any ideas on what I may may be missing?<br><br clear="all">Thanks,<br>Anant \
Kamath<br><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