Author Topic: Garmin Communicator Plugin for Linux  (Read 1744 times)

Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Garmin Communicator Plugin for Linux
« on: April 03, 2012, 01:55:53 PM »
Hi,

As I am a runner, I use the outstanding garmin forerunner 305 watch. This evening I have decided to have a look on Garmin Communicator Plugin for linux and to try to port it to pclos.

The spec file of GarminPlugin indicates that garmintool is needed. And the spec file of garmintool reclaims libgarmin to compile properly. So, the first package I have to do is libgarmin. I downloaded spec and sources on opensuse website for mandriva 2011.

I built the rpm without error.

The next step is to build garmintool package but not for tonight, may be tomorrow.

Zou
« Last Edit: April 10, 2012, 01:48:55 PM by Zou »

Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Re: Garmin Communicator Plugin for Linux
« Reply #1 on: April 04, 2012, 02:18:15 PM »
Hi,

Ok for tonight, second part is done.

I have installed my previous built package libgarmin as it is needed to build garmintools.

After many tests, I have finally managed to build garmintools packag but I did a little trick. I have to create a symbolic link on /usr/lib/libusb-1.0.la -> /usr/lib/libusb.la otherwise I cannot build the package because it cannot find libusb-1.0.la.

Zou
« Last Edit: April 10, 2012, 01:49:09 PM by Zou »

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1168
Re: Garmin Communicator Plugin for Linux
« Reply #2 on: April 09, 2012, 12:43:13 PM »
Hi Zou,

some little comments to your spec file from garmin tools

- use the xz compression for the source, if you get a tar.gz or tar.bz2 file recompress it to tar.xz
- check the 64bit repo whether there is lib64 version for your libs you require for the build
- remove the suse and mandriva entries in the Changelog section

comments to libgarmin
- all from above
- the version you defined in the spec file is 0 i think this isnt a real version. if you dont find a normal version like 0.xy or x.yz or way like this use the svn commit number in your case it must be 20090212
- line 70 and 74 the if statements: i dont know exactly what it should mean and for what it is but i know %mdkversion is allways bigger than 200900 see also /etc/rpm/macros.d/mandriva-release.macros

greets
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Re: Garmin Communicator Plugin for Linux
« Reply #3 on: April 09, 2012, 01:21:08 PM »
Hi,

Thank you very much for your review. I will corrected it as soon as I have a little time to do it.

But for the moment I have prefered to test those two rpm to see if can access my garmin forerunner with them.

And guess what ? It works ! I can now access my forerunner 305 directly under linux with garmintools package.

Thanks again for having spend time to read my rpm.

Zou

Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Re: Garmin Communicator Plugin for Linux [DONE]
« Reply #4 on: April 10, 2012, 02:02:57 PM »
Hi,

Well, I compiled the last package GarminPlugin and it works perfectly. I can upload to http://www.runningahead.com/ my workouts. I am very happy because I can drop windows !

I have done several points as ghostbunny has adviced me :
- recompress the sources to tar.xz to gain some space
- remove suse and mandriva entries

The 64 bits repo is not done yet. I have to look for the libs used in my packages.

I have removed %mdkversion which is not used in pclos.

For the version number of libgarmin has it is still in alpha I think this is the reason of the 0. I checked http://libgarmin.sourceforge.net/ and found nothing regardless the latest version.

To test it :
http://dl.dropbox.com/u/27130867/SRPMS/libgarmin-0-1zou2012.src.rpm
http://dl.dropbox.com/u/27130867/SRPMS/garmintools-0.10-1zou2012.src.rpm
http://dl.dropbox.com/u/27130867/SRPMS/GarminPlugin-0.3.9-1zou2012.src.rpm

Zou

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Garmin Communicator Plugin for Linux
« Reply #5 on: April 10, 2012, 05:21:44 PM »
No problems...

Quote
Garmin Communicator - Fake plugin. Version 0.3.9
application/vnd-garmin.mygarmin    Garmin Device Web Control    garmin

« Last Edit: April 11, 2012, 03:36:52 PM by coffeetime »
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Re: Garmin Communicator Plugin for Linux
« Reply #6 on: April 11, 2012, 01:15:18 PM »
Hi,

Quote
check the 64bit repo whether there is lib64 version for your libs you require for the build

Where can I find the 64bit repo ?

Zou

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1168
Re: Garmin Communicator Plugin for Linux
« Reply #7 on: April 11, 2012, 03:45:32 PM »
Hi,

Quote
check the 64bit repo whether there is lib64 version for your libs you require for the build


Where can I find the 64bit repo ?

Zou


e.g. here: http://ftp.nluug.nl/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2011/

if you found the lib64 version of your used libs use the %{_lib} macro

e.g.

BuildRequires: %{_lib}qt4-devel

Quote
For the version number of libgarmin has it is still in alpha I think this is the reason of the 0. I checked http://libgarmin.sourceforge.net/ and found nothing regardless the latest version.


http://www.pclinuxos.com/forum/index.php/topic,102028.0.html

read the note about the aplha software. dont know whether neal push this to the repo
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline Zou

  • Jr. Member
  • **
  • Posts: 17
Re: Garmin Communicator Plugin for Linux
« Reply #8 on: April 12, 2012, 03:24:25 AM »
Well, I did a mistake, this is not an alpha but a beta version since 2009... I think that development is stopped or dead.

Have a look at http://sourceforge.net/projects/libgarmin/reviews/. It is written "beta"

For the lib64 part, it is done. I have just updated the spec file to reflect those changes.

Zou
« Last Edit: April 12, 2012, 01:44:58 PM by Zou »

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Garmin Communicator Plugin for Linux
« Reply #9 on: September 14, 2012, 05:47:16 PM »
Tested with my new GF 210. No problems...It deserves stable...
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2253
Re: Garmin Communicator Plugin for Linux
« Reply #10 on: September 15, 2012, 02:49:12 PM »
Just as an FYI - there is now a Linux kernel driver for Garmin GPS/USB devices.

http://sourceforge.net/projects/garmin-gps/

Retired Senior Chief, Retired Software Engineer, Active GrandPa