GPS Software for Linux
gpsdrive on Fedora Core 4 How-To
Update: See my step by step in the comment below.
Downlaod gpsdrive and unpack the tarball.
Fedora Core 4 uses gcc version 4, but gpsdrive 2.1pre2 doesn’t know that… Therefore, change the configure file according to
$ cd gpsdrive-2.10pre2 $ diff -u configure configure.orig --- configure 2005-07-11 22:18:41.000000000 +0200 +++ configure.orig 2005-07-11 22:18:13.000000000 +0200 @@ -20855,7 +20855,7 @@ if test "$CC" = "gcc" ; then -if $CC -dumpversion|egrep -q "^4\.*"; then +if $CC -dumpversion|egrep -q "^3\.*"; then echo "GCC ok" else echo "*****************************************"
$ ./configure ... checking for gtk+-2.0 >= 2.0.6 gthread-2.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found configure: error: Library requirements (gtk+-2.0 >= 2.0.6 gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
Therefore:
# yum install gtk2-devel
Try again:
$ ./configure ... $ make ... $ su - # make install $ gpsdrive
Horay.
March 3rd, 2006 at 15:42:15
I’m running Fedora Core 4, fully updated. I got part way through installing gpsdrive-2.09, and then found this page.
I tried yum install gtk2-devel, as root, but got only a nothing-to-do message.
So I tried make anyway — and got :
[root@localhost gpsdrive-2.09]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost gpsdrive-2.09]#
So I had a look at man make, and from there at info make; but all that is
going to be over my head for quite some while yet, alas!
I’m stuck, for the present, halfway through installing
gpsdrive. (I know there are rpms, but afaict only for SUSE. I can use an rpm; but would these work in Fedora Core 4??)
Is there hope?
March 3rd, 2006 at 16:07:40
Did you first run “
./configure“? The error message frommakeis because it cannot find any “Makefile“, which I believe is made during configuration.There is hope: Try:
[root@localhost gpsdrive-2.09]# ./configure
...
[root@localhost gpsdrive-2.09]# make
(yes, with the dot-slash in front)
Why not try the 2.10pre2 version? I got this working using Fedora Core 4. I have not tried the SUSE rpms – don’t think they will work.
March 3rd, 2006 at 23:00:57
I got pre2, and did it again, with both. (I.e., typed ./configure at the root prompt, from the gpsdrive directory; let it display its messages; then typed make at the next prompt.
I still get both
*****************************************
You need a gcc >= 3.x to compile GpsDrive
*****************************************
[root@localhost gpsdrive-2.10pre2]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost gpsdrive-2.10pre2]#
and
*****************************************
You need a gcc >= 3.x to compile GpsDrive
*****************************************
[root@localhost gpsdrive-2.09]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost gpsdrive-2.09]#
Apparently ./configure is not producing the Makefile …
March 4th, 2006 at 01:01:40
beartooth: You’re almost there… Just do what I wrote in my original post: Edit the
configurefile and change the lineif $CC -dumpversion|egrep -q "^3.*"; then
to
if $CC -dumpversion|egrep -q "^4.*"; then
And then run
./configureand after thatmakeMarch 4th, 2006 at 15:30:29
Tell me if I’m wasting your time, because I’m way out of my depth here, and you may not want to be bothered. I think I see a little tad bit, through a glass darkly as it were, that I didn’t yesterday; but I don’t know straight up about programming: can’t read a line of code, and might not recognize one if it bit my big toe; and the only editors I know are nano and pico.
I think I have this much figured out. First I had to do “cp configure configure.orig” (There wasn’t anyconfigure.orig.) I did that.
Then I get into configure, in my case with “nano -w configure” and find the line
if test “$CC” = “gcc” ; then
I did that.
Now I have to switch the 3 in the next line to a 4 — right? And do the needful housekeeping?
Apparently, to people familiar with the diff command (and all I knew was that some such command existed), your first gray box up there shows what that is, and you assume knkowledge of how to do it. Here I fail.
I can turn the 3 into a 4 all right. It seems possible that that’s it: close the editor, and go do “./configure” “make” and “install” in sequence, each when the preceeding finishes. (I have heard of make and of install, but never dared touch either, nor have I read up on them — the man page looks about as digestible as eating an elephant.)
Incidentally (or maybe not so incidentally), about su :
I keep a terminal by itself on one workspace, with several tabs — a couple have different-color background, and are permanently on su – root; I use them like a porcupine making love, but I do use them, and keep them handy. (This is at home, with no one around likely to touch my keyboard, ever.) (I know, I should buckle down and learn sudo — some day … But I haven’t yet.)
So I’ve been doing all of this as root. (Since I have to do things like rpm and yum commands as root, I just download everything into /home/btth, go to it with a root tab cd’d to /home/btth, and do everything from there on as root.) Only if I get something like CXO’s explanation of the difference between doing a thing as user do I do otherwise.
So if that is wrong, and I should start over, without becoming root till you have that su, please say so.
March 4th, 2006 at 15:36:16
PS : I did try just changing the 3 to a 4 and going on; I got this :
[....]
checking for gtk+-2.0 >= 2.0.6 gthread-2.0… yes
checking PKGCONFIG_CFLAGS… -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking PKGCONFIG_LIBS… -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
checking for pcre-config… no
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
configure: error: pcre-config not found please install libpcre3-dev or similar
[root@localhost gpsdrive-2.10pre2]# yum install
^^^^^^^^^^^
libpcre3-dev
^^^^^^^^^^^^
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libpcre3-dev
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nothing to do
^^^^^^^^^^^^^
[root@localhost gpsdrive-2.10pre2]#
March 4th, 2006 at 17:01:42
beartooth: I just did a reinstall of gpsdrive on Fedora Core 4. These are the step by step instructions:
Here, replace the line
if $CC -dumpversion|egrep -q "^3.*"; then
to
if $CC -dumpversion|egrep -q "^4.*"; then
(you don’t need any configure.orig file)
Be sure to have gtk2-devel and libpcre3-dev installed (with all dependencies):
Now configure, make and install:
As a normal user, start gpsdrive:
Hope this helps, please let me know how it goes
(I guess all you need to do is to do a
yum install pcre-develand then configure, make and install)Cheers
March 4th, 2006 at 17:57:48
Hooray!
It all worked. Many many thanks!
Now I just have to learn to use it.
Can I do that in combination with legacy proprietary map software (for M$, alas!) that I already have, with a lot of data, from Garmin and from maptech.com?
I have both of the above installed under Crossover Office (CXO) 5.0.1; and they open and work — except that they don’t connect to either of my Garmin GPSs (an etrex vista and a rino 120) — but, so far, neither does gpsdrive …
At any rate, I’m *way* to hell and gone further along than I was yesterday evening. Now at absolute dead *worst* I should be able to start over with gpsdrive. And *that* means, before long, I’ll be able to quit using the legacy software — and therefore wipe XP off my best machine, and have an M$-free house again.
I can’t thank you enough. Let me know if you ever have occasion to pass through west*ern* Virginia!
March 5th, 2006 at 01:27:22
Your explanation helped me tremendously. Thanks a lot!
March 5th, 2006 at 17:40:15
Big Oops, maybe : Gpsdrive still launches all right, from my user prompt; but when I tried “rpm -q gpsdrive” (just as the quickest most familiar way to get a version number for my email .sig), I got
[btth@localhost ~]$ rpm -q gpsdrive
package gpsdrive is not installed
[btth@localhost ~]$
Is that just because it’s not an rpm? Or did I leave something out somewhere?
It does have one oddity : when I command “gpsdrive &” it doesn’t free up that terminal, but goes on printing messages to it, even after I quit gpsdrive, until I hit ^C.
I *think* this is a setting inside gpsdrive somewhere, analogous to the -v switch on a lot of commands; and it’s a good idea, insmuch as I should learn to understand those messages. But I thought perhaps I ought to report it here.
Thanks again!
August 17th, 2006 at 13:36:15
Is there any way that I can be traced using a GPS reciver thorugh internet, like if am outside and my GPS is working is there any application by which anybody can trace me sitting on computer?
August 20th, 2006 at 14:17:10
Beau: Check out gpsbabel. You can dump your coordinates to a file and upload them to the net, or maybe convert them to a kml file that can be viewed with maps.google.com. If that was what you were thinking of.
September 3rd, 2006 at 04:52:05
Sire Martin – With a low bow, I must thank you. Ran into precisely same issue on kub dapper. Resolved by following instructions to letter, apt-got libpcre3-dev .deb file, and completed without incident. And as soon as I’m done thanking you for guidance, I’ll actually run the confounded app. Many many thanks.
January 9th, 2007 at 01:46:32
Worked for me! Thanks!