Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Karlos on September 12, 2003, 08:59:51 PM
-
Hi,
Due to my increasing demand for better C++ support, I've recently decided to move my entire code base from StormC / VBCC to gcc 2.95.3.
I have downloaded the following files:
binutils-2.9.1-bin.tgz
cvs-1.10-bin.tgz
gcc-2.95.3-4-bin.tgz
make-3.77-bin.tgz
In addition, I have obtained the WarpOS 2.95.3 archives:
binutils_ppc-2.9.1.lzx
gcc-2.95.3-wos.lzx
libnixppc.lzx
newinc.lha
pgcc-2.95.3-base.lzx
pgcc-2.95.3-m68k.lzx
pgcc-2.95.3-wos.lzx
warpcollect.lha
Finally I got the v48 ixemul library.
Humiliating though it is to have to admit, installation of gcc 2.95.3 from the above archives has me stumped. I'm afraid I'm a bit too used to point and click installation...
It seems there are lots of bin/ directories etc buried in odd places, platform folders etc. No matter what I extract or where to, attempting to compile anything always results in 'gcc installation error' - ususally it cant find files and such.
I have looked at the guide files that came in the m68k archives but how to recompe gcc for solaris and what not, isn't exacltly what I need to know just now ;-)
Can anybody send me a list of what exactly is supposed to go where and in which order (assuming some files get overwritten) and what paths/assigns/env vars are needed to get it working correctly?
My basic requirement is to create m68k and warpos executables and linker libraries from C++ code (with the occasional assembler file)...
I did have this set up a while ago (and remembered making a mess of it at least twice then), but I recently changed hard drives and need to reinstall. This time I figured I'd ask for help to get it set up :-)
Thanks in advance...
Dufus P. Numbnutz (no way related to the Glaswegian Mr. Numbnutz)
-
lamer as I am, I downloaded Louise's gcc distro and copied the assigns and ADE directories and some files from s:
It works and it's easy. I wonder why no one has written a proper installer...
Hopefully Olaf's gcc should be quite easier to install :-)
-
@karlos
Hmmmmm, now let me try to remember how that worked for me.
I downloded the whole geekgadgets (minus the alpha stuff ;-) ).
There was a file called boot.lha (or something like that).
This has to be unpacked,as it includes all needed for the
final install.
In there is a readme, which also includes a small shell-script.
Edit that to fit your pathes (and you might need to include
the dir into your path).
Now type "sh" in shell,this should bring up a "$" as prompt as
you are now in some kind of unix-shell.
Execute the install-script, and watch the tar.gz-files being
unpacked.
Copy the assigns from the readme (the one in boot.lha), reboot
and you should be ready to compile simple console-apps.
Now you need the OS-includes from the NDK3.9 or a DEV-CD, which
go into include/os-include,and you should be all set.
-
Ok, I'll hunt for boot...So what about the warpos gcc archives?
-edit-
Is there some unwritten rule that says all C++ coders must be Unix obssesed? A normal install isn't too much to ask for :-)
-
@Karlos
GCC is UNIX,sono suprise that it feels like unix .....
The GG-installdoes include a ppc-compiler,I'm just not sure wether
it's for WuP or PuP ....
Want an installer ?
Get yourself the 1st Geekgadget-CD by Cronus (not related) aka.Fred Fish
and you get one. Only prob is that the CD isfrom 97 or so ....
Or get the pure PPC-compiler as that will also come with installer,
and even a special version of GoldED for free.
I know you want it, and you should know it to,there is no way of
escaping the smurf-armada :-P :-D ;-)
-
There are PPC binaries here:
http://www.kolumbus.fi/jami.laakkonen/ppc/
--
Glenn Hisdal
-
Heh, I must remember to log out of here next time....
This 'pure ppc' version with installer, where would I that from, then? Does it still compile m68k code too?
Realistically I need to be able to create both m68k and ppc (wos) targets.
I did download golded from their site recently too. The installer mentions gcc but as the archive did not inlude it, it simply skips it.
It's not that I mind manually installing the files from the archives I downloaded, I just need to know where the hell to put them all, and what assigns etc. are required.
There are bin folders under the root folder as well as under the m68k and ppc folders. Does this mean that I'm supposed to put those in the main bin/ folder or what?
The organisation of the directory tree seems utterly bonkers, possibly one of the most counter intuitive things I've ever seen...
There must be an idiot proof guide somewhere :-)
-
TurboLaban wrote:
There are PPC binaries here:
http://www.kolumbus.fi/jami.laakkonen/ppc/
--
Glenn Hisdal
Thanks - I did actually get the 2.95.3 ppc archives from Jami's page anyway. Same problem as the main archives, I don't actually know where I'm meant to put all this stuff :-)
-
@Karlos
With "pure ppc-gcc" I tried to lure you into going the "blue road" :-P
GoldED:
GCC isincluded in the CD-version, and that should give you
an instant ready-to-run setup including os-includes.
Not sure howto update/upgrade that into the download-version ;-)
-
The blue road :lol: I getcha..
I'm afraid there is no point, I don't own a Peggy and I'm far too 'middle of the road' to be swayed into the A1 v Pegasos thing.
Gee, and there was me thinking there was another ppc install out there...
I can't believe I didn't make a list of my old gcc installation. What was I thinking?
-
Crumb wrote:
I downloaded Louise's gcc distro and copied the assigns and ADE directories and some files from s:
So where's that from then? Thing is still defeating me.
@Kronos,
Couldn't find that boot.lha archive you mentioned... Still, after being up most of the night I couldn't find my own ass with both hands and a map just now :-)
-
http://www.innoidea.hu/subsites/amiga/developer/phpwebdev.php
http://www.innoidea.hu/subsites/amiga/developer/FILES/HardFiles/gcc111-files.tgz
here is a complete os3.1 plus gcc plus other bits partition lhaed.
Hope it helps you.
[Edit]: there are another lha file intended to use it within WinUAE[/Edit]
-
Cheers dude.
With OS3.1 you say..Is that legal?
In any event, I'll get it cause right now I'm up fed to my eyeballs with it!
-
ftp://ftp.geekgadgets.org/pub/geekgadgets/amiga/m68k/snapshots/current/ (http://ftp://ftp.geekgadgets.org/pub/geekgadgets/amiga/m68k/snapshots/current/)
Mmmmmhh,there you have your boot.lha :-D
Just didn't remember it was THAT old :-o
But atleast it should give a good place to start.
-
@Ami603...
phew, that took a while over 56k, let me tell ya :-)
@Kronos
seems that link is down for the moment :-(
-
@Karlos
Hmmmmm no it ain't down.Seems a.org just can't handle a
link to an ftp-dir that easy.
Try starting from here. (http://www.geekgadgets.org/index.html)
-
>I did download golded from their site recently too. The installer mentions gcc but as the archive did not inlude it, it simply skips it.
The GoldED demo does not include the gcc compiler, it's simply too large. 50 MB or something like that. It's only included on the CD (gcc 2.95.3 for m68k and, starting with the update scheduled for next week, gcc for MorphOS, too).
-
Usually geekgadgets binaries (and sources?) are to be extracted to the root (not the volume root of course, if your geekgadgets isn't supposed to be there), say GG: (/GG). So as long as you know it is a GG-archive which you need, it won't be far off to use that location. Also it's advised to use a proper program for extraction, namely Amiga lha or GNU tar as required.
-
I am in the process of switching from SAS/C to StormC 4 (based on GCC btw).
I have installed GCC before.There is more than one archive to download, so you may need to download these parts (see Aminet dev/gcc)
gcc270-base.lha (common files)
gcc270-c.lha (C compiler)
gcc270-c++.lha (C++ compiler)
gcc270-doc.lha (documentation)
gcc270-inclib.lha (Headers and Link libraries)
gcc270-readme.lha (Readme)
They all need to go in the same directory structure
e.g. DH0:gcc\...
PS You can get StormC cheap (£25) from Haage and Partner if you would prefer a straightforward installation and a pretty good IDE interface.pjhutch@pcguru.plus.com
-
:-)
Thanks, but I'm actually headed the other way. StormC's existing C++ support is too poorly implemented for my requirements..