KDE/kdelibs

Alexander Neundorf neundorf at kde.org
Sun Oct 4 22:10:47 CEST 2009


On Sunday 04 October 2009, Alexander Neundorf wrote:
> On Sunday 04 October 2009, Allen Winter wrote:
> > On Sunday 04 October 2009 1:13:11 pm Alexander Neundorf wrote:
> > > SVN commit 1031307 by neundorf:
> > >
> > > strigi is required for building kdelibs
> > >
> > > Jos: strigi is a hard requirement for kdelibs, i.e. not optional ,
> > > right ?
> > >
> > > Alex
> > >
> > > CCMAIL: <jvdoever at gmail.com>
> > >
> > >
> > >
> > >  M  +1 -1      CMakeLists.txt
> > >
> > >
> > > --- trunk/KDE/kdelibs/CMakeLists.txt #1031306:1031307
> > > @@ -56,7 +56,7 @@
> > >  macro_log_feature(ZLIB_FOUND "ZLib" "The Zlib compression library"
> > > "http://www.zlib.net" TRUE "" "Required by the core KDE libraries and
> > > some critical kioslaves.")
> > >
> > >  set(STRIGI_MIN_VERSION 0.6.3)
> > > -find_package(Strigi)
> > > +find_package(Strigi REQUIRED)
> > >  macro_log_feature(STRIGI_FOUND "Strigi" "A fast and small desktop
> > > searching program" "http://strigi.sourceforge.net" TRUE
> > > "${STRIGI_MIN_VERSION}" "Required by some critical kioslaves.")
> >
> > That's why we have the "TRUE" argument to the macro_log_feature.
> > This way, STRIGI is required and we get a nice logging message.
> > Else; cmake fails with a not-so-nice message.
>
> Hmm, this did bot really work here.
> I got a lot of "STRIGI_INCLUDE_DIR is invalid but used here and there"
> (something like that) messages from cmake.
> We'll have to take a closer look at this issue.

Here's what I got:

...
-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- You must install these packages before continuing.
-----------------------------------------------------------------------------
   * Strigi (0.6.3 or higher)  <http://strigi.sourceforge.net>
     A fast and small desktop searching program
     Required by some critical kioslaves.

-----------------------------------------------------------------------------

CMake Error at cmake/modules/MacroLogFeature.cmake:141 (MESSAGE):
  Exiting: Missing Requirements
Call Stack (most recent call first):
  CMakeLists.txt:279 (macro_display_feature_log)


CMake Error: The following variables are used in this project, but they are 
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
STRIGI_INCLUDE_DIR (ADVANCED)
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/kssl/kssl
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/kssl/kssl/caroot
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/misc
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/misc/ksendbugmail
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/misc/kpac
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/misc/kntlm
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/tests
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/kfile/tests
   used as include directory in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/kio/dummyanalyzers
STRIGI_STREAMANALYZER_LIBRARY (ADVANCED)
    linked by target "kio" in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio
    linked by target "dummy" in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio/kio/dummyanalyzers
    linked by target "kfile" in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kfile
STRIGI_STREAMS_LIBRARY (ADVANCED)
    linked by target "kio" in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kio
    linked by target "kfile" in 
directory /home/alex/src/CMake/tests/kde_stable_branch_test/kdelibs/kfile

-- Configuring incomplete, errors occurred!
~/src/CMake/tests/kde_stable_branch_test$


I think this should abort before cmake starts complaining that invalid 
variables are used (actually when I saw these error messages I didn't scroll 
up because I didn't expect to find something useful above these errors).

Alex


More information about the Kde-buildsystem mailing list