comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Cc: nma@12000.org
Subject: Re: error running openGL/Ada demo from GLOBE_3D using GNAT 2012
Date: Sat, 14 Jul 2012 12:40:10 -0700 (PDT)
Date: 2012-07-14T12:40:10-07:00	[thread overview]
Message-ID: <c9282251-1c60-4bed-9179-dec7adf5ca3b@googlegroups.com> (raw)
In-Reply-To: <jtsc1b$2sg$1@speranza.aioe.org>

Le samedi 14 juillet 2012 19:59:09 UTC+2, Nasser M. Abbasi a écrit :

> hi  Gautier;
> 
> 2 issues:
> 
> 1) I had unziped those file before (I did not know) when I unzip
> files, I unzip them and delete the zip files).
> 
> I restored the zip files, and run mini and now I get this error
> 
> ----------------------------
> &gt;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
> &gt;./mini
> OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x9d00de0
> OpenGL Warning: Retry with 0x8002 returned 0 visuals
> 
> Execution terminated by unhandled exception
> Exception name: STORAGE_ERROR
> Message: stack overflow or erroneous memory access
> Call stack traceback locations:
> 0x811d74e
> &gt;
> -------------------------
> 
> any idea please?

I have tested today latest changes on Windows 7 32 bit, Windows 7 64 bit, Ubuntu 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 control anymore on names and their case-[in]sensitiveness...
What happens when you run the Linux executable that is shipped with the whole stuff ? - I mean: ./globe3d_demo_linux ?

> ------------------------
> &gt;ls -lrt Face*.bmp
> -rwxrwxrwx 1 me me 5174 Apr 25  2006 Face1.bmp
> -rwxrwxrwx 1 me me 5174 Apr 25  2006 Face3.bmp
> &gt;pwd
> /ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/demo/g3demo_global_resources
> &gt;
> ------------------------------------
> 
> 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
> 
> 
> &gt;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
> 
> 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 &quot;some&quot; cannot be used as identifier
> unzip-decompress.ads:45:29: reserved word &quot;some&quot; cannot be used as identifier
> gnatmake: &quot;/ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/unzip/unzip.adb&quot; compilation error
> gnatmake: &quot;/ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/unzip/unzip-streams.adb&quot; compilation error
> &gt;

Thanks for pointing that, I'll make the appropriate change!
Cheers
G.



  reply	other threads:[~2012-07-14 19:40 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 [this message]
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
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