GPS Drive


Forum: myDSL Extensions (deprecated)
Topic: GPS Drive
started by: Headly

Posted by Headly on Sep. 01 2005,10:22
Hi Everyone,
I have seen some interest here from time to time for GPS software.  I found a program called GPS Drive that seems quite good.

< http://gpsdrive.kraftvoll.at/docu.shtml >

I have compiled simple stuff before (not for DSL) but when ever I  try anything even slightly complicated I wind up going into a downward spiral of missing libraries and dependancies that I don't understand.  I'm just after some advise on how hard this is going to be.

David

< GPSDrive >

Posted by David on Sep. 04 2005,05:35
Helo Again,

Well I decided to have a go at compiling it anyway.  What Have I got to loose :)

I assume that the way to do this is to actually compile it on DSL.

It looks like I managed to get the gcc compiler to install ok.

I managed to download the source of the application to a persistant folder on my CF disk.

The build instructions that came with it tell me that I need the development packages for the following things.

GTK 2.2.x
Pango
atk
pcre
xdevel (X11 Development)
gettext
libcrypt
glibc.

The first step to build the app is to do a ./configure
I tried that and it had a winge about the GTK being missing.  Which is fair enought as I haven't installed it yet :)

I see talk here about GTK2 but I assume these are run time packages.  

Can anyone assist me in finding the bits I need?

Thanks in advance
David

Posted by ke4nt1 on Sep. 04 2005,06:12
The current version of DSL , and it's kernel, is based on the
KNOPPIX_V3.4-2005-05-17-en.iso version of Knoppix.

Using this will give you a much more robust environment to compile
things for use in DSL..

For smaller projects, there is the kernelsources.dsl and gcc1.dsl extensions
that plug--n-play into DSL for some compiling needs..

73
ke4nt

Posted by Headly on Sep. 04 2005,08:53
Hi Ke4nt,

Thanks for the reply,  I am running the latest version of DSL unless a new one has been released in the last few weeks and I have missed it.

It goes like a rocket by the way. (frugal install with toram option)

I'm not quiet sure what you are sugesting I do about my compile problem?

David

Posted by Headly on Sep. 04 2005,08:57
(David thinks about it some more)

I think I get it.  Your saying don't compile it in DSL use the Full knoppix version....

KNOPPIX_V3.4-2005-05-17-en.iso

Posted by ke4nt1 on Sep. 04 2005,10:45
Yep, you got it..

Most of what you listed as dependancies is NOT in DSL.

Using a HDInstall of that version of knoppix will give you a good start
to compiling it, as it had the devel versions, and support for those deps.

The challenge is gonna be, running it in DSL without those packages.

So, you'll have to add some to your package, and install a few extra
extensions into DSL, like gtk2-0705.dsl , etc. when you try to run it in DSL.

73
ke4nt

Posted by Headly on Sep. 05 2005,02:41
Well, I downloaded the .iso last night.
6 hours + even on my cable connection :)

This does sound like it is going to be a chalenge to compile.

If I get it to work I should be able to shrug off my DSL Newbie status fiarly quickly.  lol

I'll post again here when (if) I get stuck.

Posted by Headly on Sep. 05 2005,23:04
Hi Again,
I managed to build and boot from the knoppix cd no problem.
I mounted my USB key as Read Write and unpacked a copy of the source files that I want to complie.

I then ran the configure command again and it still can't the GTK stuff.  I did a search of the entire file system and it doesn't seem to be there.

I didn't do a HDD install as I didn't see how this would would help.

I guess I need to go and find these libraries and include them in my new knoppix environment.  Any pointers here would be most helpfull.

David

Posted by alfille on Sep. 10 2005,17:17
It's getting hard to find that version of Knoppix.

Any chance of hosting KNOPPIX_V3.4-2005-05-17-en.iso on the DSL site since it's part of the development environment?

Posted by Headly on Sep. 13 2005,07:08
Getting closer but no cigar,

I have knoppix on CD and have been booting it no problem.
It is not quite the recommended version.  It is about 2 weeks newer but hopefulling this won't make any difference.

I haven't installed to the hard disk but instead been working on the RAM disk and this seems to be no problem either.

I have been making a build script that I can save on my usb key so I can run it over and over with consistancy. (see below)

Basically everything seems nice until I try and compile GTK.
I receive this error message about glib being the wrong version. (see bleow)

