comp.lang.ada
 help / color / mirror / Atom feed
* OpenGL and SDL
@ 2011-05-28 17:34 Joseph Montanez
  2011-05-28 18:27 ` Ludovic Brenta
  2011-05-29  8:15 ` Pascal Obry
  0 siblings, 2 replies; 10+ messages in thread
From: Joseph Montanez @ 2011-05-28 17:34 UTC (permalink / raw)


I was hoping to have those two running with Ada, however Ada Open GL
and Ada SDL are using gnat4.1. Resulting in:

gcc: error trying to exec 'gnat1': execvp: No such file or directory

I am pulling the Repositories from github:
https://github.com/io7m/coreland-sdl-ada
https://github.com/io7m/coreland-opengl-ada

Do I have to use older versions of gnat to use these libraries?

I've tried Header translation too, but I get
cc1: error: unrecognized command line option "-fdump-ada-spec"

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Running-the-binding-generator.html#Running-the-binding-generator




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

* Re: OpenGL and SDL
  2011-05-28 17:34 OpenGL and SDL Joseph Montanez
@ 2011-05-28 18:27 ` Ludovic Brenta
  2011-05-29  5:24   ` Joseph Montanez
  2011-05-29  8:15 ` Pascal Obry
  1 sibling, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2011-05-28 18:27 UTC (permalink / raw)


Joseph Montanez writes:
> I was hoping to have those two running with Ada, however Ada Open GL
> and Ada SDL are using gnat4.1. Resulting in:
>
> gcc: error trying to exec 'gnat1': execvp: No such file or directory

On what platform and what compiler (version of gnat) ?

-- 
Ludovic Brenta.



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

* Re: OpenGL and SDL
  2011-05-28 18:27 ` Ludovic Brenta
@ 2011-05-29  5:24   ` Joseph Montanez
  2011-05-29  9:40     ` Ludovic Brenta
  0 siblings, 1 reply; 10+ messages in thread
From: Joseph Montanez @ 2011-05-29  5:24 UTC (permalink / raw)


> On what platform and what compiler (version of gnat) ?

Ubuntu 11.04
GNAT 4.4.5



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

* Re: OpenGL and SDL
  2011-05-28 17:34 OpenGL and SDL Joseph Montanez
  2011-05-28 18:27 ` Ludovic Brenta
@ 2011-05-29  8:15 ` Pascal Obry
  2011-05-29  8:40   ` Joseph Montanez
  1 sibling, 1 reply; 10+ messages in thread
From: Pascal Obry @ 2011-05-29  8:15 UTC (permalink / raw)
  To: Joseph Montanez

Le 28/05/2011 19:34, Joseph Montanez a �crit :
> I was hoping to have those two running with Ada, however Ada Open GL
> and Ada SDL are using gnat4.1. Resulting in:
>
> gcc: error trying to exec 'gnat1': execvp: No such file or directory

This generally means that you don't have gnat installed with the used 
gcc. What the output for:

    $ which gcc
    $ which gnatmake

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




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

* Re: OpenGL and SDL
  2011-05-29  8:15 ` Pascal Obry
@ 2011-05-29  8:40   ` Joseph Montanez
  2011-05-29  8:55     ` Pascal Obry
  0 siblings, 1 reply; 10+ messages in thread
From: Joseph Montanez @ 2011-05-29  8:40 UTC (permalink / raw)


>     $ which gcc
/usr/bin/gcc
>     $ which gnatmake
/usr/bin/gnatmake



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

* Re: OpenGL and SDL
  2011-05-29  8:40   ` Joseph Montanez
@ 2011-05-29  8:55     ` Pascal Obry
  0 siblings, 0 replies; 10+ messages in thread
From: Pascal Obry @ 2011-05-29  8:55 UTC (permalink / raw)
  To: Joseph Montanez

Le 29/05/2011 10:40, Joseph Montanez a �crit :
>>      $ which gcc
> /usr/bin/gcc
>>      $ which gnatmake
> /usr/bin/gnatmake

And can you compile:

$ cat dummy.adb
procedure Dummy is
begin
    null;
end Dummy;

$ gnatmake dummy

If not then the Ada compiler seems broken on your computer. BTW, what 
the output for:

$ find /usr -name "gnat1"

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




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

* Re: OpenGL and SDL
  2011-05-29  5:24   ` Joseph Montanez
@ 2011-05-29  9:40     ` Ludovic Brenta
  2011-05-29 15:23       ` Joseph Montanez
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2011-05-29  9:40 UTC (permalink / raw)


Joseph Montanez <sutabi@gmail.com> writes:
>> On what platform and what compiler (version of gnat) ?
>
> Ubuntu 11.04
> GNAT 4.4.5

Using the Debian packages then.  I have a hunch but you'll need to give
full details to be sure.  So what is the *exact* output of:

#!/bin/sh
dpkg -l "gcc*" "gnat*" | grep ^i
ls -lF $(which gcc)
ls -lF $(which gnatgcc)
cd coreland-sdl-ada; make
cd coreland-sdl-ada; make CC=gnatgcc  # <- that's my hunch

-- 
Ludovic Brenta.



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

* Re: OpenGL and SDL
  2011-05-29  9:40     ` Ludovic Brenta
