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: Sat, 14 Jul 2012 12:59:09 -0500
Date: 2012-07-14T12:59:09-05:00	[thread overview]
Message-ID: <jtsc1b$2sg$1@speranza.aioe.org> (raw)
In-Reply-To: 4b22c809-4d41-4d0d-8824-4c335e4e6957@googlegroups.com

On 7/14/2012 9:16 AM, gautier_niouzes@hotmail.com wrote:
> Hi Nasser,
>
>> It seems like a configuration issue? May be I need to set
>> an environment variable or path or something for it to work?
>
> Either (1) the archive file "g3demo_global_resources.zip" is not in
>the same directory as the "mini" executable, or for (2) some reason the
>file "face1.bmp" is no more in the mentioned archive. If the archive
>file is broken, you would get another message.
>
> I have improved the diagnostics (on the globe_3d repository version), and for the case (1) you would get now:
> Execution terminated by unhandled exception
> Exception name: GLOBE_3D.DATA_FILE_NOT_FOUND
> Message: g3demo_global_resources.zip
>
> Hope this helps
> Gautier
>


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

----------------------------
>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

Execution terminated by unhandled exception
Exception name: STORAGE_ERROR
Message: stack overflow or erroneous memory access
Call stack traceback locations:
0x811d74e
>
-------------------------

any idea please?

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?

------------------------
>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_resources
>
------------------------------------

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/  ?

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


>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 "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/unzip/unzip.adb" compilation error
gnatmake: "/ada_related/globe_3d_release_15_aug_2011/GLOBE_3D/src/unzip/unzip-streams.adb" compilation error
>

thanks,
--Nasser



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