comp.lang.ada
 help / color / mirror / Atom feed
* error running openGL/Ada demo from GLOBE_3D using GNAT 2012
@ 2012-07-14  6:47 Nasser M. Abbasi
  2012-07-14 14:16 ` gautier_niouzes
  0 siblings, 1 reply; 14+ messages in thread
From: Nasser M. Abbasi @ 2012-07-14  6:47 UTC (permalink / raw)



has anyone managed to run the demos Ada openGL demos in GLOBE3D?

I downloaded the latest GLOBE_3D from

http://sourceforge.net/projects/globe3d/

then went to the demo folder, and build using the linux gpr
file there. All went OK:

>gnatmake -P globe_3d_gps_linux.gpr

Now, I am following the direction in the .html that comes in the
above tar file, and when I try a demo, I get an errors:

-------------------------
>./mini

Execution terminated by unhandled exception
Exception name: GLOBE_3D.TEXTURES.UNDEFINED_TEXTURE_NAME
Message:  Texture: [face1]
Call stack traceback locations:
0x80cad1b 0x80b3fc1 0x80b41a4 0x80b379d 0x804ce2d

----------------------
>./globe_3d_demo

Execution terminated by unhandled exception
Exception name: GLOBE_3D.TEXTURES.UNDEFINED_TEXTURE_NAME
Message:  Texture: [face1]
Call stack traceback locations:
0x81858eb 0x8191a23 0x8191e91 0x818f932 0x804cf41

-----------------------
>./g3dem_tb

--------------------[ Unhandled exception ]-----------------
  > Name of exception . . . . .: GLOBE_3D.TEXTURES.UNDEFINED_TEXTURE_NAME
  > Message for exception . . .:  Texture: [face1]
  > Trace-back of call stack:
0x08185A07 globe_3d.textures.texture_id at globe_3d-textures.adb:239
0x08191B3F globe_3d_demo.create_objects.basic_face at globe_3d_demo.adb:281
0x08191FAD globe_3d_demo.create_objects at globe_3d_demo.adb:299
0x0818FA4E globe_3d_demo at globe_3d_demo.adb:1111
0x0819D43D g3dem_tb at tb_wrap.adb:13
0x0804D05F main at b~g3dem_tb.adb:537

0x08185A07 0x08191B3F 0x08191FAD 0x0818FA4E 0x0819D43D 0x0804D05F

-----------------------------------

I am on linux mint,
>uname -a
Linux me-VirtualBox 3.2.0-23-generic #36-Ubuntu

using GNAT 2012.  I do not understand the above error.

The function in the above .adb file is this (which generated
the error)

globe_3d-textures.adb:239

--------------------------------------
function Texture_ID( name: String ) return Image_ID is
     up_name: constant String:= To_Upper(name);
   begin
     return Texture_Name_Mapping.Element(
             texture_2d_infos.map,
             Ada.Strings.Unbounded.To_Unbounded_String(Trim(up_name,both)));
   exception
     when Constraint_Error =>
       raise Undefined_texture_name with " Texture: [" & Trim(name,both) & ']';
   end Texture_ID;
-------------------------

It seems like a configuration issue? May be I need to set
an environment variable or path or something for it to work?

thanks,
--Nasser



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-07-22 23:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-07-16  2:11                   ` gautier_niouzes
2012-07-16  2:21                     ` Nasser M. Abbasi
2012-07-16  9:07                       ` gautier_niouzes

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