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

List:       kde-devel
Subject:    Re: Building kde project in QTCreator
From:       "David Jarvie" <djarvie () kde ! org>
Date:       2009-07-29 8:29:40
Message-ID: bb660ab411eabd78014b9eca21180e9d.squirrel () www ! sensical ! net
[Download RAW message or body]

On Tue, July 28, 2009 9:41 pm, Michael Leupold wrote:
> Charles Abela wrote:
>
>> Hi I have found this good article : http://www.sebruiz.net/359
>> about how to make use of QTCreator to debug KDE projects. I am of the
>> conviction that to build a KDE project one needs to access the relevant
>> CMakeLists.txt and then run cmake. However for some reason I am getting
>> errors when cmake is run. I am trying to build a project for the
>> FolderView applet. I am accessing its CMakeLists.txt from within
>> QtCreator
>> and calling cmake. This is the error I am getting:
>>
>>  CMake Error at CMakeLists.txt:10 (macro_optional_find_package):
>>
>> Unknown CMake command "macro_optional_find_package".
>
> Does plain cmake without QtCreator run fine? If that's the first error, I
> reckon MacroOptionalFindPackage.cmake doesn't get included.

Is the applet's CMakeLists.txt which you are using just copied from SVN?
The build system in SVN is set up so that you have to run the top level
CMakeLists.txt, which sets up various cmake variables which the lower
level CMakeLists.txt need. So trying to run a lower level CMakeLists.txt
by itself won't work without modifying it.

-- 
David Jarvie.
KDE developer.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm

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