Digikam 4 or 5 on Debian stretch

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Digikam 4 or 5 on Debian stretch

Jens Holzhäuser
Hi,

like a few others here, I am missing Digikam on Debian stretch.

I was able to compile the latest V5 beta version without opencv (I can live
without it for now) from git. 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.

When starting digikam, I see fairly at the begining (amongst many other messages):


| digikam.general: Database Parameters:
|    Type:                 "QSQLITE"
|    DB Core Name:         "/home/jens/Pics/digikam4.db"
|    DB Thumbs Name:       "/home/jens/Pics/thumbnails-digikam.db"
|    DB Face Name:         "/home/jens/Pics/recognition.db"
|    Connect Options:      ""
|    Host Name:            ""
|    Host port:            -1
|    Internal Server:      false
|    Internal Server Path: ""
|    Username:             ""
|    Password:             ""
|
| digikam.dbengine: Loading SQL code from config file ""
| digikam.dbengine: "Could not open the configuration file <b></b>. This file is installed with
| the digikam application and is absolutely required to run digikam. Please check your installation."


What am I missing? Where do I get the config file with the SQL code
from and where does it go?
The list DB files are the ones from my prior Digikam 4 use.

I also see no splash window on startup; digikam shows all the folders
and subfolders in the configured directory, without any pictures though.
Plus messages like "digikam.dbengine: Attempt to execute null action".


I would be fine with Digikam 4 as well, but when trying to bootstrap the
source from the official digikam-4.14.0.tar.bz2 archive, cmake fails with

|   -- Adjusting compilation flags for GCC version (5.2.1 )
|   -- Configuring incomplete, errors occurred!
|   See also "/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeOutput.log".
|   See also "/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeError.log".

Last lines in
/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeError.log:

| Performing C++ SOURCE FILE Test HAVE_LQR_0_4 failed with the following output:
| Change Dir: /usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp
|
| Run Build Command:"/usr/bin/make" "cmTC_2e20f/fast"
| /usr/bin/make -f CMakeFiles/cmTC_2e20f.dir/build.make CMakeFiles/cmTC_2e20f.dir/build
| make[1]: Entering directory '/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
| Building CXX object CMakeFiles/cmTC_2e20f.dir/src.cxx.o
| /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.


Thanks,

        Jens


--
Jens Holzhäuser                                [hidden email]
Richmond, Virginia (USA)
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam 4 or 5 on Debian stretch

Gilles Caulier-4


2015-11-29 23:25 GMT+01:00 Jens Holzhäuser <[hidden email]>:
Hi,

like a few others here, I am missing Digikam on Debian stretch.

I was able to compile the latest V5 beta version without opencv (I can live
without it for now) from git.

It impossible to compile digiKam without OpenCV2 or 3.
 
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 ?
 

When starting digikam, I see fairly at the begining (amongst many other messages):


| digikam.general: Database Parameters:
|    Type:                 "QSQLITE"
|    DB Core Name:         "/home/jens/Pics/digikam4.db"
|    DB Thumbs Name:       "/home/jens/Pics/thumbnails-digikam.db"
|    DB Face Name:         "/home/jens/Pics/recognition.db"
|    Connect Options:      ""
|    Host Name:            ""
|    Host port:            -1
|    Internal Server:      false
|    Internal Server Path: ""
|    Username:             ""
|    Password:             ""
|
| digikam.dbengine: Loading SQL code from config file ""
| digikam.dbengine: "Could not open the configuration file <b></b>. This file is installed with
| the digikam application and is absolutely required to run digikam. Please check your installation."


What am I missing? Where do I get the config file with the SQL code
from and where does it go?
The list DB files are the ones from my prior Digikam 4 use.

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 also see no splash window on startup; digikam shows all the folders
and subfolders in the configured directory, without any pictures though.
Plus messages like "digikam.dbengine: Attempt to execute null action".


I would be fine with Digikam 4 as well, but when trying to bootstrap the
source from the official digikam-4.14.0.tar.bz2 archive, cmake fails with

|   -- Adjusting compilation flags for GCC version (5.2.1 )
|   -- Configuring incomplete, errors occurred!
|   See also "/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeOutput.log".
|   See also "/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeError.log".

Last lines in
/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeError.log:

| Performing C++ SOURCE FILE Test HAVE_LQR_0_4 failed with the following output:
| Change Dir: /usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp
|
| Run Build Command:"/usr/bin/make" "cmTC_2e20f/fast"
| /usr/bin/make -f CMakeFiles/cmTC_2e20f.dir/build.make CMakeFiles/cmTC_2e20f.dir/build
| make[1]: Entering directory '/usr/src/digikam/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
| Building CXX object CMakeFiles/cmTC_2e20f.dir/src.cxx.o
| /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. Local install config problem again.

Gilles Caulier

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam 4 or 5 on Debian stretch

Jens Holzhäuser
On Mon, 30 Nov 2015 06:45:23 +0100, Gilles Caulier wrote:
> 2015-11-29 23:25 GMT+01:00 Jens Holzhäuser <[hidden email]>:
>
> > 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
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel