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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.230 with SMTP id pz6mr3907626pbc.3.1342248424364; Fri, 13 Jul 2012 23:47:04 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.181.72 Path: l9ni11632pbj.0!nntp.google.com!news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!nntpfeed.proxad.net!78.192.181.72.MISMATCH!gegeweb.42!gegeweb.eu!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: error running openGL/Ada demo from GLOBE_3D using GNAT 2012 Date: Sat, 14 Jul 2012 01:47:00 -0500 Organization: Aioe.org NNTP Server Message-ID: 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-14T01:47:00-05:00 List-Id: 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