Since people have started trying to compile and run mtrack, a couple of
problems have been identified. This is what Beta testing is all about. I
have described the problems and the solutions below, and a patch to make
the required changes. The descriptions below will allow you to make the
changes manually if you don't feel happy running the patch program.

Compilation
-----------

Some people have found that they cannot compile mtrack. This has been due
to what appears to be a missing header file for their system. This is a
strange one, but easily cured, and is dependent on the version of libc
that they have on their system. The solution is to add the line

#include <time.h>

near the top of every source file that doesn't have it already. Say, just
below the entry for <stdio.h>. The attached patch includes this.

Running
-------

If you had the colour depth of your video card set to greater than 8
bits-per-pixel, ie 256 colours, then the program would fail with lots of
errors. This was an oversight by me, my system runs in 256 colours and so
I never saw the problem. The solution is to go into the file map.c and
find the *two* occurences of gdk_pixmap_new and change the final arguments
from 8 to -1. This is also in the attached patch.

I would like to thank Hessu and Tomi for debugging this final problem with
me, 'live' via the converse system tonight. These changes will be
incorporated into the final release of course.

Jonathan  HB9/G4KLX

-------------------------------------------------------------------------------
diff -u --recursive --new-file mtrack-0.2-old/data_ed.c mtrack-0.2/data_ed.c
--- mtrack-0.2-old/data_ed.c    Sat May  1 19:51:02 1999
+++ mtrack-0.2/data_ed.c        Tue May  4 20:42:07 1999
@@ -19,6 +19,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #include <gtk/gtk.h>
 
diff -u --recursive --new-file mtrack-0.2-old/get_data.c mtrack-0.2/get_data.c
--- mtrack-0.2-old/get_data.c   Sun May  2 00:47:23 1999
+++ mtrack-0.2/get_data.c       Tue May  4 20:42:27 1999
@@ -19,7 +19,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <time.h>
 #include <memory.h>
 
diff -u --recursive --new-file mtrack-0.2-old/help.c mtrack-0.2/help.c
--- mtrack-0.2-old/help.c       Sat May  1 19:51:49 1999
+++ mtrack-0.2/help.c   Tue May  4 20:42:42 1999
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <time.h>
 
 #include <sys/stat.h>
 
diff -u --recursive --new-file mtrack-0.2-old/map.c mtrack-0.2/map.c
--- mtrack-0.2-old/map.c        Sun May  2 20:51:18 1999
+++ mtrack-0.2/map.c    Tue May  4 23:47:09 1999
@@ -18,6 +18,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <time.h>
 #include <math.h>
 
 #include <gtk/gtk.h>
@@ -124,7 +125,7 @@
        if (First_Time) {
                Init_Map_Data();
                First_Time = FALSE;
-               Map = gdk_pixmap_new(MapArea->window, MAP_WIDTH, MAP_HEIGHT, 8);
+               Map = gdk_pixmap_new(MapArea->window, MAP_WIDTH, MAP_HEIGHT, -1);
                gdk_draw_rectangle(Map, BackgroundGC, TRUE, 0, 0, MAP_WIDTH, 
MAP_HEIGHT);
                Load_Map();
        }
@@ -216,7 +217,7 @@
        if (First_Time) {
                Init_Text_Data();
                First_Time = FALSE;
-               Text = gdk_pixmap_new(MapText->window, MAP_WIDTH, MAP_TEXT_HEIGHT, 8);
+               Text = gdk_pixmap_new(MapText->window, MAP_WIDTH, MAP_TEXT_HEIGHT, -1);
                gdk_draw_rectangle(Text, TextBgGC, TRUE, 0, 0, MAP_WIDTH, 
MAP_TEXT_HEIGHT);
        }
------------------------------------------------------------------------------- 

Reply via email to