I have tried everything I can think of with the PKG_CONFIG_PATH but it doesn't seem to help.
It looks to me like It is find version glib-2.0 and it needs to be version 2.7.1 or higher.  I am building version 2.8.1 and into its default location.

Any ideas on what I'm missing. (going slightly nuts now)
I have the full output from the build script if anyone really wants it. (500kb)

David


Error Message
-------------------------------------------------------
configure: error: Package requirements (glib-2.0 >= 2.7.1    atk >= 1.0.1    pango >= 1.9.0    cairo >= 0.9.2) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for

Build Script
--------------------------------------------------------

LOGFILE=/mnt/uba1/logfile.txt
echo ***************************************************************** >> $LOGFILE
echo $1 >> $LOGFILE
date >> $LOGFILE
echo ***************************************************************** >> $LOGFILE

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# :/usr/lib/pkgconfig
     
##############################################################
# It looks like glib is alrdady part of Knoppix but it is too old

if [ "$1" == "glib" ]
then
       cd /root
       mkdir glib
       cd glib
       tar -xvzf /mnt/uba1/glib-2.8.1.tar.gz >> $LOGFILE 2>&1
       cd glib-2.8.1
      ./configure >> $LOGFILE 2>&1
       make clean >> $LOGFILE 2>&1
       make >> $LOGFILE 2>&1
       make install >> $LOGFILE 2>&1
       rm -rf ./glib-2.8.1/* >> $LOGFILE 2>&1
       exit 0
fi
##############################################################
if [ "$1" == "atk" ]
then
cd /root
mkdir atk
cd atk
tar -xvzf /mnt/uba1/atk-1.10.1.tar.gz >> $LOGFILE 2>&1
cd atk-1.10.1
./configure >> $LOGFILE 2>&1
make clean >> $LOGFILE 2>&1
make >> $LOGFILE 2>&1
make install >> $LOGFILE 2>&1
rm -rf ./atk-1.10.1/* >> $LOGFILE 2>&1
       exit 0
fi

###############################################################
if [ "$1" == "pango" ]
then
cd /root
mkdir pango
cd pango
tar -xvzf /mnt/uba1/pango-1.10.0.tar.gz >> $LOGFILE 2>&1
cd pango-1.10.0
./configure >> $LOGFILE 2>&1
make clean >> $LOGFILE 2>&1
make >> $LOGFILE 2>&1
make install >> $LOGFILE 2>&1
rm -rf ./pango-01.10.0/* >> $LOGFILE 2>&1
exit 0
fi
###############################################################
if [ "$1" == "cairo" ]
then
cd /root
mkdir cairo
cd cairo
tar -xvzf /mnt/uba1/cairo-0.9.2.tar.gz >> $LOGFILE 2>&1
cd cairo-0.9.2
./configue >> $LOGFILE 2>&1
make clean >> $LOGFILE 2>&1
make >> $LOGFILE 2>&1
make install >> $LOGFILE 2>&1
rm -rf ./cairo-0.9.2/* >> $LOGFILE 2>&1
exit 0
fi
###############################################################
if [ "$1" == "gtk" ]
then
cd /root
mkdir gtk
cd gtk
tar -xvzf /mnt/uba1/gtk+-2.8.3.tar.gz >> $LOGFILE 2>&1
cd gtk+-2.8.3
./configure >> $LOGFILE 2>&1
make clean >> $LOGFILE 2>&1
make >> $LOGFILE 2>&1
make install $LOGFILE 2>&1
rm -rf ./gtk+-2.8.3/* >> $LOGFILE 2>&1
exit 0

Posted by Headly on Sep. 19 2005,07:43
UPDATE
I have managed to get GPSDrive to compile on Knoppix
Now I have to move it to DSL and find any missing pieces.

Wish me luck :)

Posted by tylertyler on Sep. 21 2005,01:23
Good luck (I think you'll need it). I'm pleased to announce I got my USB GPS puck (< Global Sat BU-303 >) working with DSL tonite.

Props to the DSL coders, forumheads and also the kernel backporters who seem to have gotten the driver for its builtin Prolific PL2303 serial-to-USB converter into 2.4.26.

Look forward to hearing more of your progress with GPSDrive...

Posted by Max on Sep. 21 2005,16:17
As an FYI... I got TeletypeGPS to work under Wine with my GPS.  I'm using a USB connected Holux GM-210 that I got off e-bay for about $42.  It also uses the PL2303 chip.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.