Problem in KDEEDU with OpenBabel2

William A. Hoffman billlist at nycap.rr.com
Sun Jun 11 02:51:47 CEST 2006


At 02:10 PM 6/10/2006, Carsten Niehaus wrote:
>Hi
>
>Whatever I try, I only get this
>
>-- OPENBABEL2_INCLUDE_DIR :<>
>-- OPENBABEL2_LIBRARIES : <>
>-- OPENBABEL2_DIR:: <>
>
>
>My code to produce this is
>
>if(OPENBABEL2_FOUND)
>    include_directories(${OPENBABEL2_DIR})
>endif(OPENBABEL2_FOUND)
>
>MESSAGE(STATUS "OPENBABEL2_INCLUDE_DIR :<${OPENBABEL2_INCLUDE_DIR}>")
>MESSAGE(STATUS "OPENBABEL2_LIBRARIES : <${OPENBABEL2_LIBRARIES}>")
>MESSAGE(STATUS "OPENBABEL2_DIR:: <${OPENBABEL2_DIR}>")
>
>
>
>The FindOpenBabel2-code is
>
>FIND_PATH(OPENBABEL2_INCLUDE_DIR NAMES openbabel/obconversation.h
>  PATHS
>  /usr/include
>  /usr/local/include
>  /usr/local/include/openbabel
>  /usr/local/include/openbabel-2.0
>  PATH_SUFFIXES openbabel-2.0
>)
>
>but I tried about 15 other combinations of path and file... The file is really 
>in the position:
>
>kde4 at helium:~/build/kdeedu$ 
>file /usr/local/include/openbabel-2.0/openbabel/obconversion.h
>/usr/local/include/openbabel-2.0/openbabel/obconversion.h: ASCII English text
>

You are telling cmake to find this file:
openbabel/obconversation.h
openbabel/obconversion.h     // but the file on disk is this file

FIND_PATH(OPENBABEL2_INCLUDE_DIR NAMES openbabel/obconversation.h
      /usr/local/include/openbabel-2.0/openbabel/obconversion.h


>I am running out of ideas.
>
>
>Carsten
>
>_______________________________________________
>Kde-buildsystem mailing list
>Kde-buildsystem at kde.org
>https://mail.kde.org/mailman/listinfo/kde-buildsystem



More information about the Kde-buildsystem mailing list