comp.lang.ada
 help / color / mirror / Atom feed
* Gnat 3.41 and Adabindx?
@ 2004-12-05  9:44 Freejack
  2004-12-05 15:02 ` Luke A. Guest
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Freejack @ 2004-12-05  9:44 UTC (permalink / raw)


I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
patched Adabindx to work with it. If not, I'll grok the sources and try to
put together a decent patch.

I know there are bindings to Gtk and such. I'll use those later. Right now
I'm interested in OpenMotif and straight X/Xlib/Xt hacking.

On a side note, has anyone done any straight framebuffer hacking using
Ada? I've been using C, but I wanna try it with Ada. Using the Linux FB
drivers right now. Should be an interesting experiment with Ada's
representation clauses as far as pixel pushing, shading, and such.
Shouldn't be too difficult to get started as the Vesa/VBE standards are
pretty well documented.

Ideas?

Freejack



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

* Re: Gnat 3.41 and Adabindx?
  2004-12-05  9:44 Gnat 3.41 and Adabindx? Freejack
@ 2004-12-05 15:02 ` Luke A. Guest
  2004-12-05 17:49   ` Luke A. Guest
  2004-12-05 22:43 ` Guillaume Foliard
  2004-12-24 11:24 ` Bobby D. Bryant
  2 siblings, 1 reply; 6+ messages in thread
From: Luke A. Guest @ 2004-12-05 15:02 UTC (permalink / raw)


On Sun, 05 Dec 2004 09:44:09 +0000, Freejack wrote:

> I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
> patched Adabindx to work with it. If not, I'll grok the sources and try to
> put together a decent patch.

Haven't tried it...yet.

> I know there are bindings to Gtk and such. I'll use those later. Right now
> I'm interested in OpenMotif and straight X/Xlib/Xt hacking.
> 
> On a side note, has anyone done any straight framebuffer hacking using
> Ada? I've been using C, but I wanna try it with Ada. Using the Linux FB
> drivers right now. Should be an interesting experiment with Ada's
> representation clauses as far as pixel pushing, shading, and such.
> Shouldn't be too difficult to get started as the Vesa/VBE standards are
> pretty well documented.

Try creating your own bindings for it, it's not that difficult to do.

Luke.




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

* Re: Gnat 3.41 and Adabindx?
  2004-12-05 15:02 ` Luke A. Guest
@ 2004-12-05 17:49   ` Luke A. Guest
  0 siblings, 0 replies; 6+ messages in thread
From: Luke A. Guest @ 2004-12-05 17:49 UTC (permalink / raw)


On Sun, 05 Dec 2004 15:02:31 +0000, Luke A. Guest wrote:

> On Sun, 05 Dec 2004 09:44:09 +0000, Freejack wrote:
> 
>> I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
>> patched Adabindx to work with it. If not, I'll grok the sources and try to
>> put together a decent patch.
> 
> Haven't tried it...yet.

It's completely broken as it uses internal GNAT packages which aren't
portable. Strangely enough though, the compiler chokes on a package saying
it can't find it, and later on (if you get rid of the error), it chokes
again, saying it's an internal/non-portable package.

Anyway, I'm going to use my C routines and import them into my Ada
project.

Luke.




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

* Re: Gnat 3.41 and Adabindx?
  2004-12-05  9:44 Gnat 3.41 and Adabindx? Freejack
  2004-12-05 15:02 ` Luke A. Guest
@ 2004-12-05 22:43 ` Guillaume Foliard
  2004-12-05 23:23   ` Luke A. Guest
  2004-12-24 11:24 ` Bobby D. Bryant
  2 siblings, 1 reply; 6+ messages in thread
From: Guillaume Foliard @ 2004-12-05 22:43 UTC (permalink / raw)


Freejack wrote:

> I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
> patched Adabindx to work with it. If not, I'll grok the sources and try to
> put together a decent patch.

I have a small patch for recent GNAT versions. I've added a binding to
MIT-SHM as well. I can mail it to you.

Guillaume



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

* Re: Gnat 3.41 and Adabindx?
  2004-12-05 22:43 ` Guillaume Foliard
@ 2004-12-05 23:23   ` Luke A. Guest
  0 siblings, 0 replies; 6+ messages in thread
From: Luke A. Guest @ 2004-12-05 23:23 UTC (permalink / raw)


On Sun, 05 Dec 2004 23:43:35 +0100, Guillaume Foliard wrote:

> Freejack wrote:
> 
>> I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
>> patched Adabindx to work with it. If not, I'll grok the sources and try to
>> put together a decent patch.
> 
> I have a small patch for recent GNAT versions. I've added a binding to
> MIT-SHM as well. I can mail it to you.
> 
> Guillaume

Mail it to me if you want and I'll try it out.

Does it contain bindings for the <X11/extensions/xf86vmode.h> extension?

Thanks,
Luke.




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

* Re: Gnat 3.41 and Adabindx?
  2004-12-05  9:44 Gnat 3.41 and Adabindx? Freejack
  2004-12-05 15:02 ` Luke A. Guest
  2004-12-05 22:43 ` Guillaume Foliard
@ 2004-12-24 11:24 ` Bobby D. Bryant
  2 siblings, 0 replies; 6+ messages in thread
From: Bobby D. Bryant @ 2004-12-24 11:24 UTC (permalink / raw)


On Sun, 05 Dec 2004, Freejack <freejack@nowhere.net> wrote:

> I'm using the Gentoo Gnat 3.41 package and was wondering if anyone has
> patched Adabindx to work with it. If not, I'll grok the sources and try to
> put together a decent patch.

Assuming you're having the same problem I had, you can get the fix from
the "Additional Comment #1" attachment at
http://bugs.gentoo.org/show_bug.cgi?id=74268

I named it adabindx-0.7.2-r1, but it has not been added to Gentoo yet.
Whether you use it, or just add the described line to the 0.7.2 ebuild,
you'll have to tweak the Manifest to get emerge to accept it.  Moreover,
I have found that rsynch trashes the patch, so I keep copies that I can
throw back into /usr/portage after an rsync.


Also, if you use "-pipe" in your CFLAGS in /etc/make.conf you'll need to
look at the last comment on http://bugs.gentoo.org/show_bug.cgi?id=61900

There are several other packages in dev-ada that won't compile for me as-is,
but debugging them hasn't boiled up to the top of my priority list yet.

Good luck!

-- 
Bobby Bryant
Austin, Texas



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

end of thread, other threads:[~2004-12-24 11:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-05  9:44 Gnat 3.41 and Adabindx? Freejack
2004-12-05 15:02 ` Luke A. Guest
2004-12-05 17:49   ` Luke A. Guest
2004-12-05 22:43 ` Guillaume Foliard
2004-12-05 23:23   ` Luke A. Guest
2004-12-24 11:24 ` Bobby D. Bryant

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