From: Bruce or Tracy Jacobs <bljacobs2@mchsi.com>
Subject: Re: OpenGL Ada
Date: Sun, 15 Jun 2003 23:01:56 GMT
Date: 2003-06-15T23:01:56+00:00 [thread overview]
Message-ID: <3EECFDD9.D661F2AA@mchsi.com> (raw)
In-Reply-To: 20030615233402.5c0f65d5.david@realityrift.com
Try this......
<PRE>
1. Download and install Ada compiler and Windows 32 bit interface for
Windows:
(a) ftp://cs.nyu.edu/pub/gnat/3.15p/winnt/gnat-3.15p-nt.exe
(installed at "C:\GNAT" for this example)
(b) ftp://cs.nyu.edu/pub/gnat/3.15p/winnt/gnatwin-3.15p.exe
(installed at "C:\GNAT\bindings" for this example)
2. Download and install Ada OpenGL interface:
(a) http://perso.wanadoo.fr/pascal.obry/archive/glut32.tar.gz
(installed at "C:\GNAT\glut32.jar" for this example)
Link found at http://perso.wanadoo.fr/pascal.obry/contrib.html under
"GLUT for GNAT NT".
Be sure to run "make" on the "C:\GNAT\glut32.jar\lib" directory.
Refer
to the "readme"
file after uncompressing on how to run the "make" command.
3. (optional) Download and install Ada GNAT Integrated Development
Environment:
(1)
ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/adagide/adagide-install.exe
4. Here are the paths which are now used:
* GNAT compiler (gnat-3.15p-nt.exe) is installed at:
C:\GNAT
* GNAT Win32 interface (gantwin-3.15p.exe) is installed at:
C:\GNAT\bindings\win32ada
* GNAT glut32 interface (glut32.tar.gz) uncompress and installed at:
C:\GNAT\glut32.tar
* copy C:\GNAT\glut32.tar\lib\GLUT32.dll into the SYSTEM32 folder.
* (optional) AdaGide is intalled into its default installation
folder.
5. Since I prefer to build executables using BAT files, here is an
example
of the BAT
file I used to build a DEMO Ada program found in C:
\GNAT\glut32.tar\demos.
* C:\GNAT\glut32.tar\demos\build_it.bat
set
ADA_INCLUDE_PATH=C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adainclude
set
ADA_OBJECTS_PATH=C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib
set ADA_LIBRARY_PATH=C:\GNAT\lib;%ADA_INCLUDE_PATH%
set WIN32ADA=C:\GNAT\bindings\win32ada
set
ADA_GLUT32_PATH=C:\GNAT\glut32.tar\lib;C:\GNAT\glut32.tar\include
set MY_WORKING_DIR=C:\GNAT\glut32.tar\demos
set
ADA_INCLUDE_PATH=%ADA_INCLUDE_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%
set
ADA_OBJECTS_PATH=%ADA_OBJECTS_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%
set
ADA_LIBRARY_PATH=%ADA_LIBRARY_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%
set INCLUDES=-I%ADA_INCLUDE_PATH% -I%ADA_OBJECTS_PATH%
-I%ADA_LIBRARY_PATH%
set OPTS=-O3 -gnatn
set LINK_ARGS=-largs -luser32 -lgdi32 -lcomdlg32 -lwinmm -L../lib
-lglu32 -lopengl32 -lglut32
gnatmake %OPTS% %INCLUDES% ada_sphere %LINK_ARGS%
gnatmake %OPTS% %INCLUDES% csg %LINK_ARGS%
gnatmake %OPTS% %INCLUDES% double %LINK_ARGS%
* Double-clicking "build_it.bat" should build 3 executables which
interface with OpenGL
performing various OpenGL functions. These paths may be simplified
even further within
this BAT file, or even defined at the Windows system level, if so
desired.
</PRE>
David Holm wrote:
>
> http://adaopengl.sf.net/
>
> On Sun, 15 Jun 2003 22:02:05 +0100
> "Robin Neatherway" <rn114@york.ac.uk> wrote:
>
> > Having learnt Ada fairly recently, I am now interested in doing some
> > graphics work with it, and I am unable to find an OpenGL binding for Ada or
> > any other appropriate tool.
> >
> > So, I guess I have two questions - firstly how should I go about starting to
> > use graphics with Ada, and secondly where can I get the tools to do it?
> >
> > Thanks,
> > Robin
> >
> >
next prev parent reply other threads:[~2003-06-15 23:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-15 21:02 OpenGL Ada Robin Neatherway
2003-06-15 21:34 ` David Holm
2003-06-15 23:01 ` Bruce or Tracy Jacobs [this message]
2003-06-16 18:29 ` Robin Neatherway
2003-06-16 7:55 ` Preben Randhol
2003-06-16 10:13 ` David Holm
2003-06-16 10:27 ` Preben Randhol
-- strict thread matches above, loose matches on Subject: below --
1996-12-16 0:00 OpenGl & Ada Louis Granger
1996-12-17 0:00 ` Chip Richards
1996-12-20 0:00 ` Wes Embry
1996-12-21 0:00 ` Chip Richards
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox