From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,30e165cfb56b149d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.240.101 with SMTP id vz5mr6370714pbc.4.1342331660829; Sat, 14 Jul 2012 22:54:20 -0700 (PDT) Path: l9ni11739pbj.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: error running openGL/Ada demo from GLOBE_3D using GNAT 2012 Date: Sun, 15 Jul 2012 00:54:16 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <4b22c809-4d41-4d0d-8824-4c335e4e6957@googlegroups.com> <59529bd2-2e93-4512-8867-d8c6ff0ea787@googlegroups.com> <0b653533-6633-43de-a670-8874d7c6ffc1@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: KdJUrTuvv3Zv/s8pPxNluw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-15T00:54:16-05:00 List-Id: On 7/15/2012 12:14 AM, gautier_niouzes@hotmail.com wrote: >> what constitute openGL? i.e. which libraries make up what is called >> 'openGL' ? > > 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