[KPhotoAlbum] Building 4.6.2 for Debian Jessie

Matthias Heukäufer m.heukaeufer at posteo.de
Tue Nov 24 17:15:17 CET 2015


Hi Johannes,

thank you for your reply. I have been without a (reliable) internet 
connection, so I could not try you suggestions earlier.

Getting libkgeomap from git proved to be the essential hint. I had to 
use an earlier version 
(http://quickgit.kde.org/?p=libkgeomap.git&a=snapshot&h=c864ef7131ecb69a0c0859b0c6cbb371fbc65841), 
as the current code requires the "Extra CMake Modules" which seem not to 
be available for Jessie.
I preferred to package KPhotoAbum as a deb-file and then install it in 
its regular location, so I did the same with libkgeomap first. Now I can 
finally use the map feature in the annotation dialogue. Using the old 
kgeomap code does not seem to be a big issue at first glance.

Thank you very much for your help!

Matthias

On 30.09.2015 23:53, Johannes Zarl-Zierl wrote:
> Hi Matthias,
>
> Sorry for the long delay - I meant to get back to you sooner.
>
> In case you still need help, here's what works on a VM I installed with
> wheezy. Just in case you didn't see it yet, I'll mention the official howto
> for building KPhotoAlbum[1].
>
> Unfortunately, this tutorial hasn't been updated for KPA 4.6, yet. I.e. there
> is no mention of libkgeomap.
>
> So here's what I do to build and install libkgeomap:
>
> INSTALL_PREFIX=$(kde4-config --localprefix)
>
> This is usually the directory ~/.kde and works fine as installation path for
> kde-based programs. There's one catch, though: if you install kphotoalbum
> here, "make install" will overwrite your kphotoalbumui.rc[2] and (more
> importantly) your kphotoalbumrc file.
>
> I'm not sure whether it is possible to install a KDE program outside the KDE
> (local) prefix, but I've always had problems installing to some other
> directory (at least KDE won't find some resource files like the KPhotoAlbum
> handbook or the .desktop files).
>
> Step one: install kgeomap
>
> git clone git://anongit.kde.org/libkgeomap.git
> cd libkgeomap
> mkdir build && cd build
> cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX
> make && make install
>
> If you encounter any problem in this step or any other, please post the error
> here so we can find a solution.
>
>
> Step two: install libkface (if you want this,too)
>
> I just noticed that the version of libopencv in wheezy is too old for libkface
> from git master. I'll upgrade my VM to jessie and post this step once I've
> verified it.
>
>
> Step three: install kphotoalbum.
> This should basically work as advertised in [1].
>
> git clone git://anongit.kde.org/kphotoalbum.git
> cd kphotoalbum
> mkdir build && cd build
> cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX
>
> kgeomap should be found automatically if it is installed in either the KDE
> prefix or the KDE local prefix directory.
>
> make
> # make sure to preserve your kphotoalbumrc file:
> ../script/kpa-backup.sh --backup
> make install
> ../script/kpa-backup.sh --restore
>
> If you have added $INSTALL_PREFIX/bin to your PATH, you should be able to
> start kphotoalbum on the commandline. If it doesn't turn up in your start
> menu, you should check where kphotoalbum installs the .desktop file against
> the output of `kde4-config --path xdgdata-apps`.
>
>
> I hope this is helpful to you...
>    Johannes
>
>
> [1] https://userbase.kde.org/Building_KPhotoAlbum
>
> [2] kphotoalbumui.rc contains the menu structure, including toolbars. If you
> changed e.g. the toolbars of kphotoalbum, you might not want this file to be
> overwritten. kphotoalbumrc is your KPhotoAlbum config file. You certainly
> don't want this file to be overwritten.
>
>
>
> On Friday 25 September 2015 15:48:04 Matthias Heukäufer wrote:
>> Hi Johannes,
>>
>> can I ask you for a brief explanation on how to build KGeoMap in Debian?
>> I have run out of ideas trying to build and package KPhotoAlbum in
>> Jessie using the digikam libs and sources.
>>
>> Fernando:
>> Thank you for the link to the cmake tutorials. I have achieved some
>> success using a combination of -D 'CMAKE_MODULE_PATH=...' and -D
>> 'KGEOMAP_LOCAL_DIR=...', but eventually gave up as I ran into more and
>> more obstacles.
>>
>> Cheers - Matthias
>>
>> On 23.09.2015 19:59, Johannes Zarl-Zierl wrote:
>>> Hi,
>>>
>>> I'm using Debian sid myself, so I can't exactly tell you what to do on
>>> Jessie.
>>>
>>> I've always built KGeoMap on my own because of the packaging situation in
>>> Debian. This works quite well for me, even though I have to admit that
>>> having kgeomap (and other Digikam-related libs) in its own package would
>>> be the nicer solution...
>>>
>>> If you need pointers for building kgeomap on your own, I can help you...
>>>
>>> Cheers,
>>>
>>>     Johannes
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3693 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.kdab.com/pipermail/kphotoalbum/attachments/20151124/45358228/attachment.p7s>


More information about the KPhotoAlbum mailing list