Compilation problems with gtk/gl configure

Brian Gomes Bascoy <[email protected]>
Newsgroups gmane.comp.web.amaya.devel
Message-ID <[email protected]>
Hi, last night I download amaya-fullsrc-9.52.tgz and then I execute 
configure script with this parameters --with-gl --with-gtk, then when I 
do the make I get this error:
[...]
make[1]: Entering directory `/root/Amaya/obj/thotlib'
g++ -O2 -Wall -x c++ -D__cplusplus -D_UNIX -D_GTK -D_GL   
-DHAVE_CONFIG_H -I.. -I../../amaya/xpm -I../../thotlib/include 
-I../../thotlib/internals/var -I../../thotlib/internals/h 
-I../../thotlib/internals/f   -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I/usr/include   -I/usr/local/include -I/usr/include/X11/Xft 
-I/usr/include/freetype2  -c ../../thotlib/base/global.c -o base/global.o
In file included from ../../thotlib/base/global.c:18:
../../thotlib/internals/h/picture.h:50: error: ISO C++ forbids 
declaration of `GdkImlibImage' with no type
../../thotlib/internals/h/picture.h:50: error: expected `;' before '*' token
make[1]: *** [base/global.o] Error 1
make[1]: Leaving directory `/root/Amaya/obj/thotlib'
make: *** [thotlib] Error 2

To solve this I include gdk_imlib.h and gdk.h in picture.h file:
#ifdef _GTK
#include <gdk_imlib.h>
#include <gdk/gdk.h>
#endif

After this I get another error:
[...]
make[1]: Entering directory `/root/Amaya/obj/thotlib'
g++ -O2 -Wall -x c++ -D__cplusplus -D_UNIX -D_GTK -D_GL   
-DHAVE_CONFIG_H -I.. -I../../amaya/xpm -I../../thotlib/include 
-I../../thotlib/internals/var -I../../thotlib/internals/h 
-I../../thotlib/internals/f   -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I/usr/include   -I/usr/local/include -I/usr/include/X11/Xft 
-I/usr/include/freetype2  -c ../../thotlib/dialogue/appdialogue.c -o 
dialogue/appdialogue.o
../../thotlib/dialogue/appdialogue.c: In function `void 
BuildPopdown(Menu_Ctl*, int, GtkWidget*, int, int, ThotBool, ThotBool)':
../../thotlib/dialogue/appdialogue.c:1204: warning: unused variable 'pDoc'
../../thotlib/dialogue/appdialogue.c: In function `int MakeFrame(char*, 
int, char*, int, int, int, int, int*, int, ThotBool, ThotBool)':
../../thotlib/dialogue/appdialogue.c:2990: error: expected 
primary-expression before ')' token
../../thotlib/dialogue/appdialogue.c:2990: error: 
`G_TYPE_CHECK_INSTANCE_CAST' was not declared in this scope
../../thotlib/dialogue/appdialogue.c:2990: warning: unused variable 
'G_TYPE_CHECK_INSTANCE_CAST'
make[1]: *** [dialogue/appdialogue.o] Error 1
make[1]: Leaving directory `/root/Amaya/obj/thotlib'
make: *** [thotlib] Error 2


This is the source of appdialogue.c that have the problem:

/********************************************************************/
#ifdef _GL
#ifndef _NOSHARELIST
    if (GetSharedContext () == -1)
    {
#endif /*_NOSHARELIST*/
        drawing_area = GetGLArea ();
#ifdef _NOSHARELIST
        g_print ("Warning: upgrade your Opengl implementation (ie: Mesa) 
to get group opacity!\n");
#else /*_NOSHARELIST*/
        SetSharedContext (frame);
    }
    else
        drawing_area = gtk_gl_area_share_new (AttrList,
                            GTK_GL_AREA (FrameTable[GetSharedContext 
()].WdFrame)); //line:2990
#endif /*_NOSHARELIST*/
#else /*  _GL */
#ifdef _GTK
    drawing_area = gtk_drawing_area_new ();
#endif /* _GTK */
#endif /*  _GL */
/********************************************************************/

'G_TYPE_CHECK_INSTANCE_CAST' is part of glib-object, but its doesn't 
included in appdialogue.
I don't know how to solve this.. help!

Bye! :) (sorry my very poor english..)

  Brian Gomes Bascoy

pd: (i'm using slackware 11 with g++ (GCC) 3.4.6 with a i586, aand 
gtkglarea-1.99.0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.