[Digikam-devel] Digikam 4 or 5 on Debian stretch
Jens Holzhäuser
Jens.Holzhaeuser at gmx.net
Tue Dec 1 04:06:33 GMT 2015
On Mon, 30 Nov 2015 06:45:23 +0100, Gilles Caulier wrote:
> 2015-11-29 23:25 GMT+01:00 Jens Holzhäuser <Jens.Holzhaeuser at gmx.net>:
>
> > I was able to compile the latest V5 beta version without opencv
> It impossible to compile digiKam without OpenCV2 or 3.
True, I guess. I was assuming it required OpenCV3 and wouldn't work at
all with V2 so I ran cmake with
-DENABLE_OPENCV3=OFF
thinking it would not compile any OpenCV in. ldd confirms it's compiled
against OpenCV2. On a quick test, face recognition doesn't seem to do
anything, but I've never used it before, anyway. No issue for me.
> > I used bootstrap.local to install it into
> > /usr/local/digikam, and am starting via a shellscript that takes care of
> > the KDE/KDESYCOCADIR variables etc.
> >
>
> Didi you read README.LOCAL file before ?
I did, apparently though I read accidentally only the one that came with V4
(while working on compiling V4 and V5) and missed QT_PLUGIN_PATH and
XDG_DATA_DIRS variables required for V5.
V5 beta starts now, thanks!
> digiKam do not found all config files. Typically the configuration of PATH
> to use a local install is missing. Local use is always problematic and long
> to hack. I never user personally this kind of install.
I would not either, if digikam was available via the official Debian
repo. I did it already for a while back in 2013, when no up-to-date
digikam V3 was available. I just hope V5 will make it into Debian
sometime.
I prefer to keep my system somewhat clean, and have anything not coming
via a Debian or deb-multimedia repo in /usr/local/.
> > | /usr/bin/c++ -pedantic -Werror=return-type -Wnon-virtual-dtor
> > -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W
> > -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS
> > -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics
> > -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden
> > -DHAVE_LQR_0_4 -I/usr/include/glib-2.0
> > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o
> > CMakeFiles/cmTC_2e20f.dir/src.cxx.o -c
> > /usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp/src.cxx
> > | /usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp/src.cxx:2:21:
> > fatal error: lqr.h: No such file or directory
> > | compilation terminated.
> > | CMakeFiles/cmTC_2e20f.dir/build.make:65: recipe for target
> > 'CMakeFiles/cmTC_2e20f.dir/src.cxx.o' failed
> > | make[1]: Leaving directory
> > '/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
> > | make[1]: *** [CMakeFiles/cmTC_2e20f.dir/src.cxx.o] Error 1
> > | Makefile:126: recipe for target 'cmTC_2e20f/fast' failed
> > | make: *** [cmTC_2e20f/fast] Error 2
> > | Source file was:
> > |
> > | #include <lqr.h>
> > |
> > | int main()
> > | {
> > | LqrImageType t = LQR_RGB_IMAGE;
> > | return 0;
> > | }
> >
> > How do I tell cmake to call the compiler with -I/usr/include/lqr-1 ,
> > which I think would be solution to that? I have liblqr-1-0-dev 0.4.2-2
> > installed, which puts the includes there.
> >
>
> It do not found liblqr headers.
Yes.
> Local install config problem again.
liblqr-1-0-dev is installed via the official stretch repo.
lqr.h is in /usr/include/lqr-1
# pkg-config --cflags lqr-1
-I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
Compiler call above doesn't have -I/usr/include/lqr-1 and so c++ says:
fatal error: lqr.h: No such file or directory
I am simply running bootstrap.linux of digikam-4.14.0 and cmake doesn't
get the CFLAGS right. Either a digikam or a Debian package issue, but I
don't know cmake well enough to find out where something is missing, and
possibly fix it.
Thanks for your time and answers, Gilles!
Jens
More information about the Digikam-devel
mailing list