Detection of Soprano

Andras Mantia amantia at kde.org
Tue Oct 16 12:12:03 CEST 2007


On Tuesday 16 October 2007, Andreas Pakulat wrote:
> On 16.10.07 12:07:25, Andras Mantia wrote:
> > On Tuesday 16 October 2007, Andras Mantia wrote:
> > > So what do I need 0.9.16a EXACTLY or >=0.9.16?
> >
> > I think I know the problem, LIB_SUFFIX is not detected correctly (I
> > have the libraries in /usr/lib64). That's pretty sad, I made a
> > detection script for automake some time ago, it seems cmake suffers
> > from the same problem.
> >
> > I wonder why this worked a week ago or so...
>
> Forwarding to kde-buildsystem, those should know why this happens.
>
> As Andras response is rather short, the problem is that the
> system-installed CLucene is not found with Soprano's FindClucene
> cmake script.

Well, the problem is that on my system the libaries in lib64, so the 
libsuffix is "64". For some reason CLucene is not found there. Actually 
the library is found (- Found CLucene 
library: /usr/lib64/libclucene.so), but the libary path is not. As I 
see the library is checked with:
 FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY
      WIN32_DEBUG_POSTFIX d
      NAMES clucene clucene-core
      PATHS ${TRIAL_LIBRARY_PATHS})
  IF (CLUCENE_LIBRARY)
    MESSAGE(STATUS "Found CLucene library: ${CLUCENE_LIBRARY}")


while the PATH with:
  FIND_PATH(CLUCENE_LIBRARY_DIR
      NAMES CLucene/clucene-config.h PATHS ${TRIAL_LIBRARY_PATHS})

In both case  ${TRIAL_LIBRARY_PATHS} is defined as:

  SET(TRIAL_LIBRARY_PATHS
    $ENV{CLUCENE_HOME}/lib${LIB_SUFFIX}
    ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
    /usr/local/lib${LIB_SUFFIX}
    /usr/lib${LIB_SUFFIX}
    /sw/lib${LIB_SUFFIX}
    NO_DEFAULT_PATH
  )


So unless I define LIB_SUFFIX to "64", it fails to find the library 
path. But why the first check finds it and the second doesn't is beyond 
me.

Andras


-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20071016/eea55505/attachment.pgp 


More information about the Kde-buildsystem mailing list