[gps-devel] GPS with Mac Leopard Adventures

Roger Mc Murtrie rogermc at IINET.NET.AU
Mon Nov 26 23:32:28 CET 2007


Hello Nicolas,
"all this trouble" is probably due to this being my first time to try  
and build GPS.
No doubt, having successfully built it once, future upgrading  
shouldn't be a problem (I hope).
In retrospect, I should have got GtkAda working correctly first as it  
was the Get_Pixel_Size problem that caused most of my problems.
 From backtraces, I suspect the Get_Pixel_Size problem may have  
something to do with pango which I know nothing about.
According to Fink, I am using gtk+2 version 2.12.1-1
 From config.log:
GTK_LIBS='-L/usr/local/lib/gtkada -lgtkada -L/usr/local/lib -L/usr/X11/ 
lib -L/sw/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 - 
lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXrandr - 
lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes - 
lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv'
GTK_PREFIX='/sw'
GTK_STATIC_LIBS='/usr/local/lib/gtkada/libgtkada.a -L/usr/local/lib -L/ 
usr/X11/lib -L/sw/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 - 
lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender - 
lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 - 
lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl - 
liconv'

How do I find out and set X11 color depth?

My remaining (?) problem is most easily instigated by trying to resize  
the main gps window:

  :~/Desktop/Ada/gps-4.0.2 Roger$gps/obj/gps
The program 'gps' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
   (Details: serial 3918 error_code 8 request_code 70 minor_code 0)
   (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error()  
function.)

Any ideas?

Regards,
Roger

On 26/11/2007, at 10:41 PM, Nicolas Setton wrote:

>
> Hello Roger,
>
>> Problem found (but not fixed yet) in GtkAda!
>> There appears to be a problem with GtkAda's  
>> Pango.Layout.Get_Pixel_Size procedure.
>> Deleting all calls to Get_Pixel_Size in GtkAda/src gtkada-mdi.adb and
>> GtkAda/src/gtkada-canvas allows the main GPS window to be displayed  
>> with all widgets apparently displayed correctly.
>>
>
> This is quite strange: I could build and run GPS on Leopard without  
> all this trouble.
>
> Which version Gtk+ are you using ? Also, are you running X11 with a  
> 24-bits color depth ?
>
> Cheers,
>
> Nicolas


More information about the gps-devel mailing list