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=-1.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM 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 Received: by 10.68.227.67 with SMTP id ry3mr5393661pbc.8.1342294811024; Sat, 14 Jul 2012 12:40:11 -0700 (PDT) Path: l9ni11715pbj.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: error running openGL/Ada demo from GLOBE_3D using GNAT 2012 Date: Sat, 14 Jul 2012 12:40:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4b22c809-4d41-4d0d-8824-4c335e4e6957@googlegroups.com> NNTP-Posting-Host: 83.76.61.145 Mime-Version: 1.0 X-Trace: posting.google.com 1342294810 25574 127.0.0.1 (14 Jul 2012 19:40:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Jul 2012 19:40:10 +0000 (UTC) Cc: nma@12000.org In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.76.61.145; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-14T12:40:10-07:00 List-Id: Le samedi 14 juillet 2012 19:59:09 UTC+2, Nasser M. Abbasi a =E9crit=A0: > hi Gautier; >=20 > 2 issues: >=20 > 1) I had unziped those file before (I did not know) when I unzip > files, I unzip them and delete the zip files). >=20 > I restored the zip files, and run mini and now I get this error >=20 > ---------------------------- > >ls -lrt *.zip > -rwxrwxrwx 1 me me 2133918 Jul 14 12:49 g3demo_global_resources.zip > -rwxrwxrwx 1 me me 1489595 Jul 14 12:49 g3demo_level_resources.zip > >./mini > OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x9d00de0 > OpenGL Warning: Retry with 0x8002 returned 0 visuals >=20 > Execution terminated by unhandled exception > Exception name: STORAGE_ERROR > Message: stack overflow or erroneous memory access > Call stack traceback locations: > 0x811d74e > > > ------------------------- >=20 > any idea please? I have tested today latest changes on Windows 7 32 bit, Windows 7 64 bit, U= buntu 10.04 32 bit without any issue. > btw, the file Face.bmp is there, but it is Face.bmp and > not face.bmp (i.e. lower case). I am on linux. Does this > make a difference? could this be the problem now? No, since the image files (and other data) are only read in the 2 Zip files= , in a case-insensitive mode. At this stage the operating system has no con= trol anymore on names and their case-[in]sensitiveness... What happens when you run the Linux executable that is shipped with the who= le stuff ? - I mean: ./globe3d_demo_linux ? > ------------------------ > >ls -lrt Face*.bmp > -rwxrwxrwx 1 me me 5174 Apr 25 2006 Face1.bmp > -rwxrwxrwx 1 me me 5174 Apr 25 2006 Face3.bmp > >pwd > /ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/demo/g3demo_global_res= ources > > > ------------------------------------ >=20 > I am mainly now interested is using the open GL binding > in Ada, since I assume your openGL binding here is newer than the other > open GL Ada binding in http://adaopengl.sourceforge.net/ ? Sure. And it uses the modularity ([Gl.]Name) instead of glNAme of the flat = macro-assembler model. And also uses name overloading, like Vector instead = of glVector3i, for instance. > 2) > FYI; When I used gnat2012 switch (changed .gpr and changed from > gnat05 to gnat2012) I get compiler error. So I changed back to > gnat05 >=20 >=20 > >gnatmake -P globe_3d_gps_linux.gpr > gcc -c -gnat2012 -gnato -fstack-check -gnatwkmpz -fno-strict-aliasing > -g -gnatVa -gnatecdebug.pra -gnatyhiknp -I- > -gnatA /ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/unzip/unzip= .adb >=20 > gcc -c -gnat2012 -gnato -fstack-check -gnatwkmpz -fno-strict-aliasing > -g -gnatVa -gnatecdebug.pra -gnatyhiknp -I- > -gnatA /ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/unzip/unzip= -streams.adb > unzip-decompress.ads:45:29: reserved word "some" cannot be used= as identifier > unzip-decompress.ads:45:29: reserved word "some" cannot be used= as identifier > gnatmake: "/ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/un= zip/unzip.adb" compilation error > gnatmake: "/ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/un= zip/unzip-streams.adb" compilation error > > Thanks for pointing that, I'll make the appropriate change! Cheers G.