Cannot build v18.0w on Arch (unknown type name ‘GtkGLArea’)
Ventto opened this issue · comments
It does not seem to work with me. I can not build on Arch.
Nevertherless, the package gtkada 2016-1 works.
Kernel: x86_64 Linux 4.8.13-1-ARCH
- Configure output:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gprbuild... /usr/bin/gprbuild
checking for gprinstall... /usr/bin/gprinstall
checking that your gnat compiler works with a simple example... yes
checking whether NLS is requested... yes
checking for gettext in libc... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK - version >= 3.14.0... yes
checking for OpenGL... yes
checking for GL32... no
checking for Mesa... no
checking Mesa with pthreads... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating shared.gpr
config.status: creating po/Makefile
config.status: creating docs/gtkada_rm/html/static/index.html
configure: --------- Summary for Gtkada 18.0w -----------------
configure: Shared libraries: yes (default: static)
configure: OpenGL: True
configure: --------------------------------------------
- make output:
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /home/ventto/workspace/ada/.extern/gtkada/src/opengl/gdkgl.h:23,
from /home/ventto/workspace/ada/.extern/gtkada/src/opengl/gtkglarea.c:22:
/usr/include/gtk-3.0/gtk/gtk-autocleanups.h:86:31: error: unknown type name ‘GtkGLArea’
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkGLArea, g_object_unref)
^
/usr/include/glib-2.0/glib/gmacros.h:442:11: note: in definition of
macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
typedef TypeName *_GLIB_AUTOPTR_TYPENAME(TypeName);
^~~~~~~~
/usr/include/gtk-3.0/gtk/gtk-autocleanups.h:86:31: error: unknown type name ‘GtkGLArea’
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkGLArea, g_object_unref)
Thanks for your time.
Configure with --with-GL=no
. (You're not the first to stumble on this, perhaps we should make this the default, it could be the most convenient for the majority of people)
Why is this issue closed?
@Earnestly I closed this because I'm planning to disable --with-GL by default... coming soon.
Ah, okay that makes more sense. Thanks
Hi, I have encountered exactly the same issue while installing the most recent stable release on Mageia. I would like to use OpenGL, so the solution you mentioned (--with-GL=no) is not really an option.
Is this because a dependency library is missing in my system?
Configure with
--with-GL=no
. (You're not the first to stumble on this, perhaps we should make this the default, it could be the most convenient for the majority of people)
See also https://www.bassi.io/articles/2015/02/17/using-opengl-with-gtk/
Just got tricked by this.