Bug 174353 - Geolocation does not work anymore
Summary: Geolocation does not work anymore
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 17:55 UTC by humufr
Modified: 2022-01-07 17:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments
geolocation window (46.42 KB, image/png)
2008-11-10 15:24 UTC, humufr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description humufr 2008-11-05 17:55:49 UTC
Version:           0.1.6 (using KDE 3.5.9)
Compiler:          gcc 4.2.4 
OS:                Linux
Installed from:    Compiled From Sources

I tried to use as I'm usually doing for some time now, to use the digikam plugin geolocation to modify by hand the coordinate of my photos. It's seems that the plugin is not working anymore. I can't have the google map to choose my location. 
The problem does seems to be relate on how the map is retrieve. The message I have in console gave me an internet adress and so I try to look what I will obtain if I just copy this adress and I have exactly the same thing that I have with digikam. So I think that the problem is on the php file to retrieve the data. 

The internet adress I obtain is the following:

http://digikam3rdparty.free.fr/gpslocator/getlonlatalt.php?latitude=45.4807&longitude=-73.6332&altitude=&width=480&height=360&zoom=15&maptype=G_MAP_TYPE&filename=dsc_3446.jpg

Perhaps something change with the google map.
Comment 1 caulier.gilles 2008-11-05 18:30:03 UTC
Yes,

Today, i have fixed the plugin following last changes of google map api.

You need to checkout code from svn (KDE branch) and compile/install as usual.

Let's me hear if all is fine for you...

Gilles Caulier
Comment 2 Mathias Lindner 2008-11-05 20:28:20 UTC
Which KDE branch? KDE3 or KDE4?

If I follow these instructions (http://www.digikam.org/drupal/download?q=download/svn) am I getting the right version of digiKam with Kipi?
Comment 3 caulier.gilles 2008-11-05 20:35:25 UTC
Both version are patched. This depand that what you use currently (:=)))...

Gilles Caulier
Comment 4 humufr 2008-11-06 21:27:24 UTC
I have been unable to test. When I'm compiling digikam I obtain this error message:

/bin/bash ../../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../digikam/libs/dimg -I../../../digikam/digikam -I/usr/include/kde -I/usr/share/qt3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -fno-tree-pre -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE  -MT dmetadata.lo -MD -MP -MF .deps/dmetadata.Tpo -c -o dmetadata.lo dmetadata.cpp
In file included from dmetadata.cpp:37:
../../../digikam/digikam/daboutdata.h: In function 'QString Digikam::libraryInfo()':
../../../digikam/digikam/daboutdata.h:90: error: 'version' is not a member of 'KDcrawIface::KDcraw'
dmetadata.cpp: In member function 'bool Digikam::DMetadata::loadUsingDcraw(const QString&)':
dmetadata.cpp:87: error: 'class KDcrawIface::DcrawInfoContainer' has no member named 'owner'
dmetadata.cpp:88: error: 'class KDcrawIface::DcrawInfoContainer' has no member named 'owner'
make[3]: *** [dmetadata.lo] Erreur 1
Comment 5 caulier.gilles 2008-11-07 06:17:07 UTC
update libkdcraw to last stable version (0.1.6)

Gilles Caulier
Comment 6 humufr 2008-11-07 14:01:36 UTC
This is what I did and just in case I remove all libkdcraw stuff reinstall it, check the version in /usr/include/libkdcraw (it's 0.1.6) and I still have the error message.
Comment 7 humufr 2008-11-10 15:23:54 UTC
Sorry forget the last comment I had some old libkdcraw in /usr/local... I removed it and I have been to finish the compilation but I still have the same problem. Because I'm using the svn I have the 0.1.7 verion for kipi.

KIPI (loading): Kipi-plugins - GPS Sync  - Kipi-plugins 0.1.7
KIPI (loading): http://digikam3rdparty.free.fr/gpslocator/getlonlatalt.php?latitude=45.4807&longitude=-73.6332&altitude=&width=480&height=360&zoom=15&maptype=G_MAP_TYPE&filename=dsc_3446.jpg
KIPI (loading): http://digikam3rdparty.free.fr/gpslocator/getlonlatalt.php?latitude=45.4807&longitude=-73.6332&altitude=&width=480&height=360&zoom=15&maptype=G_MAP_TYPE&filename=dsc_3446.jpg
KIPI (loading): http://digikam3rdparty.free.fr/gpslocator/getlonlatalt.php?latitude=45.4807&longitude=-73.6332&altitude=&width=491&height=361&zoom=15&maptype=G_MAP_TYPE&filename=dsc_3446.jpg

I'll attach the image of the geolocation window to show the result.
Comment 8 humufr 2008-11-10 15:24:51 UTC
Created attachment 28455 [details]
geolocation window

The google map is still empty.
Comment 9 caulier.gilles 2008-11-10 15:32:31 UTC
Note : you don't need to recompile digiKam. Geolocation tool is a kipi-plugin. just recompile and install kipi-plugins (not libkipi), and try again.

If it doesn't work anymore, remove your ~/.kde/share/config/kipirc file and try again.

Gilles Caulier
Comment 10 humufr 2008-11-10 15:56:45 UTC
Yep it worked sorry I didn't think to remove the configuration file. I should have think about this. Thank you very much to have take care of this bug I'm using a lot this function. 
Comment 11 Mathias Lindner 2008-11-10 16:01:17 UTC
How do I get the latest kipi-plugins? On digikam.org I only find instructions how to get digikam from svn...
Comment 12 Valerio Fuoglio 2008-11-10 16:09:49 UTC
You can get them this way:

$ svn co svn://anonsvn.kde.org/home/kde/branches/extragear/kde3/libs/kipi-plugins


Regards, 
Valerio
Comment 13 Mathias Lindner 2008-11-10 17:40:42 UTC
Firstly, thanks for the fast answers!
I downloaded the newest kipi-plugins but wasn't successful to install them. At first I searched for configure and could not find it. Then I ran configure.in.bot and it showed that all dependencies (as libkipi) were not found. But actually they are installed.
It's a pity that it's so complicated to update the plugins. I am not very experienced with Linux and I am running Gnome (making the compilation of KDE tools even more difficult). I spent several hours trying to update but without success. Thus, I am thinking about just waiting until the next official release comes providing a DEB file.

Do you have any guesses when a new DEB file will be build or when the Ubuntu repositories will include this bugfix? 
Comment 14 Valerio Fuoglio 2008-11-10 18:03:57 UTC
Ok, sorry, you've to copy parent directory, not kipi-plugins, but libs:

$ svn co svn://anonsvn.kde.org/home/kde/branches/extragear/kde3/libs
$ cd libs
$ make -f Makefile.cvs
$ mkdir install
$ export INSTALLDIR=`pwd`/install
$ ./configure --prefix=$INSTALLDIR --debug=full
$ cd kipi-plugins
$ make && make install
$ export LD_LIBRARY_PATH=$INSTALLDIR:$LD_LIBRARY_PATH
$ export KDEDIR=$INSTALLDIR:$KDEDIR
$ export PATH=$INSTALLDIR/bin:$PATH
$ digikam

These lines should do the job.

Don't forget to install kipi-plugins's dependencies first (you can find their list into README file in kipi-plugins directory)

Comment 15 caulier.gilles 2008-12-07 21:48:39 UTC
humufr,

I have fixed several incompatibilies with google api in current implementation of kipi-plugins from svn. Can you try this code ?

Gilles Caulier

Comment 16 humufr 2008-12-08 14:40:43 UTC
Hi Gilles,

I tried (kde3 version) and it's working fine here. I can geolocalize my photo without problem. Thanks,

N.