Re: [GtkGLExt] Fwd: Re: GtkGlExt & GTK3



That makes sense.

I have started portng GtkGlExtMM to GTK3.  Here are the workarounds I have done so far, and the problem I am currently facing.

1. On fedora 19, I got the GtkGlExtMM source code by installing gtkglextmm-devel .

2. I started in the gdkglext/gdkmm/gl folder, and created the Makefile

SRCS=config.cc  context.cc  drawable.cc  font.cc  init.cc  pixmap.cc  pixmapext.cc  query.cc  tokens.cc  version.cc  window.cc  windowext.cc  wrap_init.cc

CPPFLAGS=$(shell pkg-config gtkglext-3.0 gtkmm-3.0 --cflags) -I../.. -I.

LDFLAGS=$(shell pkg-config gtkglext-3.0 gtkmm-3.0 --libs)

OBJS=$(SRCS:.cc=.o)

all: $(OBJS)

3. In this folder, I created the soft link
defs.h -> /usr/include/gtkglextmm-1.2/gdkmm/gl/defs.h
because there was no defs.h anywhere else that I could find
This is odd -- using an older version of the package to find the header file defs.h .

4. I also had to make the following soft-link:
gdkglextmm-config.h -> /usr/lib/gtkglextmm-1.2/include/gdkglextmm-config.h

5. The compilation of config.cc failed:

In file included from ../../gdkmm/gl/defs.h:25:0,
                 from ../../gdkmm/gl/config.h:27,
                 from config.cc:3:
./gdkglextmm-config.h:17:2: error: #error "Installed GdkGLExt library doesn't have multihead support."
 #error "Installed GdkGLExt library doesn't have multihead support."

Indeed, I checked the gdkglext-config.h created through building the tdz git files, and it does not define multihead support, whereas there is multihead support defined in GDK2 gdkglext-config.h file:

#define GDKGLEXT_MULTIHEAD_SUPPORT

The problem is, I cannot figure out how to configure multihead support int he tdz git build of GdkGLExt.





On 02/10/2014 06:33 PM, Li Yanrui (李延瑞) wrote:
Because qt developers pay close attention to support opengl than gtk developers. Qt has been providing support for integration with OpenGL implementations on all platforms. However if without tdz's hacks for gtkglext, i do not know when gtk 3 can support opengl.


2014-02-11 3:19 GMT+08:00 Norman Goldstein <normvcr telus net>:
To bring the list readers up to date, I was helped by Li Yanrui, and was able to build GtkGlExt wiith GTK3, with some differences, as noted below, from the GTK2 build.  However, I still am unsure whether to expect GtkGlExtMM to work with GTK3.  Any comments on this?

With regards to OpenGL working smoothly with GTKExt, I am quite satisfied, as both approaches:

-- gWindow->begin()..... glWikndow->close(), and
-- glWindow->make_current()

work well in GTKExt, and, as far as I know, place no restrictions on the OpenGL programmer.
So, I am curious to know in what respects Qt offers a better GTK experience for OpenGL programmers, as compared to simply a difference in Qt <--> GTK style of programming.

Thank you for the responses.



-------- Original Message --------
Subject: Re: [GtkGLExt] GtkGlExt & GTK3
Date: Mon, 10 Feb 2014 15:54:50 +0800
From: Li Yanrui (李延瑞) <liyanrui m2 gmail com>
To: Norman Goldstein <normvcr telus net>


Sorry, i do not know the things of gtkglextmm. If i want to use c++, i will think qt + opengl. In fact i am hard to bear gtk+ with opengl :)


2014-02-10 12:14 GMT+08:00 Norman Goldstein <normvcr telus net>:
Thanks, my mistake.  I used the wrong git repository.

One difference from the official install, is that you must do the configure in the gtkglext folder.  it does not work to create, and work in, a separate "build" folder.  Two mistakes occur if you try:
-- gdk/Makefile.in does not get created
-- the GOBJECT_INTROSPECTION_CHECK fails.

The build worked!

Do you know if GtkGlExtMM works with this version 3?






On 02/09/2014 06:00 PM, Li Yanrui (李延瑞) wrote:
Tdz's gtkglext supports gtk 3 so you can try it.. The official gtkglext has been obsolete for a number of years.



2014-02-09 2:37 GMT+08:00 Norman Goldstein <normvcr telus net>:
Thanks for the pointer.  Compile error as shown, below.  Currently, I am successfully working with GtkGlExtMM and GTK2, so if GTK3 support is still "in the works", maybe it is not worth spending time on my GTK3 problem -- unless I am able to help to expedite getting GTKGlExtMM working with GTK3.   What do you think?

So, the above being said, here is what I have done:
(I am on fedora19, 32 bit, x86)

git clone git://git.gnome.org/gtkglext

cd gtkglext
./bootstrap

mkdir build
cd build
../configure  CPPFLAGS=-I/usr/include/nvidia
make

Here is the first error:

gcc -DHAVE_CONFIG_H -I. -I../../../gdk/x11 -I../.. -DG_LOG_DOMAIN=\"GdkGLExt\" -DGDK_GL_COMPILATION -DINSIDE_GDK_GL_X11 -I../../.. -I../../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng15 -I/usr/include/libdrm -pthread -I/usr/include/nvidia -g -O2 -MT gdkglquery-x11.lo -MD -MP -MF .deps/gdkglquery-x11.Tpo -c ../../../gdk/x11/gdkglquery-x11.c  -fPIC -DPIC -o .libs/gdkglquery-x11.o
In file included from ../../../gdk/x11/gdkglglxext.h:34:0,
                 from ../../../gdk/x11/gdkglx.h:30,
                 from ../../../gdk/x11/gdkglquery-x11.c:31:
../../../gdk/gdkglconfig.h:103:1: error: unknown type name 'GdkColormap'
 GdkColormap *gdk_gl_config_get_colormap           (GdkGLConfig     *glconfig);
 ^




On 02/08/2014 01:10 AM, Li Yanrui (李延瑞) wrote:


2014-02-07 16:30 GMT+08:00 Norman Goldstein <normvcr telus net>:
The net has conflicting information on the status of using GtkGlkExt with GTK3.
What is the latest scoop, please?

Thank you


_______________________________________________
gtkglext-list mailing list
gtkglext-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkglext-list




--
Best regards,

Li Yanrui (李延瑞)




--
Best regards,

Li Yanrui (李延瑞)




--
Best regards,

Li Yanrui (李延瑞)



_______________________________________________
gtkglext-list mailing list
gtkglext-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkglext-list




--
Best regards,

Li Yanrui (李延瑞)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



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