Problem in KDEEDU with OpenBabel2
Alexander Neundorf
neundorf at kde.org
Sun Jun 11 13:24:34 CEST 2006
On Sunday 11 June 2006 10:31, Carsten Niehaus wrote:
> Am Sonntag 11 Juni 2006 schrieb William A. Hoffman:
> >You are telling cmake to find this file:
> >openbabel/obconversation.h
> >openbabel/obconversion.h // but the file on disk is this file
>
> Oops, darn, didn't see that. But it doesn't help :(
>
> >FIND_PATH(OPENBABEL2_INCLUDE_DIR NAMES openbabel/obconversation.h
> > /usr/local/include/openbabel-2.0/openbabel/obconversion.h
>
> I hope I understood you correctly... I am now doing this in the
> FindOpenBabel2.cmake-file:
>
> FIND_PATH(OPENBABEL2_INCLUDE_DIR NAMES openbabel/obconversion.h
> # PATHS
> # /usr/include
> # /usr/local/include/
> # PATH_SUFFIXES openbabel-2.0
> /usr/local/include/openbabel-2.0/openbabel/obconversion.h
> )
Doesn't work here either. I guess cmake checks for the given file name in the
standard include dirs,
and /usr/include//usr/local/include/openbabel-2.0/openbabel/obconversion.h
doesn't exist.
> but it still doesn't find anything... But the file exists...
>
> -rw-r--r-- 1 root root 15519 2006-06-07
> 22:49 /usr/local/include/openbabel-2.0/openbabel/obconversion.h
The find_path() command really only checks whether the file exists, it doesn't
try to compile or link or something.
You can easily write a small CMakeLists.txt to test he behaviour:
find_path(OPENBABEL2_INCLUDE_DIR NAMES openbabel/obconversion.h
PATH_SUFFIXES openbabel-2.0
)
message(STATUS "OPENBABEL2_INCLUDE_DIR: ${OPENBABEL2_INCLUDE_DIR}")
This works for me.
By using a separate cmake file, i.e. not testing inside a complete KDE module,
it is usually easier to figure things out.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list