Ah, this shows our ignorance of glut. We haven't come across that before
because it must happen automatically with the glut we're using (but it
seems not with freeglut, or at least some versions of freeglut).
In the file ccpnmr1.0/c/memops/global/gl_handler.c in the function
draw_text_gl_handler() below the line:
static void *font = GLUT_BITMAP_HELVETICA_10;
add the following (white space not crucial):
static Bool first_pass = CCPN_TRUE;
int argc = 0;
char *argv = NULL;
if (first_pass)
{
first_pass = CCPN_FALSE;
glutInit(&argc, &argv);
}
That bit of code does not crash our glut and hopefully will sort out your
freeglut. After saving the changes, type "make" in the same directory (it
should compile without complaints). Then let us know if that has solved
the problem.
Wayne
On Mon, 22 Aug 2005, SUBSCRIBE CCPNMR ellen fu wrote:
> Hi,
>
> I couldn't use shift+ctrl+left mouse button to pick peaks. every time
> analysis just crashed with a message shown below,
>
> freeglut ERROR: Function <glutBitmapWidth> called without first calling
> 'glutInit'.
>
> any suggestion?
>
|