comp.lang.ada
 help / color / mirror / Atom feed
* Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013
@ 2013-06-16 14:43 Charly
  2013-06-16 18:02 ` Dmitry A. Kazakov
  2013-06-16 19:54 ` Andy M.
  0 siblings, 2 replies; 3+ messages in thread
From: Charly @ 2013-06-16 14:43 UTC (permalink / raw)


Hi,

I just tried to compile the new gtkada-3.4.2-gpl that comes with gnat gpl 2013,
as I do every year after installing the new gnat gpl version, by doing:
./configure --prefix=/usr/local/gnat
make

But this time, I got some error messages in testgtk:

gcc -c -gnatQ -gnatwa -gnatay3abcefhiklmnprt -g -O1 -gnat05 -I- -gnatA /mnt/data5/gmd/sw/gnat-2013/gtkada/gtkada-3.4.2-gpl-src/testgtk/opengl/view_gl.adb
view_gl.gpb:98:10: "Get_Count" is undefined
view_gl.gpb:184:42: "Get_X" is undefined (more references follow)
view_gl.gpb:185:42: "Get_Y" is undefined (more references follow)
view_gl.gpb:202:14: "Gdk_Window" is not visible
view_gl.gpb:202:14: non-visible declaration at gdk.ads:42
view_gl.gpb:207:10: "Get_Is_Hint" is undefined
view_gl.gpb:208:10: warning: call to obsolescent procedure "Get_Pointer" declared at gdk-window.ads:1007
view_gl.gpb:300:15: warning: condition is always False
gnatmake: "/mnt/data5/gmd/sw/gnat-2013/gtkada/gtkada-3.4.2-gpl-src/testgtk/opengl/view_gl.adb" compilation error

I assume the problem was caused by the change from gtk-2.x to gtk-3.x.

Any ideas?

------
Charly


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013
  2013-06-16 14:43 Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013 Charly
@ 2013-06-16 18:02 ` Dmitry A. Kazakov
  2013-06-16 19:54 ` Andy M.
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry A. Kazakov @ 2013-06-16 18:02 UTC (permalink / raw)


On Sun, 16 Jun 2013 07:43:59 -0700 (PDT), Charly wrote:

> I just tried to compile the new gtkada-3.4.2-gpl that comes with gnat gpl 2013,
> as I do every year after installing the new gnat gpl version, by doing:
> ./configure --prefix=/usr/local/gnat
> make
> 
> But this time, I got some error messages in testgtk:
> 
> gcc -c -gnatQ -gnatwa -gnatay3abcefhiklmnprt -g -O1 -gnat05 -I- -gnatA /mnt/data5/gmd/sw/gnat-2013/gtkada/gtkada-3.4.2-gpl-src/testgtk/opengl/view_gl.adb
> view_gl.gpb:98:10: "Get_Count" is undefined
> view_gl.gpb:184:42: "Get_X" is undefined (more references follow)
> view_gl.gpb:185:42: "Get_Y" is undefined (more references follow)
> view_gl.gpb:202:14: "Gdk_Window" is not visible
> view_gl.gpb:202:14: non-visible declaration at gdk.ads:42
> view_gl.gpb:207:10: "Get_Is_Hint" is undefined
> view_gl.gpb:208:10: warning: call to obsolescent procedure "Get_Pointer" declared at gdk-window.ads:1007
> view_gl.gpb:300:15: warning: condition is always False
> gnatmake: "/mnt/data5/gmd/sw/gnat-2013/gtkada/gtkada-3.4.2-gpl-src/testgtk/opengl/view_gl.adb" compilation error
> 
> I assume the problem was caused by the change from gtk-2.x to gtk-3.x.

GTK 3.x is hugely incompatible to 2.x. Cannot tell anything about testgtk,
but any GtkAda 2.x program must be reviewed and partially rewritten.

For a starting point consider this:

https://developer.gnome.org/gtk3/3.3/gtk-migrating-2-to-3.html

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013
  2013-06-16 14:43 Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013 Charly
  2013-06-16 18:02 ` Dmitry A. Kazakov
@ 2013-06-16 19:54 ` Andy M.
  1 sibling, 0 replies; 3+ messages in thread
From: Andy M. @ 2013-06-16 19:54 UTC (permalink / raw)


Le dimanche 16 juin 2013 16:43:59 UTC+2, Charly a écrit :
> Hi,
> 
> 
> 
> I just tried to compile the new gtkada-3.4.2-gpl that comes with gnat gpl 2013,
> 
> as I do every year after installing the new gnat gpl version, by doing:
> 
> ./configure --prefix=/usr/local/gnat
> 
> make
> 
> 
> 
> But this time, I got some error messages in testgtk:
> 
> 
> 
> gcc -c -gnatQ -gnatwa -gnatay3abcefhiklmnprt -g -O1 -gnat05 -I- -gnatA /mnt/data5/gmd/sw/gnat-2013/gtkada/gtkada-3.4.2-gpl-src/testgtk/opengl/view_gl.adb


In GtkAda 2013, OpenGL is no longer supported. When you try to compile testgtk,
the test of OpenGl fails.
If you do not use OpenGL, this is not an issue. (just change some config variable about OpenGL like OpenGL=NO)
If you need OpenGL, then you must stick with GtkAda 2012 or build an interface to GtkGLext or ask Adacore.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-16 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-16 14:43 Error in gtkada-3.4.2-gpl that comes with gnat gpl 2013 Charly
2013-06-16 18:02 ` Dmitry A. Kazakov
2013-06-16 19:54 ` Andy M.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox