[SOLVED]
Anche io ho problemi di compilazione con il pacchetto in oggetto. Sto compilando su una slackware64-14.1 multilib, che ha il kde di pat. Non ci ho fatto niente di particolare da quando l'ho installata a novembre.
Anche io sto usando lo slackbuild di SBo. Ho creato personalmente e installato le dipendenze (opencv, ffmpeg), sempre da SBo, e prima di questi le dipendenze del secondo ordine indicate per ffmpeg. Fin qui tutto liscio. Vado a fare digikam-3.5.0 e ottengo questo:
Codice: Seleziona tutto
[...]
-- kipi-plugins 3.5.0 dependencies results <http://www.digikam.org>
--
-- libjpeg library found.................... YES
-- libtiff library found.................... YES
-- libpng library found..................... YES
-- libkipi library found.................... YES
-- libkexiv2 library found.................. YES
-- libkdcraw library found.................. NO
--
CMake Error at extra/kipi-plugins/CMakeLists.txt:88 (MESSAGE):
kipi-plugins needs libkdcraw. You need to install the libkdcraw (version >= 2.2.0) library development package.
Call Stack (most recent call first):
extra/kipi-plugins/CMakeLists.txt:237 (PRINT_LIBRARY_STATUS)
[...]
Ovviamente ho libdkcraw installato con il kde di pat:
Codice: Seleziona tutto
# ls /var/log/packages/libkdcraw*
/var/log/packages/libkdcraw-4.10.5-x86_64-1
# ldconfig -p|grep libkdcraw
libkdcraw.so.22 (libc6,x86-64) => /usr/lib64/libkdcraw.so.22
libkdcraw.so (libc6,x86-64) => /usr/lib64/libkdcraw.so
La cosa che non mi torna è che più sopra dell'errore già riportato c'è questo:
Codice: Seleziona tutto
[...]
-- Check for Kdcraw library in local sub-folder...
-- Check Kdcraw library using pkg-config...
-- checking for module 'libkdcraw'
-- found libkdcraw, version 2.0.0
-- Found libkdcraw release 2.0.0
-- Found libkdcraw: /usr/lib64/libkdcraw.so
-- libkdcraw: Found version 2.0.0 (required: 2.2.0)
[...]
...come se libkdcraw fosse invece stato trovato.
Qualche idea su come risolvere il problema? Grazie in anticipo
*****************
edit: non avevo notato che la versione rilevata è 2.0.0 mentre è richiesta almeno la versione 2.2.0
sono andato a controllare e l'header di libkdcraw dice invece questo
Codice: Seleziona tutto
# more /usr/include/libkdcraw/version.h
/** ===========================================================
*
* This file is a part of digiKam project
* <a href="http://www.digikam.org">http://www.digikam.org</a>
*
* @date 2007-02-12
* @brief libraw program interface for KDE
*
* @author Copyright (C) 2007-2012 by Gilles Caulier
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* ============================================================ */
#ifndef KDCRAW_VERSION_H
#define KDCRAW_VERSION_H
// Before changing the line below, make sure that FindKdcraw.cmake can still parse it
static const char kdcraw_version[] = "2.2.0";
#define KDCRAW_VERSION 0x020200
#endif // KDCRAW_VERSION_H
Ho anche provato a reinstallare il pacchetto, sempre dal kde di pat, ma le cose non cambiano. E' come se la versione effettivamente rilevata fosse tutt'altra...
Ho provato anche a commentare #ifndef KDCRAW_VERSION_H ma nulla...
***********************
edit2:
evidentemente il parsing di quel file non va. Ho trovato questo post
http://digikam.1695700.n4.nabble.com/li ... 64528.html e ho fatto lo stesso, ovvero forzare la definizione della versione di libdcraw nei file
Codice: Seleziona tutto
digikam-3.5.0/core/CMakeLists.txt
digikam-3.5.0/extra/kipi-plugins/CMakeLists.txt
in questo modo
e ora la compilazione procede. Spero non ci siano altri problemi
*****************
edit3: lo slackbuild è andato a buon fine e ora ho un digikam funzionante