Page 1 of 1

AmigaOS development on Linux (Help!)

Posted: Sun Sep 09, 2012 9:26 pm
by mechanic
Greetings,

I just came into possession of a laptop. My very first, for free!

It's a Dell inspiron 1525. I installed LinuxMint 13 and was wondering if it will be possible to get a working build environment for AOS4. It uses Eclipse 3.7.1-1 as its default IDE with CDT 8.0.2-1 plugin.

I have no idea how to set it up for Amiga and thought I would ask first. Any help is appreciated.

Re: AmigaOS development on Linux (Help!)

Posted: Mon Sep 10, 2012 2:39 pm
by abalaban
You should find almost everything necessary to setup a cross compilation environment on Zero Hero's homepage...

Re: AmigaOS development on Linux (Help!)

Posted: Mon Sep 10, 2012 9:17 pm
by mechanic
@ abalaban

That works.

Thanks for the info. :)

Re: AmigaOS development on Linux (Help!)

Posted: Tue Sep 11, 2012 7:04 pm
by mechanic
Hm,

I re-installed everything twice now and can only build C stuff, nothing AmigaOS specific. For example ReAction related.

Did I miss something :?

Re: AmigaOS development on Linux (Help!)

Posted: Fri Sep 14, 2012 8:22 am
by AmigaDave
mechanic wrote:Hm,

I re-installed everything twice now and can only build C stuff, nothing AmigaOS specific. For example ReAction related.

Did I miss something :?
I guess you mean building on the laptop and then trying to run it on your AmigaOS3.x, or 4.x computer(s)?

Your missing the Amiga specific header files and includes for ReAction?

Edit: Sorry, I am just beginning to learn "C", so I should not comment in this thread.

Re: AmigaOS development on Linux (Help!)

Posted: Fri Sep 14, 2012 12:51 pm
by mechanic
AmigaDave wrote:
Your missing the Amiga specific header files and includes for ReAction?

Edit: Sorry, I am just beginning to learn "C", so I should not comment in this thread.
Same here.

It was a silly error on my part. All sorted out on amigans net in a thread with same title. I hope to get some play time today to see if everything works. I only tried one of the example ReAction progs and it worked fine on the X1000. :D

Re: AmigaOS development on Linux (Help!)

Posted: Thu Oct 04, 2012 2:30 pm
by mechanic
Now that I have a working environment for Amiga programming on Linux
I am wondering if it is possible to install the whole thing in the user
directory instead of /usr/local ?

I know the build configuration calls for /usr/local, but what else would
need change to move it all to /home/user/ ?

Re: AmigaOS development on Linux (Help!)

Posted: Wed Oct 24, 2012 3:20 pm
by Hans-Joerg Frieden
mechanic wrote:I know the build configuration calls for /usr/local, but what else would
need change to move it all to /home/user/ ?
The question would be, why would you want to?

AFAIR, you need to rebuild the compiler and tools yourself if you want to move it. The tools use a prefix specified during compile time, and I don't think there is any way to relocate them without recompilation.
Alternatively, you could use a soft link, I don't know what you want to achieve exactly.

Re: AmigaOS development on Linux (Help!)

Posted: Wed Nov 14, 2012 6:58 pm
by marcus
Actually, gcc is pretty good at detecting that it has been moved from the predefined location and adapting accordingly. I think the only problems are these declarations from the specs file:

Code: Select all

*base_gcc:
/usr/local/amiga/

*base_sdk:
/usr/local/amiga/ppc-amigaos/SDK/
These are used to setup various lib and include paths (for the SDK, as well as clib2/newlib), so they need to be overridden with the new location. But that should just be a question of dropping in a custom specs file (use 'ppc-amigaos-gcc -dumpspecs', edit the paths, and you have an updated specs file).