Hi.
I'm packaging krename for the MIB group
(see http://mib.pianetalinux.org/mib/) and I tried to enable the podofo
plugin.
I found that, at the configure time, the build process looks first for
the podofo headers (successfully) and then for the podofo library
(unsuccessfully, even if correctly installed);
see this snippet of the console output:
*****************************
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Found taglib: -L/usr/lib64 -ltag
-- Taglib found: -L/usr/lib64 -ltag
-- The tablib library was found. KRename will be built with tablib support.
-- Found Exiv2: /usr/lib64/libexiv2.so (found version "0.21.1",
required is "0.13")
-- The exiv2 library was found. KRename will be built with exiv2 support.
podofo/podofo.h: /usr/include
podofo lib: not found
PoDoFo cflags:
-- The podofo library was not found. KRename will not be built with
podofo support.
-- Found Freetype: -lfreetype -lz
-- The freetype library was found. KRename will be built with freetype
support.
-- Configuring done
-- Generating done
*****************************
I noticed that the FindLIBPODOFO.cmake file has the following lines:
************
FIND_LIBRARY(LIBPODOFO_LIB
NAMES libpodofo-doc podofo-doc
PATHS "${LIBPODOFO_DIR}/lib" "${LIBPODOFO_DIR}/src" "${LIBPODOFO_DIR}")
IF(LIBPODOFO_LIB)
MESSAGE("podofo lib: ${LIBPODOFO_LIB}")
ELSE(LIBPODOFO_LIB)
MESSAGE("podofo lib: not found")
ENDIF(LIBPODOFO_LIB)
************
The above "NAMES" entry is plainly wrong and causes the failing of the
detection of the podofo library...
It seems to test for some documentation, when, IMO it should rather test
for the library name (eg libpodofo.so).
By removing the original NAMES entries and replacing them with
"libpodofo.so", the problem goes away.
Cheers.
GvM
MIB Packager
|