comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: error running openGL/Ada demo from GLOBE_3D using GNAT 2012
Date: Sun, 15 Jul 2012 00:54:16 -0500
Date: 2012-07-15T00:54:16-05:00	[thread overview]
Message-ID: <jttlu9$emq$1@speranza.aioe.org> (raw)
In-Reply-To: 0b653533-6633-43de-a670-8874d7c6ffc1@googlegroups.com

On 7/15/2012 12:14 AM, gautier_niouzes@hotmail.com wrote:
>> what constitute openGL?  i.e. which libraries make up what is called
>> &#39;openGL&#39; ?
>
> http://en.wikipedia.org/wiki/OpenGL
> http://www.opengl.org/
>
> Obviously the needed libraries are installed, otherwise you
>  would not have an executable. And it doesn't seem to have unresolved
>symbols in shared objects when startting mini.

Sure, I know that, and I said before the link was fine.

> Now from the error message:
>
> "OpenGL Warning: XGetVisualInfo returned 0 visuals"
>
....
> By googling the above message, it seems correlated to VirtualBox and its configuration.
>

Ok, some good news, and some not good news. First, the good news.

Yes. the display issue was VBox issue with. I googled and find a solution. The
command to start the demo is

>LIBGL_ALWAYS_INDIRECT=1 ./mini

here is a screen shot, it is comes up OK:

http://12000.org/tmp/071512/globe3d.png

I found this solution at this page

https://forums.virtualbox.org/viewtopic.php?f=3&t=30964

by poster called scottku. (down the page) It seems the above disable
harxware acceleration. And that fixed the problem.

Now the bad news :) For the other demo, globe_3d_demo_linux, the
above trick does not work. The error is a build error. Even
though I did gnatclean few times and rebuild things again
and again.

>LIBGL_ALWAYS_INDIRECT=1 ./globe_3d_demo_linux

./globe_3d_demo_linux: Symbol `system__restrictions__run_time_restrictions' has different size in shared object, consider re-linking

./globe_3d_demo_linux: Symbol `ada__strings__unbounded__unbounded_stringT' has different size in shared object, consider re-linking

./globe_3d_demo_linux: symbol lookup error: ./globe_3d_demo_linux: undefined symbol: __gnat_eh_personality

I do not know why mini demo works OK, but not this one. So, I think
there is still a library issue here?

I am using your gpr with no changes to it (i.e. gnat05).

Thanks for your help. May be some progress was made.
  
At least now, I can try to make a small Ada openGL program myself
to see how it works.

regards,
--Nasser



  reply	other threads:[~2012-07-15  5:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-14  6:47 error running openGL/Ada demo from GLOBE_3D using GNAT 2012 Nasser M. Abbasi
2012-07-14 14:16 ` gautier_niouzes
2012-07-14 17:59   ` Nasser M. Abbasi
2012-07-14 19:40     ` gautier_niouzes
2012-07-14 19:56       ` Nasser M. Abbasi
2012-07-14 20:06         ` Nasser M. Abbasi
2012-07-14 20:59           ` gautier_niouzes
2012-07-14 21:29             ` Nasser M. Abbasi
2012-07-15  3:44             ` Nasser M. Abbasi
2012-07-15  5:14               ` gautier_niouzes
2012-07-15  5:54                 ` Nasser M. Abbasi [this message]
2012-07-16  2:11                   ` gautier_niouzes
2012-07-16  2:21                     ` Nasser M. Abbasi
2012-07-16  9:07                       ` gautier_niouzes
replies disabled

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