bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Compiling on Linux without GTK


From: Nis
Subject: Re: [Bug-gnubg] Compiling on Linux without GTK
Date: Tue, 04 Mar 2003 20:49:38 +0100

--On Monday, March 03, 2003 20:01 +0100 Jim Segrave <address@hidden> wrote:

Yes, but please do a diff -u or diff -c, and if it's a huge patch please
compress it :-) And if it's possible it would like these changes
separate from the half-ply changes :-)

diff -u is really the only way to go in my opinion.

Thanks - that was the info I needed.

The problems were:

gnubg.c - CommandSetGUIDragTargetHelp only gets created if USE_GTK is
          true
          fGUISetWindowPos is only defined if USE_GTK is true (moved
          the #if USE_GTK up to remove the save of window positions

Exactly the two changes I made to that file ...

renderprefs.c - SetColourX() has a parameter of type gdouble - #if'ed
          out this function, as it's static
          #if'ed out the call to SetColourX() later on
          #if'ed out the SetColourSSF() function - again gdouble
parameters           #if'ed out the body of RenderPreferencesParam() to
avoid the            call to SetColourSSF()

Here I did a little "heuristic" editing - changing gdouble and gfloat to
double and float (so they "looked" like the functions not causing errors) -
and only commented out the parts of RenderPreferencesParam() causing problems.

It now compiles nicely - including my additions ... can anybody tell me how to debug Segfaults?

--
Nis Jorgensen
Amsterdam





reply via email to

[Prev in Thread] Current Thread [Next in Thread]