comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@NoSPAM.cogeco.ca>
Subject: Re: GNAT on a multiboot computer
Date: Fri, 29 Oct 2004 13:25:44 -0400
Date: 2004-10-29T13:25:44-04:00	[thread overview]
Message-ID: <C1vgd.23556$Qs6.1790309@news20.bellglobal.com> (raw)
In-Reply-To: <ud5z2szam.fsf@no.email.thanks.invalid>

Anders Wirzenius wrote:

> "Warren W. Gay VE3WWG" <ve3wwg@NoSPAM.cogeco.ca> writes:
>>Adrien Plisson wrote:
>>>Anders Wirzenius wrote:
...
>>>>To me it seems that this configuration has to be pretty much the same as
>>>>what you get when you install GNAT on another partition than on the
>>>>traditional C:. I have never done such an installation of GNAT.
>>>
>>>i think i never installed GNAT on the traditional location. there is
>>>no problem until you want to compile and install some add-ons like
>>>glade, polyorb or such, since cygwin tools do not like long
>>>filenames and weird locations. in this case 'you have to find the
>>>way'...
>>
>>I have developed a fondness for C:\opt for non-cygwin software:
>>
>>   c:\opt\gnat
> 
> So what environmental values did your installation create?
> PATH=?
> ADA_INCLUDE_PATH=?
> What's in the registry under [HKEY_LOCAL_MACHINE\SOFTWARE\Ada Core
> Technologies]?

GNAT is non-cygwin, so it takes Windows pathnames as I
specified it at install time. But here
are my registry entries that you were interested in:

[HKEY_LOCAL_MACHINE\SOFTWARE\Ada Core Technologies\GNAT]
"ROOT"="C:\\opt\\gnat"
"FOLDER"="GNAT Public Version"
"GUID"="{CB2174B0-F84A-11D4-ACAA-0010A4E31500}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Ada Core Technologies\GNAT\3.15p]

[HKEY_LOCAL_MACHINE\SOFTWARE\Ada Core Technologies\GNAT\Standard Libraries]
"WIN32ADA"="C:\\opt\\gnat\\Bindings\\Win32Ada"
"WIN32"="C:\\opt\\gnat\\lib\\win32"


Obviously there is some care required when choosing compilers
when working in the cygwin bash shell. You either don't use
GNAT, or you use it by putting the bin directory first on the
PATH (or at least before cygwin's gcc).

To make things more complicated now, you can install ada-aware
versions of gcc under cygwin, as I have done. So you do have
to keep your wits about you!

> ...?
> If I make manually similar configuration entries as you got when
> installing in c:\opt then I should be safe. (?)
> I succeeded to get GNAT working with help from Adrien :), but I am
> curious about how my entries is compared to for instance the result of
> an installation to c:\opt, which is not the default (C:\GNAT).

ACT's own install program lets you choose - so just choose away! Just
avoid blanks in the directory names. 8-)

In a multiboot situation, if the drive letter changes, this will
create problems I think (I guess that was your point). Without
having thought about this much, one possible solution is to
use *.reg files as outlined below (using regedit):

Save your registry settings like I did above. When you boot
the OS that needs it as D: instead of C:, run an edited version
of your gnat.reg file that you saved. When you start the other
OS, run its version of gnat.reg that specifies C: instead. That
will at least let you switch between the two.

To fix the path, you'll have to locate another registry entry,
and do the same thing.

> I don't want to change the installation on the XP hardisk (see previous
> postings). I just want to make necessary configurations on the win 2003
> hardisk to be able to use the existing GNAT installation when the
> computer is booted as a win 2003 installation.

Well, the *.reg files I mentioned above might work good enough
for you. Save the registry entries in question and substitute
drives as appropriate. I think you might be able to put the *.reg
files in your startup folder, but if not, you can double-click them
to make them "effective" (I am sure there are other ways this can
be automated).


> The 2003 installation is only used for a .NET course and is likely to be
> deleted when the training is over (I prefer AWS over .NET :)). 
> 
> Anders

Keep the original .reg files so that you can "revert" back to the
original settings.

Hope that helps, Warren.
-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg



  reply	other threads:[~2004-10-29 17:25 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26  7:03 GNAT on a multiboot computer Anders Wirzenius
2004-10-26  7:31 ` Adrien Plisson
2004-10-26  7:51   ` Anders Wirzenius
2004-10-26  9:13     ` Adrien Plisson
2004-10-27  6:55       ` Anders Wirzenius
2004-10-27  8:03         ` Adrien Plisson
2004-10-28 16:25           ` Warren W. Gay VE3WWG
2004-10-28 17:13             ` Pascal Obry
2004-10-29  6:01             ` Martin Krischik
2004-10-29  8:32               ` Anders Wirzenius
2004-10-29  9:31                 ` Adrien Plisson
2004-10-29 14:59                   ` Warren W. Gay VE3WWG
2004-10-29 16:14                   ` Larry Kilgallen
2004-10-31  9:21                   ` Stephane Riviere
2004-10-29  9:52                 ` Martin Krischik
2004-10-29 10:03                   ` Anders Wirzenius
2004-10-29 12:04                     ` Martin Krischik
2004-10-29 11:38                   ` Hyman Rosen
2004-10-29 12:02                     ` Martin Krischik
2004-10-29 13:39                       ` Alex R. Mosteo
2004-10-29 13:55                       ` Adrien Plisson
2004-10-29 15:12                     ` Directory Names (was: GNAT on a multiboot computer) Warren W. Gay VE3WWG
2004-10-29 15:55                     ` GNAT on a multiboot computer Björn Persson
2004-10-29 12:15               ` Pascal Obry
2004-10-29 16:40                 ` Martin Krischik
2004-10-30  8:26                   ` Pascal Obry
2004-10-29 17:11                 ` Warren W. Gay VE3WWG
2004-10-29 15:05               ` Warren W. Gay VE3WWG
2004-10-29  8:29             ` Anders Wirzenius
2004-10-29 17:25               ` Warren W. Gay VE3WWG [this message]
2004-10-30  7:42                 ` Adrien Plisson
2004-11-01  9:26                   ` Anders Wirzenius
2004-11-01 14:21                   ` Warren W. Gay VE3WWG
2004-10-26 12:39 ` Stephane Riviere
2004-10-27  7:12   ` Anders Wirzenius
replies disabled

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