@ 2011-05-29 15:23       ` Joseph Montanez
  2011-05-29 15:52         ` Joseph Montanez
  2011-05-29 16:26         ` Pascal Obry
  0 siblings, 2 replies; 10+ messages in thread
From: Joseph Montanez @ 2011-05-29 15:23 UTC (permalink / raw)


> $ gnatmake dummy
gcc-4.4 -c dummy.adb
gnatbind -x dummy.ali
gnatlink dummy.ali

> $ find /usr -name "gnat1"
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.4/gnat1


> #!/bin/sh
> dpkg -l "gcc*" "gnat*" | grep ^i
> ls -lF $(which gcc)
> ls -lF $(which gnatgcc)
> cd coreland-sdl-ada; make
> cd coreland-sdl-ada; make CC=gnatgcc  # <- that's my hunch

ii  gcc
4:4.5.2-1ubuntu3                           The GNU C compiler
ii  gcc-4.4
4.4.5-15ubuntu1                            The GNU C compiler
ii  gcc-4.4-base
4.4.5-15ubuntu1                            The GNU Compiler Collection
(base package)
ii  gcc-4.5
4.5.2-8ubuntu4                             The GNU C compiler
ii  gcc-4.5-base
4.5.2-8ubuntu4                             The GNU Compiler Collection
(base package)
ii  gnat
4.4+1ubuntu9                               The GNU Ada compiler
ii  gnat-4.4
4.4.5-15ubuntu2                            The GNU Ada compiler
ii  gnat-4.4-base
4.4.5-15ubuntu2                            The GNU Compiler Collection
(gnat base package)
ii  gnat-gps
4.3-5ubuntu4                               The GNAT Programming System
- advanced IDE for C and Ada
ii  gnat-gps-doc
4.3-5ubuntu4                               The GNAT Programming System
- documentation
lrwxrwxrwx 1 root root 7 2011-04-24 13:47 /usr/bin/gcc -> gcc-4.5*
lrwxrwxrwx 1 root root 7 2011-04-24 13:48 /usr/bin/gnatgcc -> gcc-4.4*
./check-deps
./ada-compile sdl.adb
gcc: error trying to exec 'gnat1': execvp: No such file or directory
make: *** [sdl.ali] Error 1
cd: 6: can't cd to coreland-sdl-ada
./check-deps
./ada-compile sdl.adb
gcc: error trying to exec 'gnat1': execvp: No such file or directory
make: *** [sdl.ali] Error 1



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

* Re: OpenGL and SDL
  2011-05-29 15:23       ` Joseph Montanez
@ 2011-05-29 15:52         ` Joseph Montanez
  2011-05-29 16:26         ` Pascal Obry
  1 sibling, 0 replies; 10+ messages in thread
From: Joseph Montanez @ 2011-05-29 15:52 UTC (permalink / raw)


Never guys I got it! Adding CC=gnatgcc did nothing but I ended up conf-
adacomp and it worked fine!

SDL Ada
 * I edited conf-adacomp to be "gnatgcc" instead of "gcc"

OpenGL Ada
 * I edited conf-adacomp to be "gnatgcc" instead of "gcc"




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

* Re: OpenGL and SDL
  2011-05-29 15:23       ` Joseph Montanez
  2011-05-29 15:52         ` Joseph Montanez
@ 2011-05-29 16:26         ` Pascal Obry
  1 sibling, 0 replies; 10+ messages in thread
From: Pascal Obry @ 2011-05-29 16:26 UTC (permalink / raw)
  To: Joseph Montanez

Le 29/05/2011 17:23, Joseph Montanez a �crit :
> lrwxrwxrwx 1 root root 7 2011-04-24 13:47 /usr/bin/gcc ->  gcc-4.5*
> lrwxrwxrwx 1 root root 7 2011-04-24 13:48 /usr/bin/gnatgcc ->  gcc-4.4*

That's the problem I suspected. GCC is pointing to version 4.5 whereas 
your Ada compiler is version 4.4.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




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

end of thread, other threads:[~2011-05-29 16:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-28 17:34 OpenGL and SDL Joseph Montanez
2011-05-28 18:27 ` Ludovic Brenta
2011-05-29  5:24   ` Joseph Montanez
2011-05-29  9:40     ` Ludovic Brenta
2011-05-29 15:23       ` Joseph Montanez
2011-05-29 15:52         ` Joseph Montanez
2011-05-29 16:26         ` Pascal Obry
2011-05-29  8:15 ` Pascal Obry
2011-05-29  8:40   ` Joseph Montanez
2011-05-29  8:55     ` Pascal Obry

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